/* =========================================
   BLOG PAGE LAYOUT STYLES
   Mobile-first approach
   ========================================= */

/* =========================================
   WRAPPER - Three Column Layout
   Left Sidebar | Center Content | Right Sidebar
   ========================================= */

.blog-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
    margin-top:10px;
    padding: 5rem 1rem;
    gap: 3px;
    overflow-x: hidden;
}

/* Blog Container (Main Content - Centered) */
.blog-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* =========================================
   SIDEBAR STYLES (Both Left and Right)
   ========================================= */

.blog-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Left sidebar shows first on mobile */
.blog-sidebar--left {
    order: -1;
}

/* Right sidebar shows last */
.blog-sidebar--right {
    order: 1;
}

/* Hide recommended on mobile */
.sidebar-recommended {
    display: none;
}

/* Hide search title on mobile */
.sidebar-search .sidebar-title {
    display: none;
}

/* Hide entire search section on mobile */
.sidebar-search {
    display: none;
}

/* Hide filter by tag on mobile */
.sidebar-tags {
    display: none;
}

/* Sidebar Section */
.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    font-family: "Satoshi-Bold", sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

/* =========================================
   SEARCH BAR
   ========================================= */

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 0.875rem;
    color: #888;
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.25);
    background: #fff;
}

.search-btn {
    padding: 1rem 1rem;
    background: #6B46C1;
    border: none;
    border-radius: 100%;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #5534A5;
}

.search-btn:active {
    transform: scale(0.95);
}

.search-btn i {
    font-size: 1rem;
}

/* =========================================
   RECOMMENDED ARTICLES
   ========================================= */

.recommended-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommended-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.75rem;
}

.recommended-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recommended-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.recommended-link:hover {
    opacity: 0.8;
}

.recommended-link:hover .recommended-title {
    color: #6B46C1;
}

.recommended-title {
    font-family: "Satoshi-Medium", sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    line-height: 1.4;
    transition: color 0.2s ease;
    
    /* Line clamp: max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-meta {
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 0.75rem;
    color: #888;
}

/* =========================================
   TAG FILTERS
   ========================================= */

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-filter {
    padding: 0.4rem 0.875rem;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    font-family: "Satoshi-Medium", sans-serif;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter:hover {
    background: rgba(107, 70, 193, 0.08);
    border-color: rgba(107, 70, 193, 0.2);
    color: #6B46C1;
}

.tag-filter.active {
    background: #6B46C1;
    border-color: #6B46C1;
    color: white;
}

.tag-filter:focus {
    outline: 2px solid #6B46C1;
    outline-offset: 2px;
}

/* =========================================
   RIGHT SIDEBAR - Social, Newsletter, Topics
   ========================================= */

/* Social Links */
.sidebar-social {
    width: 270px;
    max-width: 270px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-family: "Satoshi-Medium", sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(107, 70, 193, 0.08);
    color: #6B46C1;
    transform: translateX(3px);
}

.social-link i {
    font-size: 1.25rem;
}

/* Newsletter */
.newsletter-text {
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #6B46C1;
    background: #fff;
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: #6B46C1;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: "Satoshi-Medium", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-btn:hover {
    background: #5534A5;
}

/* Promotional Card */
.promo-card {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)), 
                url('/assets/images/stetco-cosmin-owner-and-ceo.avif') center/cover no-repeat;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 0;
    width: 270px;
    position: relative;
    margin: 0 auto;
}

.promo-logo-container {
    padding: 1rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.promo-title {
    font-family: "Satoshi-Bold", sans-serif;
    font-size: 1.5rem;
    color: white;
    text-align: center;
    margin: 0rem 1rem;
    line-height: 1.1;
}

.promo-subtitle {
    text-align: center;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.promo-subtitle .highlight {
    color: #a78bfa;
    font-family: "Satoshi-Bold", sans-serif;
}

.promo-features {
    list-style: none;
    margin: 1.5rem 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    text-align: left;
}

.promo-features i {
    color: #a78bfa;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.promo-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: calc(100% - 3rem);
    margin: 1.5rem 1.5rem;
    padding: 12px 20px;
    background: linear-gradient(150deg, #381a7d 0%, #6342b0 30%, #7B51D8 60%, #8B5CF6 100%);
    color: white;
    text-align: center;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    border: solid 1px rgba(255, 255, 255, 0.2);
    box-shadow: inset 0px 1px 1px rgba(255, 255, 255, 0.2),
                inset 0px 2px 2px rgba(255, 255, 255, 0.15),
                inset 0px 4px 4px rgba(255, 255, 255, 0.1),
                0 4px 15px rgba(107, 70, 193, 0.3);
    transition: box-shadow 0.4s, border 0.4s, background 0.4s, transform 0.4s;
    cursor: pointer;
}

.promo-btn-svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 2;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0px 1px 1px rgba(255, 255, 255, 0.25),
                inset 0px 2px 2px rgba(255, 255, 255, 0.2),
                inset 0px 4px 4px rgba(255, 255, 255, 0.15),
                0 6px 20px rgba(107, 70, 193, 0.5);
    background: linear-gradient(150deg, #4a2a7d 0%, #7451c0 30%, #8B5CF6 60%, #9d6fff 100%);
}

/* Popular Topics */
.topics-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topic-link {
    display: block;
    padding: 0.5rem 0;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 0.875rem;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.2s ease;
}

.topic-link:hover {
    color: #6B46C1;
}

.topics-list li:last-child .topic-link {
    border-bottom: none;
}

/* =========================================
   RESPONSIVE - Three Column Desktop Layout
   ========================================= */

/* Tablet: Hide left sidebar, show search in header, optimize widths */
@media (min-width: 768px) and (max-width: 1199px) {
    .blog-sidebar--left {
        display: none;
    }
    
    .blog-wrapper {
        flex-direction: row;
        padding: 6rem 0rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .blog-container {
        flex: 1;
        min-width: 0;
        max-width: 65%;
        padding: 0 1rem;
    }
    
    .blog-sidebar--right {
        width: 30%;
        min-width: 0;
        max-width: 300px;
        flex-shrink: 0;
    }
    
    /* Match sidebar-social width to promo-card on tablet */
    .sidebar-social {
        width: 270px;
        max-width: 270px;
    }
    
    /* Hide search bar on tablet */
    .blog-header-search {
        display: none !important;
    }
    
    .blog-header-search .search-form {
        margin: 0;
    }
    
    .blog-header-search .search-input-wrapper {
        width: 100%;
    }
    
    .blog-header-search .search-input {
        width: 100%;
        border-radius: 22px;
    }
    
    /* Hide sidebar search on tablet */
    .sidebar-search {
        display: none;
    }
}

@media (min-width: 1200px) {
    .blog-wrapper {
        flex-direction: row;
        padding: 4rem 1rem;
        gap: 2rem;
        align-items: flex-start;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Left Sidebar*/
    .blog-sidebar--left {
        width: 300px;
        min-width: 300px;
        flex-shrink: 0;
        order: 0;
        position: sticky;
        height: fit-content;
    }
    
    /* Center Content - flexible width */
    .blog-container {
        flex: 1;
        min-width: 0;
        max-width: none;
        margin: 0;
    }
    
    /* Right Sidebar*/
    .blog-sidebar--right {
        width: 300px;
        min-width: 300px;
        flex-shrink: 0;
        order: 2;
        position: sticky;
        height: fit-content;
    }
    
    .sidebar-section {
        padding: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Show h1 title on desktop */
    .blog-header h1 {
        position: static;
        width: auto;
        height: auto;
        padding: initial;
        margin: 0 0 0.5rem 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border-width: initial;
    }
    
    /* Show recommended on desktop */
    .sidebar-recommended {
        display: block;
    }
    
    /* Show search title on desktop */
    .sidebar-search .sidebar-title {
        display: block;
    }
    
    /* Show filter by tag on desktop */
    .sidebar-tags {
        display: block;
    }
}

@media (min-width: 1500px) {
    .blog-wrapper {
        max-width: 100%;
        padding: 5rem 3rem;
        gap: 3px;
    }
    
}

/* Page Header with H1 for SEO */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Search in header - hidden by default */
.blog-header-search {
    display: none;
}

.blog-header h1 {
    font-family: "Satoshi-Bold", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    /* Hidden on mobile/tablet for visual, kept for SEO */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.blog-header p {
    font-family: "Satoshi-Regular", sans-serif;
    color: #666;
    font-size: 1.1rem;
    max-width: none;
    width: 100%;
    margin: 0;
    line-height: 1.7;
}

.blog-header-break {
    display: none;
}

@media (min-width: 1024px) {
    .blog-header-break {
        display: inline;
    }
}

/* Blog Posts List */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1rem;
    margin-bottom: 1.5rem;
}

.blog-categories a {
    color: #6B46C1;
    text-decoration: none;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* =========================================
   ARTICLE CARD STYLES
   Horizontal layout: image left, content right
   ========================================= */

.blog-card {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Hover effect: subtle shadow lift */
.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Focus state for keyboard navigation */
.blog-card:focus {
    outline: 2px solid #6B46C1;
    outline-offset: 2px;
}

.blog-card:focus-visible {
    outline: 2px solid #6B46C1;
    outline-offset: 2px;
}

/* =========================================
   THUMBNAIL IMAGE (Left side ~30%)
   16:9 aspect ratio on mobile, 1:1 on tablet+
   ========================================= */

.blog-card__image {
    flex-shrink: 0;
    width: 100%; /* Full width on mobile */
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    padding: 1rem;
    padding-bottom: 0;
}

.blog-card__image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

/* Image scale on card hover */
.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

/* =========================================
   CONTENT AREA (Right side ~70%)
   Vertical stack: meta, title, excerpt, read more
   ========================================= */

.blog-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
}

/* Meta info: date and read time */
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    font-family: "Satoshi-Regular", sans-serif;
}

.blog-card__meta time {
    color: #666;
}

.blog-card__meta .read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card__meta .read-time::before {
    content: "";
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Article Title - H2 for SEO hierarchy */
.blog-card__title {
    font-family: "Satoshi-Bold", sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
    
    /* Line clamp: max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Excerpt text */
.blog-card__excerpt {
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    
    /* Line clamp: max 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author info */
.blog-card__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.blog-card__author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6B46C1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Read More link */
.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.blog-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Satoshi-Medium", sans-serif;
    font-size: 0.9rem;
    color: #6B46C1;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card__readmore:hover {
    color: #5534A5;
    gap: 0.75rem;
}

.blog-card__readmore i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card__readmore i {
    transform: translateX(3px);
}

/* Category/Tag Badge */
.blog-card__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(107, 70, 193, 0.08);
    color: #6B46C1;
    font-size: 0.75rem;
    font-family: "Satoshi-Medium", sans-serif;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    flex-shrink: 0;
}

/* =========================================
   RESPONSIVE STYLES
   Desktop: Side-by-side layout
   ========================================= */

/* Tablet and up (768px+) */
@media (min-width: 768px) {
    .blog-container {
        padding: 3rem 2rem;
    }
    
    .blog-header {
        margin-bottom: 4rem;
    }
    
    .blog-posts {
        gap: 2rem;
    }
    
    /* Horizontal card layout */
    .blog-card {
        flex-direction: row;
        align-items: stretch;
        padding: 0;
    }
    
    /* Image takes ~30% width */
    .blog-card__image {
        width: 30%;
        max-width: none;
        padding: 1.25rem;
        padding-right: 0;
        display: flex;
        align-items: center;
    }
    
    .blog-card__image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        min-height: unset;
    }
    
    /* Content takes ~70% width */
    .blog-card__content {
        width: 70%;
        padding: 1.5rem;
        gap: 0.6rem;
    }
    
    .blog-card__title {
        font-size: 1.35rem;
    }
    
    .blog-card__excerpt {
        font-size: 1rem;
    }
}

/* Large desktop (1024px+) */
@media (min-width: 1024px) {
    .blog-container {
        max-width: 1100px;
        padding: 4rem 2rem;
    }

    /* Keep categories close to the description on desktop */
    .blog-header {
        margin-bottom: 1.25rem;
    }

    .blog-card__image {
        padding: 1.5rem;
        padding-right: 0;
    }
    
    .blog-card__content {
        padding: 2rem;
        gap: 0.75rem;
    }
    
    .blog-card__title {
        font-size: 1.5rem;
    }
}

/* Extra large desktop (1400px+) */
@media (min-width: 1400px) {
    .blog-container {
        max-width: 1300px;
        padding: 2rem 1.4rem;
    }
    
    .blog-card__image {
        width: 28%;
    }
    
    .blog-card__content {
        width: 72%;
        padding: 2.5rem;
    }
    
    .blog-card__title {
        font-size: 1.6rem;
    }
    
    .blog-card__excerpt {
        font-size: 1.05rem;
    }
}

/* =========================================
   LOAD MORE BUTTON - Same style as Analyze button
   ========================================= */

.load-more-btn {
    --border-radius: 30px;
    --padding: 4px;
    --transition: 0.4s;
    --button-gradient-start: #381a7d;
    --button-gradient-mid1: #6342b0;
    --button-gradient-mid2: #7B51D8;
    --button-gradient-end: #8B5CF6;
    --highlight-color-hue: 270deg;

    -webkit-user-select: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    margin: 2rem auto;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    position: relative;

    background: linear-gradient(150deg, var(--button-gradient-start) 0%, var(--button-gradient-mid1) 30%, var(--button-gradient-mid2) 60%, var(--button-gradient-end) 100%);

    box-shadow:
        inset 0px 1px 1px rgba(255, 255, 255, 0.2),
        inset 0px 2px 2px rgba(255, 255, 255, 0.15),
        inset 0px 4px 4px rgba(255, 255, 255, 0.1),
        0 4px 15px rgba(107, 70, 193, 0.3);

    border: solid 1px rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    cursor: pointer;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);

    transition:
        box-shadow var(--transition),
        border var(--transition),
        background var(--transition),
        transform var(--transition);
}

.load-more-btn::before {
    content: "";
    position: absolute;
    top: calc(0px - var(--padding));
    left: calc(0px - var(--padding));
    width: calc(100% + var(--padding) * 2);
    height: calc(100% + var(--padding) * 2);
    border-radius: calc(var(--border-radius) + var(--padding));
    pointer-events: none;
    background-image: linear-gradient(0deg, rgba(107, 70, 193, 0.3), rgba(107, 70, 193, 0.6));

    z-index: -1;
    transition:
        box-shadow var(--transition),
        filter var(--transition);
    box-shadow:
        0 -8px 8px -6px #0000 inset,
        0 -16px 16px -8px #00000000 inset,
        1px 1px 1px rgba(255, 255, 255, 0.2),
        2px 2px 2px rgba(255, 255, 255, 0.1),
        -1px -1px 1px rgba(0, 0, 0, 0.2),
        -2px -2px 2px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
    border: solid 1px hsla(var(--highlight-color-hue), 100%, 80%, 40%);
    color: #fff;
}

.load-more-btn:hover::before {
    box-shadow:
        0 -8px 8px -6px rgba(255, 255, 255, 0.6) inset,
        0 -16px 16px -8px hsla(var(--highlight-color-hue), 100%, 70%, 30%) inset;
}

.load-more-btn:active {
    transform: translateY(2px);
    border: solid 1px hsla(var(--highlight-color-hue), 100%, 80%, 70%);
    background: hsla(var(--highlight-color-hue), 50%, 20%, 0.5);
}

.load-more-btn:active::before {
    box-shadow:
        0 -8px 12px -6px rgba(255, 255, 255, 0.6) inset,
        0 -16px 16px -8px hsla(var(--highlight-color-hue), 100%, 70%, 80%) inset,
        1px 1px 1px rgba(255, 255, 255, 0.4),
        2px 2px 2px rgba(255, 255, 255, 0.2),
        -1px -1px 1px rgba(0, 0, 0, 0.2),
        -2px -2px 2px rgba(0, 0, 0, 0.1);
}

/* =========================================
   SKELETON/LOADING STATE (optional)
   ========================================= */

.blog-card--loading .blog-card__image,
.blog-card--loading .blog-card__title,
.blog-card--loading .blog-card__excerpt {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

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

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.promo-ad-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: calc(100% - 3rem);
    margin: -0.5rem 1.5rem 1.5rem;
    padding: 10px 20px;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    font-family: "Satoshi-Regular", sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.promo-ad-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.8);
}

.promo-ad-btn i {
    font-size: 16px;
}

/* =========================================
   OneProvider partner card (desktop only)
   ========================================= */
.oneprovider-card {
    display: none;
}

@media (min-width: 1200px) {
    /* Right column stretches the full height of the page so the card can stay sticky while scrolling */
    .blog-wrapper {
        overflow: visible;
        overflow-x: clip;
    }

    .blog-sidebar--right {
        position: relative;
        align-self: stretch;
        height: auto;
    }

    .oneprovider-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        position: sticky;
        top: 120px;
        z-index: 5;
        box-sizing: border-box;
        width: 270px;
        margin: -1.5rem auto 0;
        padding: 0 18px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
        border-radius: 14px;
        text-decoration: none;
        color: #fff;
        background: radial-gradient(120% 90% at 100% 0%, rgba(0, 200, 255, 0.28) 0%, rgba(0, 200, 255, 0) 55%),
                    linear-gradient(155deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
        font-family: "Satoshi-Regular", sans-serif;
        transition: max-height 0.5s ease, opacity 0.45s ease, transform 0.45s ease, padding 0.5s ease, margin 0.5s ease, box-shadow 0.3s ease;
    }

    .blog-sidebar--right.is-scrolled .oneprovider-card {
        max-height: 340px;
        opacity: 1;
        transform: none;
        margin-top: 0;
        padding: 18px;
        pointer-events: auto;
    }

    .oneprovider-card:hover {
        box-shadow: 0 14px 34px rgba(49, 46, 129, 0.45);
    }

    .oneprovider-card__tag {
        font-size: 10px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #a5b4fc;
        font-weight: 700;
    }

    .oneprovider-card__icon {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        font-size: 22px;
        color: #7dd3fc;
    }

    .oneprovider-card__title {
        font-family: "Satoshi-Bold", sans-serif;
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .oneprovider-card__text {
        font-size: 13.5px;
        line-height: 1.5;
        color: #cbd5e1;
    }

    .oneprovider-card__btn {
        align-self: stretch;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 6px;
        padding: 11px 16px;
        border-radius: 999px;
        background: #fff;
        color: #1e1b4b;
        font-size: 13px;
        font-weight: 700;
    }

    .oneprovider-card__btn i {
        font-size: 17px;
        color: #229ed9;
    }
}

@media (min-width: 1200px) {
    .oneprovider-card__icon img {
        width: 30px;
        height: 30px;
        display: block;
        filter: brightness(0) invert(1);
    }
}

/* OneProvider card: particle key background */
@media (min-width: 1200px) {
    .oneprovider-card__canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
        opacity: 0.75;
    }

    .oneprovider-card::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(8, 10, 24, 0) 30%, rgba(8, 10, 24, 0.82) 100%);
    }

    .oneprovider-card > span,
    .oneprovider-card > strong {
        position: relative;
        z-index: 1;
    }
}

/* Mobile: visible title above a shorter description */
@media (max-width: 767px) {
    /* Pull the title up under the fixed header
       (extra class outranks the .blog-wrapper rule in responsive-mobile.css) */
    body .blog-wrapper {
        padding-top: 5rem;
    }

    /* Left sidebar has nothing visible on mobile: avoid its leftover gap */
    .blog-sidebar--left {
        display: none;
    }

    .blog-header h1 {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0 0 0.75rem 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .blog-header-extra {
        display: none;
    }
}
