/* =============================================================================
   BLOG STYLES
   ============================================================================= */

/* --- Main Blog Index Layout --- */
.sw-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.sw-blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sw-blog-title {
    font-family: var(--sw-font-heading);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.sw-blog-subtitle {
    font-family: var(--sw-font-body);
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Blog Grid --- */
.sw-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* --- Blog Card --- */
.sw-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sw-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sw-blog-card-img-link {
    display: block;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
}

.sw-blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-blog-card:hover .sw-blog-card-img {
    transform: scale(1.05);
}

.sw-blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sw-blog-category {
    font-family: var(--sw-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    width: fit-content;
    background: var(--sw-primary);
}

/* Category color classes - matching site kicker scheme */
@keyframes sw-shimmer-blog {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.sw-blog-category.sw-cat-newmusic {
    background-image: linear-gradient(90deg, #059669 0%, #10b981 50%, #059669 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-digital {
    background-image: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 50%, #8b5cf6 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-touring {
    background-image: linear-gradient(90deg, #22c55e 0%, #4ade80 50%, #22c55e 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-festivals {
    background-image: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-promoters {
    background-image: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #0ea5e9 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-ecom {
    background-image: linear-gradient(90deg, #ef4444 0%, #f87171 50%, #ef4444 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

@keyframes sw-fireworks-shimmer {
    0% {
        background-position: 
            200% 0,
            0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 
            -100% 0,
            0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
}

.sw-blog-category.sw-cat-design {
    background-color: #122244;
    background-image: 
        linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.3) 50%, transparent 60%),
        radial-gradient(circle at 30% 20%, #ffffff 0.8px, transparent 0.8px),
        radial-gradient(circle at 75% 75%, #ffffff 0.8px, transparent 0.8px),
        radial-gradient(circle at 60% 15%, #ffffff 0.8px, transparent 0.8px),
        radial-gradient(circle at 15% 35%, rgba(255, 40, 80, 0.95) 0%, rgba(255, 40, 80, 0.3) 45%, transparent 75%),
        radial-gradient(circle at 50% 65%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.4) 35%, transparent 65%),
        radial-gradient(circle at 85% 30%, rgba(30, 144, 255, 0.95) 0%, rgba(30, 144, 255, 0.3) 45%, transparent 75%);
    background-size: 
        200% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-repeat: no-repeat;
    animation: sw-fireworks-shimmer 3.5s linear infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.9);
}

.sw-blog-category.sw-cat-intelligence {
    background-image: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}


.sw-blog-card-title {
    font-family: var(--sw-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #111;
    text-wrap: balance;
}

.sw-blog-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-blog-card-title a:hover {
    color: var(--sw-primary);
}

.sw-blog-card-excerpt {
    font-family: var(--sw-font-body);
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.sw-blog-read-more {
    display: inline-block;
    font-family: var(--sw-font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #ff6a00;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-blog-read-more:hover {
    color: var(--sw-primary);
    border-bottom-color: transparent;
}

/* --- Single Article Styles --- */
.sw-article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 20px;
    background: transparent;
}

.sw-article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sw-article-meta {
    font-family: var(--sw-font-heading);
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.sw-article-meta span {
    margin: 0 10px;
}

/* Article page category pill - match blog index styling */
.sw-article-category {
    font-family: var(--sw-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    width: fit-content;
    background: var(--sw-primary);
    margin-right: 10px;
}

/* Article category color classes */
.sw-article-category.sw-cat-newmusic {
    background-image: linear-gradient(90deg, #059669 0%, #10b981 50%, #059669 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-digital {
    background-image: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 50%, #8b5cf6 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-touring {
    background-image: linear-gradient(90deg, #22c55e 0%, #4ade80 50%, #22c55e 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-festivals {
    background-image: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-promoters {
    background-image: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #0ea5e9 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-ecom {
    background-image: linear-gradient(90deg, #ef4444 0%, #f87171 50%, #ef4444 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-casestudies {
    background-image: linear-gradient(90deg, #ff6a00 0%, #ff8533 50%, #ff6a00 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-design {
    background-color: #122244;
    background-image: 
        linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.3) 50%, transparent 60%),
        radial-gradient(circle at 30% 20%, #ffffff 0.8px, transparent 0.8px),
        radial-gradient(circle at 75% 75%, #ffffff 0.8px, transparent 0.8px),
        radial-gradient(circle at 60% 15%, #ffffff 0.8px, transparent 0.8px),
        radial-gradient(circle at 15% 35%, rgba(255, 40, 80, 0.95) 0%, rgba(255, 40, 80, 0.3) 45%, transparent 75%),
        radial-gradient(circle at 50% 65%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.4) 35%, transparent 65%),
        radial-gradient(circle at 85% 30%, rgba(30, 144, 255, 0.95) 0%, rgba(30, 144, 255, 0.3) 45%, transparent 75%);
    background-size: 
        200% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-repeat: no-repeat;
    animation: sw-fireworks-shimmer 3.5s linear infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.9);
}

.sw-article-category.sw-cat-intelligence {
    background-image: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-title {
    font-family: var(--sw-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin: 0 0 1.5rem 0;
    text-wrap: balance;
}

.sw-article-featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sw-article-content {
    font-family: var(--sw-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

.sw-article-content p,
.sw-article-content li {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.sw-article-content p {
    margin-bottom: 1rem;
}

.sw-article-content h2 {
    font-family: var(--sw-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.sw-article-content h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.sw-article-content ul,
.sw-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.sw-article-content li {
    margin-bottom: 0.5rem;
}

@keyframes sw-accent-pulse {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.sw-article-content blockquote {
    position: relative;
    background:
        linear-gradient(rgba(17, 17, 17, 0.97), rgba(17, 17, 17, 0.97)),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23333' fill-opacity='0.3'%3E%3Cpath d='M0 0h1v1H0V0zm20 0h1v1h-1V0zM0 20h1v1H0v-1zm20 20h1v1h-1v-1z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 8px;
    padding: 2rem 2rem 2rem 2.5rem;
    margin: 2.5rem 0;
    font-style: normal;
    color: #e5e5e5;
    font-size: 1.15rem;
    line-height: 1.7;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.sw-article-content blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-image: linear-gradient(180deg, #ff6a00, #ff8533, #ff6a00);
    background-size: 100% 200%;
    animation: sw-accent-pulse 2s ease-in-out infinite;
}

.sw-article-content blockquote p {
    margin: 0;
    color: inherit;
}

/* --- Social Sharing --- */
.sw-share-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.sw-share-label {
    font-family: var(--sw-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    color: #888;
}

.sw-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sw-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-share-btn:hover {
    background: var(--sw-primary);
    color: #fff;
    transform: translateY(-3px);
}

.sw-share-btn.sw-copy-link {
    cursor: pointer;
    border: none;
}

.sw-share-btn.sw-copy-link.copied {
    background: #22c55e;
    color: #fff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .sw-blog-grid {
        grid-template-columns: 1fr;
    }

    .sw-blog-title {
        font-size: 2.2rem;
    }

    .sw-article-title {
        font-size: 2rem;
    }

    .sw-article-container {
        padding: 2rem 15px;
    }
}

/* --- Magazine-Style Floating Figures --- */
.sw-article-figure {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.sw-article-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.sw-article-figure figcaption {
    font-family: var(--sw-font-body);
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

.sw-article-figure.sw-float-right {
    float: right;
    width: auto;
    max-width: 250px;
    margin: 0.5rem 0 1.5rem 2rem;
}

.sw-article-figure.sw-float-left {
    float: left;
    width: auto;
    max-width: 250px;
    margin: 0.5rem 2rem 1.5rem 0;
}

@media (max-width: 768px) {

    .sw-article-figure.sw-float-right,
    .sw-article-figure.sw-float-left {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* Magazine-style image treatments */
.sw-article-breakout {
    margin: 2.5rem -2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0d0d;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.sw-article-breakout img {
    width: 100%;
    height: auto;
    display: block;
}

.sw-article-breakout figcaption {
    font-family: var(--sw-font-body);
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    padding: 0.75rem 1rem;
    background: #0d0d0d;
    letter-spacing: 0.02em;
}

.sw-article-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.sw-comparison-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #222;
}

.sw-comparison-card img {
    width: 100%;
    height: auto;
    display: block;
}

.sw-comparison-label {
    font-family: var(--sw-font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.6rem 0.5rem;
    color: #aaa;
}

.sw-comparison-card.sw-old .sw-comparison-label {
    color: #ef4444;
}

.sw-comparison-card.sw-new .sw-comparison-label {
    color: #22c55e;
}

.sw-article-figure.sw-float-right-wide {
    float: right;
    width: auto;
    max-width: 380px;
    margin: 0.25rem 0 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .sw-article-breakout {
        margin: 2rem -1rem;
        border-radius: 8px;
    }

    .sw-article-comparison {
        grid-template-columns: 1fr;
    }

    .sw-article-figure.sw-float-right-wide {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* --- Blog Controls (Filter, Sort, View Toggle) --- */
.sw-blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1rem 1.5rem;
    background: #111;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 1rem;
}

.sw-blog-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sw-blog-select {
    padding: 0.6rem 2.25rem 0.6rem 1rem;
    font-family: var(--sw-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #e5e5e5;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sw-blog-select option {
    background: #222;
    color: #fff;
}

.sw-blog-select:hover {
    border-color: rgba(255, 106, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.12);
}

.sw-blog-select:focus {
    outline: none;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

.sw-blog-view-toggle {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-view-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 0.4rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.sw-view-btn:hover {
    color: #bbb;
}

.sw-view-btn.active {
    background: var(--sw-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

/* --- Card Meta & Date --- */
.sw-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.sw-blog-card-meta .sw-blog-category {
    margin-bottom: 0;
}

.sw-blog-date {
    font-family: var(--sw-font-heading);
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- List View Layout --- */
.sw-blog-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.sw-blog-grid.list-view .sw-blog-card {
    flex-direction: row;
}

.sw-blog-grid.list-view .sw-blog-card-img-link {
    width: 300px;
    min-width: 300px;
    padding-top: 0;
    min-height: 200px;
}

.sw-blog-grid.list-view .sw-blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-blog-grid.list-view .sw-blog-card-content {
    flex: 1;
    padding: 1.75rem 2rem;
    justify-content: center;
}

.sw-blog-grid.list-view .sw-blog-card-title {
    font-size: 1.6rem;
}

.sw-blog-grid.list-view .sw-blog-card-excerpt {
    margin-bottom: 1rem;
}

/* --- Pagination --- */
.sw-pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.sw-pagination {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    background: #111;
    padding: 0.4rem;
    border-radius: 8px;
}

.sw-page-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #999;
    font-family: var(--sw-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sw-page-btn:hover:not(:disabled) {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sw-page-btn.sw-page-num.active {
    background: var(--sw-primary);
    color: #fff;
    border-color: var(--sw-primary);
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.sw-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sw-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    font-family: var(--sw-font-heading);
    font-size: 1.2rem;
    color: #888;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px dashed #ddd;
}

/* --- Mobile Responsiveness Updates --- */
@media (max-width: 768px) {
    .sw-blog-grid.list-view .sw-blog-card {
        flex-direction: column;
    }
    
    .sw-blog-grid.list-view .sw-blog-card-img-link {
        width: 100%;
        min-width: 100%;
        padding-top: 56.25%;
    }
    
    .sw-blog-grid.list-view .sw-blog-card-content {
        padding: 1.5rem;
    }
    
    .sw-blog-grid.list-view .sw-blog-card-title {
        font-size: 1.35rem;
    }
    
    .sw-blog-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .sw-blog-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .sw-blog-select {
        width: 100%;
    }
    
    .sw-blog-view-toggle {
        align-self: flex-end;
    }
}
/* --- Zig-Zag Feature Layout --- */
.sw-zigzag-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 4rem 0;
}
.sw-zigzag-text {
    flex: 1;
}
.sw-zigzag-image {
    flex: 0 0 50%;
    max-width: 50%;
}
.sw-zigzag-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: block;
}
/* Alternate row direction */
.sw-zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}
/* Mobile stacking */
@media (max-width: 768px) {
    .sw-zigzag-row, .sw-zigzag-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        margin: 3rem 0;
    }
    .sw-zigzag-image {
        flex: 0 0 100%;
        max-width: 100%;
        order: -1; /* Always put image on top on mobile */
    }
}

/* --- Zig-Zag Feature Layout --- */
.sw-zigzag-container {
    margin: 4rem 0;
}
.sw-zigzag-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}
.sw-zigzag-row:last-child {
    margin-bottom: 0;
}
.sw-zigzag-text {
    flex: 1;
}
.sw-zigzag-text h3 {
    margin-top: 0;
}
.sw-zigzag-image {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
}
.sw-zigzag-image.sw-zigzag-slim {
    flex: 0 0 33%;
    max-width: 33%;
}
.sw-zigzag-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: block;
}
/* Alternate row direction */
.sw-zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}
/* Mobile stacking */
@media (max-width: 768px) {
    .sw-zigzag-row, .sw-zigzag-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    .sw-zigzag-image, .sw-zigzag-image.sw-zigzag-slim {
        flex: 0 0 100%;
        max-width: 100%;
        order: -1; /* Always put image on top on mobile */
    }
}
/* --- Zig-Zag Feature Layout --- */
.sw-zigzag-container {
    margin: 4rem 0;
}
.sw-zigzag-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}
.sw-zigzag-row:last-child {
    margin-bottom: 0;
}
.sw-zigzag-text {
    flex: 1;
}
.sw-zigzag-text h3 {
    margin-top: 0;
}
.sw-zigzag-image {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
}
.sw-zigzag-image.sw-zigzag-slim {
    flex: 0 0 35%;
    max-width: 35%;
}
.sw-zigzag-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: block;
}
/* Alternate row direction */
.sw-zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}
/* Mobile stacking */
@media (max-width: 768px) {
    .sw-zigzag-row, .sw-zigzag-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    .sw-zigzag-image, .sw-zigzag-image.sw-zigzag-slim {
        flex: 0 0 100%;
        max-width: 100%;
        order: -1; /* Always put image on top on mobile */
    }
}

/* --- Blog CTA Buttons --- */
.sw-blog-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.sw-blog-cta-primary {
    background-image: linear-gradient(135deg, #ff6000, #ff8533);
    color: #fff;
    margin-right: 12px;
}
.sw-blog-cta-primary:hover {
    background-image: linear-gradient(135deg, #e65600, #ff7200);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 96, 0, 0.3);
}
.sw-blog-cta-secondary {
    background: #111;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid #333;
}
.sw-blog-cta-secondary:hover {
    background: #000;
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
@media (max-width: 600px) {
    .sw-blog-cta-btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    .sw-blog-cta-secondary {
        margin-bottom: 0;
    }
}

/* Force meta to one line on mobile */
@media (max-width: 480px) {
    .sw-article-meta {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        white-space: nowrap;
        font-size: 0.65rem;
        letter-spacing: 0.05em;
        gap: 4px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .sw-article-meta::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .sw-article-meta span {
        margin: 0 !important;
    }
    .sw-article-category {
        padding: 2px 6px;
        font-size: 0.6rem;
    }
}

/* --- Article Title Formatting --- */
.sw-title-sentence {
    display: block;
}
.sw-title-sentence + .sw-title-sentence {
    margin-top: 0.5rem; /* spacing between sentences on desktop */
}

/* Orange/Amber Animated Shimmer */
.sw-title-shimmer {
    background-image: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: sw-shimmer-blog 3s linear infinite;
    display: inline-block;
}

@keyframes sw-shimmer-orange {
    to {
        background-position: 200% center;
    }
}

@media (max-width: 768px) {
    .sw-article-title {
        font-size: 2rem; /* Reduced from 2.3rem to fit mobile viewport cleanly */
    }
    .sw-title-sentence {
        /* Add a little more spacing between sentences on mobile */
        margin-bottom: 0.75rem;
        /* Ensure it balances naturally to 2 lines */
        text-wrap: balance;
        line-height: 1.15;
    }
    .sw-title-sentence + .sw-title-sentence {
        margin-top: 0; 
    }
}

/* Refinements for Title Spacing */
@media (max-width: 768px) {
    .sw-article-title {
        margin-bottom: 0.75rem; /* Reduced space below title (2nd sentence) */
    }
    .sw-title-sentence {
        line-height: 1.2; /* Tighten line spacing within sentence */
    }
}


/* Overlay Title inside Hero */
.sw-mobile-overlay-header {
    display: none;
}

@media (max-width: 768px) {
    /* Hide the normal header */
    main .sw-article-header {
        display: none !important;
    }

    /* Show and style the overlay header inside the hero */
    .sw-mobile-overlay-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 10;
        padding: 70px 15px 0 15px;
        text-align: center;
    }

    /* Ensure the hero is tall enough to fit the giant title */
    .sw-page-hero {
        height: 320px !important;
        min-height: 320px !important;
    }

    /* Dark gradient over the background image to make white text pop */
    .sw-page-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.95) 100%) !important;
        z-index: 1;
    }

    .sw-mobile-overlay-header .sw-article-title {
        color: #ffffff !important;
        text-shadow: 0 4px 15px rgba(0,0,0,0.6);
        margin-bottom: 0;
    }

    .sw-mobile-overlay-header .sw-title-sentence {
        color: #ffffff !important;
    }

    .sw-mobile-overlay-header .sw-article-meta {
        color: rgba(255, 255, 255, 0.9) !important;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }
    
    .sw-mobile-overlay-header .sw-meta-bullet {
        color: rgba(255, 255, 255, 0.5);
    }

    .sw-article-content {
        padding-top: 1.5rem;
    }
}

.sw-mobile-overlay-header .sw-title-shimmer {
    -webkit-text-fill-color: transparent !important;
}

/* Fix Safari/iOS text-shadow bleed on background-clip */
.sw-title-shimmer {
    text-shadow: none !important;
    /* Optional: Brighten it slightly to guarantee pop against the dark bg */
    background-image: linear-gradient(90deg, #ff6a00 0%, #ff9500 50%, #ff6a00 100%) !important;
    background-size: 200% auto !important;
}

.sw-mobile-overlay-header .sw-title-shimmer {
    text-shadow: none !important;
}

@media (max-width: 768px) {
    .sw-float-card {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 2rem 0 !important;
    }
}

/* --- Editorial Captions & Dividers --- */

.sw-article-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #b0b5be 20%, #b0b5be 80%, transparent);
    margin: 3.5rem auto 1.5rem;
    opacity: 0.85;
}

/* Reduce excessive gap when h2 follows an editorial divider */
.sw-article-divider + h2,
.sw-article-content .sw-article-divider + h2 {
    margin-top: 0.75rem !important;
}

@media (max-width: 768px) {
    .sw-article-divider {
        margin: 2.75rem auto 1.25rem;
    }
    .sw-article-divider + h2,
    .sw-article-content .sw-article-divider + h2 {
        margin-top: 0.5rem !important;
    }
}

/* Inline Orange Shimmer Highlight */
.sw-inline-shimmer {
    background-image: linear-gradient(90deg, #e65100 0%, #ff7700 50%, #e65100 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline-block;
    animation: shimmer 4s ease-in-out infinite;
}

/* --- Article End Call-To-Action Box --- */
.sw-article-cta-box {
    background: radial-gradient(circle at 50% 0%, rgba(255, 106, 0, 0.12) 0%, transparent 75%), #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 106, 0, 0.4);
    border-radius: 14px;
    padding: 2.75rem 2rem;
    margin: 3.5rem 0;
    text-align: center;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.sw-article-cta-box .sw-article-cta-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ff7722;
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.25);
    border-radius: 9999px;
    padding: 4px 14px;
    margin-bottom: 1.1rem;
}

.sw-article-cta-box h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.sw-article-cta-box p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.sw-article-cta-box .sw-article-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sw-article-cta-box .sw-blog-cta-primary {
    margin-right: 0;
}

.sw-article-cta-box .sw-blog-cta-secondary {
    background: #141721;
    border-color: rgba(255, 255, 255, 0.14);
}

.sw-article-cta-box .sw-blog-cta-secondary:hover {
    background: #1c2130;
    border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 600px) {
    .sw-article-cta-box {
        padding: 2.25rem 1.25rem;
        margin: 2.5rem 0;
    }
    .sw-article-cta-box h3 {
        font-size: 1.3rem;
    }
    .sw-article-cta-box .sw-article-cta-actions {
        flex-direction: column;
        gap: 12px;
    }
    .sw-article-cta-box .sw-blog-cta-btn {
        width: 100%;
        margin-right: 0;
    }
}

/* --- Floating Back To Top Button on Blog Pages --- */
body.blog-post-page .sw-back-to-top {
    left: auto !important;
    right: 28px !important;
    bottom: 28px;
    width: 42px;
    height: 42px;
    background: #11141a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 990 !important;
}

body.blog-post-page .sw-back-to-top svg {
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    width: 18px !important;
    height: 18px !important;
}

body.blog-post-page .sw-back-to-top:hover {
    background: #ff6a00 !important;
    border-color: #ff6a00 !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.45) !important;
}

@media (max-width: 768px) {
    body.blog-post-page .sw-back-to-top {
        right: 18px !important;
        left: auto !important;
        bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px)) !important;
        width: 38px;
        height: 38px;
    }
}
