* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -Lumnix-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #171a21;
    color: #c7d5e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.futuristic-text-gradient {
    background: linear-gradient(90deg, #007aff 0%, #5856d6 25%, #af52de 50%, #ff3b30 75%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.blog-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(23, 26, 33, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin-right: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

.nav-links a:hover {
    border-bottom: 2px solid white;
}

/* Main */
.blog-main {
    max-width: 100%;
    margin: 0 auto;
    padding: 80px 40px 0;
    overflow: visible !important;
}

.blog-main .main-layout-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    overflow: visible !important;
    position: relative;
    /* mirror the shared responsive ad adjustments so that the blog
       container never clips or mis?'sizes the lateral ads */
    max-width: 1440px;
    box-sizing: border-box;
}

.blog-main .ad-skyscraper-left,
.blog-main .ad-skyscraper-right {
    position: sticky !important;
    top: 80px !important;
    align-self: flex-start !important;
    height: fit-content !important;
}

aside.ad-skyscraper-left,
aside.ad-skyscraper-right,
.blog-main .ad-skyscraper-left,
.blog-main .ad-skyscraper-right,
div.ad-skyscraper-left,
div.ad-skyscraper-right {
    position: sticky !important;
    top: 80px !important;
    z-index: 100;
    height: fit-content !important;
    align-self: flex-start !important;
}



.main-content-column {
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

@media (max-width: 992px) {
    .main-content-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .main-layout-container {
        gap: 60px !important;
        display: flex !important;
        align-items: flex-start !important;
    }
    
    .ad-skyscraper-left,
    .ad-skyscraper-right {
        z-index: 100 !important;
        height: fit-content !important;
        position: sticky !important;
        top: 80px !important;
        align-self: flex-start !important;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-section h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.hero-section p {
    font-size: 21px;
    color: #1d1d1f;
    font-weight: 400;
}

/* Filter Section */
.filter-section {
    padding: 40px 0;
    border-bottom: 1px solid #d2d2d7;
}

.filter-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .filter-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.filter-btn {
    background: #1b2838;
    border: 2px solid transparent;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .filter-btn {
        width: 100%;
    }
}

.filter-btn:hover {
    background: #2a475e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    background: var(--btn-color, #0071e3);
    border-color: var(--btn-color, #0071e3);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.filter-btn[data-category="updates"]:hover {
    box-shadow: 0 6px 16px rgba(88, 86, 214, 0.3);
}

.filter-btn[data-category="updates"].active {
    background: linear-gradient(135deg, #5856d6 0%, #af52de 100%);
    box-shadow: 0 8px 20px rgba(88, 86, 214, 0.5);
}

.filter-btn[data-category="features"]:hover {
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.filter-btn[data-category="features"].active {
    background: linear-gradient(135deg, #007aff 0%, #00d4aa 100%);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.5);
}

.filter-btn[data-category="stories"]:hover {
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.filter-btn[data-category="stories"].active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff3b30 100%);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.5);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    padding: 60px 0 40px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 1024px) {
    .posts-grid {
        gap: 40px;
        padding: 40px 0 40px;
    }
}

@media (max-width: 768px) {
    .main-content-column,
    .blog-main .main-layout-container,
    .posts-grid {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        padding: 30px 0 40px;
        justify-items: center;
    }

    .posts-grid .post-card {
        box-sizing: border-box;
        width: 100%;
        max-width: min(100%, 420px);
    }
}

/* Mobile: cards/containers should be white (better readability + consistency) */
@media (max-width: 768px) {
    .post-card {
        background: #ffffff;
        border-color: #e9ecef;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

    .post-title {
        color: #0b1220;
    }

    .post-excerpt {
        color: #3b4a5a;
    }

    .post-date {
        color: #6c757d;
    }
}

.post-card {
    background: #1b2838;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #2a475e;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007aff, #5856d6, #af52de);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-12px);
    border-color: #e8e8e8;
}

.post-card[data-category="updates"]::before {
    background: linear-gradient(90deg, #007aff, #5856d6);
}

.post-card[data-category="updates"]:hover {
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.25);
}

.post-card[data-category="features"]::before {
    background: linear-gradient(90deg, #00d4aa, #007aff);
}

.post-card[data-category="features"]:hover {
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.25);
}

.post-card[data-category="stories"]::before {
    background: linear-gradient(90deg, #af52de, #ff6b35);
}

.post-card[data-category="stories"]:hover {
    box-shadow: 0 20px 60px rgba(175, 82, 222, 0.25);
}



.post-image {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #007aff 0%, #5856d6 25%, #af52de 50%, #ff3b30 75%, #ff9500 100%);
    display: block;
}



.post-content {
    padding: 20px;
}

.post-category {
    font-size: 12px;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: -0.5px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.post-excerpt {
    font-size: 14px;
    color: #c7d5e0;
    margin-bottom: 16px;
    line-height: 1.6;
}

.post-date {
    font-size: 12px;
    color: #86868b;
    transition: color 0.3s ease;
}

/* Footer */
.Lumnix-footer {
    background: #2F2F2F;
    color: #FFFFFF;
    padding: 40px 0 0 0;
    margin-top: 60px;
}

.Lumnix-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    text-align: center;
}

.footer-section h2 {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #007aff;
}

.footer-bottom {
    border-top: 1px solid #444444;
    padding: 20px 0 0 0;
    text-align: center;
}

.footer-bottom p {
    color: #CCCCCC;
    font-size: 0.8rem;
    margin: 0;
}

.social-media-section {
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a:hover .instagram-icon {
    color: #FFFFFF !important;
}

.instagram-icon {
    color: #FFFFFF !important;
}

.fa-twitter {
    color: #FFFFFF !important;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-section h1 {
        font-size: 40px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .blog-main {
        padding: 0;
    }
    
    .blog-main .main-layout-container {
        padding: 0;
    }

    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-content-column > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}


.language-selector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: black;
}

.language-selector a {
    color: black;
    text-decoration: none;
    font-size: 12px;
}

.hamburger-menu {
    display: none;
}

.hamburger-icon {
    position: relative;
    width: 20px;
    height: 16px;
}

.hamburger-icon span,
.hamburger-icon::before,
.hamburger-icon::after {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-icon span {
    top: 7px;
}

.hamburger-icon::before {
    content: '';
    top: 0;
}

.hamburger-icon::after {
    content: '';
    top: 14px;
}

.hamburger-menu.active .hamburger-icon span {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 7px;
}

.hamburger-menu.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 7px;
}

.navigation-wrapper {
    display: flex;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 99997;
    padding: 80px 0 20px 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-nav-menu li {
    margin-bottom: 0;
    width: 100%;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.mobile-nav-menu a:hover {
    background: #007aff;
    color: white;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex !important;
        position: absolute !important;
        top: 50% !important;
        right: 20px !important;
        transform: translateY(-50%) !important;
        z-index: 99999 !important;
        background: none !important;
        border: none !important;
        width: 20px !important;
        height: 16px !important;
        cursor: pointer !important;
        padding: 0 !important;
    }

    .navigation-wrapper {
        display: none !important;
    }

    header[role="banner"] > div {
        justify-content: center !important;
        padding: 0 20px !important;
    }

    .blog-main {
        padding: 80px 20px 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* FORç?A STICKY NOS ADS DO BLOG */
@media (min-width: 769px) {
    .main-layout-container .ad-skyscraper-left,
    .main-layout-container .ad-skyscraper-right,
    aside.ad-skyscraper-left,
    aside.ad-skyscraper-right {
        position: sticky !important;
        top: 80px !important;
        align-self: flex-start !important;
        height: fit-content !important;
    }
    
    .blog-main,
    .main-layout-container,
    .main-content-column {
        overflow: visible !important;
    }
}

/* Post Modal */
.post-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.post-modal-content {
    background-color: #1b2838;
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.post-modal-content::before {
    content: '';
    display: block;
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #007aff 0%, #5856d6 25%, #af52de 50%, #ff3b30 75%, #ff9500 100%);
}

.post-modal-category,
.post-modal-title,
.post-modal-date,
.post-modal-content-text {
    padding-left: 40px;
    padding-right: 40px;
}

.post-modal-category {
    padding-top: 40px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 32px;
    font-weight: 300;
    color: #86868b;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 5;
}

@media (max-width: 768px) {
    .post-modal-close {
        top: 70px;
    }
}

.post-modal-close:hover {
    color: #1d1d1f;
    background: #f5f5f7;
    transform: rotate(90deg);
}

.post-modal-category {
    font-size: 12px;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}

.post-modal-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #ffffff;
}

.post-modal-date {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 24px;
    display: block;
}

.post-modal-content-text {
    font-size: 18px;
    line-height: 1.8;
    color: #c7d5e0;
    text-align: justify;
}

@media (max-width: 768px) {
    .post-modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .post-modal-title {
        font-size: 28px;
    }
    
    .post-modal-content-text {
        font-size: 16px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
    flex-wrap: wrap;
}

#pagination:empty {
    display: none !important;
}

.pagination-btn {
    background: #1b2838;
    border: 1px solid #2a475e;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 44px;
    font-weight: 500;
}

.pagination-btn:hover {
    background: #2a475e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    border-color: #007aff;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

/* Blog post pages: recent posts list */
.post-sidebar .recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-sidebar .recent-posts li {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(42, 71, 94, 0.6);
}

.post-sidebar .recent-posts li:last-child {
    border-bottom: none;
}

.post-sidebar .recent-posts a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.post-sidebar .recent-posts span {
    display: block;
    color: #94a7bd;
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .pagination {
        padding: 30px 0;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
    }
}

/* Accessibility */
button:focus,
a:focus {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

.filter-btn:focus,
.pagination-btn:focus {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

/* Text Selection */
::selection {
    background: #007aff;
    color: #fff;
}
/* Force ad format separation on blog pages */
@media (min-width: 769px) {
    .ad-mobile-only,
    .ad-mobile-banner.ad-mobile-only {
        display: none !important;
        visibility: hidden !important;
    }

    .blog-main .ad-skyscraper-left,
    .blog-main .ad-skyscraper-right,
    .main-layout-container .ad-skyscraper-left,
    .main-layout-container .ad-skyscraper-right {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .blog-main .ad-skyscraper-left .lumnix-ad-unit,
    .blog-main .ad-skyscraper-right .lumnix-ad-unit,
    .main-layout-container .ad-skyscraper-left .lumnix-ad-unit,
    .main-layout-container .ad-skyscraper-right .lumnix-ad-unit {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .ad-desktop-only {
        display: none !important;
    }
    .ad-mobile-only {
        display: flex !important;
        visibility: visible !important;
    }
    .ad-mobile-only .lumnix-ad-unit {
    }
    .ad-mobile-banner.ad-mobile-only {
        display: flex !important;
        visibility: visible !important;
    }

    /* Blog mobile: ad containers must be white (like the rest of the cards) */
    .ad-banner-middle,
    .ad-spot .ad-banner-middle {
        background: #ffffff !important;
        border: 1px solid #e9ecef !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
    }

    .ad-banner-middle .ad-label {
        color: #6c757d !important;
    }

    /* Some pages use `div.tile.ad-mobile-only` for the first ad right after the hero */
    .tile.ad-mobile-only,
    .tile.ad-mobile-only.ad-mobile-banner,
    .ad-mobile-only.ad-mobile-banner {
        background: #ffffff !important;
        border: 1px solid #e9ecef !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
        color: #0b1220;
    }

    .tile.ad-mobile-only .ad-label {
        color: #6c757d !important;
    }
}

/* Hide ad spots on desktop until a real ad is injected */
.ad-spot {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.ad-spot.ad-loaded {
    display: flex;
}

/* Desktop banner in the middle of posts. */
.ad-square-desktop,
.ad-banner-middle.ad-square-desktop {
    height: auto !important;
    min-height: 290px !important;
    max-width: 292px;
    width: 100%;
    margin: 24px auto 0;
}

.ad-square-desktop .lumnix-ad-unit,
.ad-banner-middle.ad-square-desktop .lumnix-ad-unit {
}


/* Modal ads on mobile */
@media (max-width: 768px) {
    .post-modal-content-text .modal-ad-container {
        background: #ffffff !important;
        border: 1px solid #e9ecef !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        width: 290px !important;
        max-width: 290px !important;
        min-height: 290px !important;
        margin: 16px auto !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }

    .post-modal-content-text .modal-ad-container .lumnix-ad-unit {
    }

    .post-modal-content-text .modal-ad-container p {
        color: #6c757d !important;
    }
}

/* Shared article layout. */
.main-layout-container { justify-content: center; gap: 32px; }
        .main-content-column { max-width: 1220px !important; width: 100%; margin: 0 auto; padding-right: 0; }
        .post-layout { max-width: 100% !important; width: 100% !important; margin: 24px auto 80px; padding: 0 24px; display: grid; box-sizing: border-box; grid-template-columns: minmax(0, 1fr) 160px; gap: 18px; }
        .post-article { background: #1b2838; border: 1px solid #2a475e; border-radius: 24px; padding: 32px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
        .post-article h1 { font-size: 32px; margin: 12px 0 16px; color: #fff; }
        .post-meta { display:flex; gap: 12px; align-items:center; font-size: 12px; color:#9bb1c7; text-transform: uppercase; letter-spacing: .4px; }
        .post-content { font-size: 16px; line-height: 1.8; color: #c7d5e0; }
        .post-sidebar { background: #1b2838; border: 1px solid #2a475e; border-radius: 20px; padding: 18px; height: fit-content; position: relative; z-index: 2; width: 160px; max-width: 160px; }
        @media (max-width: 992px) { .post-layout { grid-template-columns: 1fr; padding: 0 20px; margin: 20px auto 60px; } }
    @media (max-width: 768px) {
      .main-content-column { padding-right: 0 !important; }
      .post-layout { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; padding: 0 14px !important; margin: 16px auto 48px !important; justify-items: center !important; }
      .post-article, .post-sidebar { box-sizing: border-box !important; width: 100% !important; max-width: min(100%, 720px) !important; margin-left: auto !important; margin-right: auto !important; }
      .post-article { padding: 22px !important; border-radius: 18px !important; }
      .post-article h1 { font-size: 26px !important; }
      .post-meta { flex-wrap: wrap; row-gap: 6px; }
      .post-sidebar { padding: 18px !important; border-radius: 18px !important; }
    }
    @media (min-width: 769px) {
      .post-article .ad-square-desktop {
        width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box !important; overflow: hidden;
      }
      .post-article .ad-square-desktop .lumnix-ad-unit {
      }
    }


/* Editorial article pages. The blog index and the shared navigation keep their own styles. */
body.post-page {
  background: radial-gradient(ellipse 70% 30% at 50% 4%, rgba(39, 50, 94, .24), transparent 75%), #101521;
  color: #e5eaf4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-page .main-layout-container {
  max-width: 1320px;
  padding: 28px 24px 56px;
}

.post-page .main-content-column {
  max-width: 1280px !important;
  min-width: 0;
}

.post-page .post-layout {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 32px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 276px);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.post-page .post-article {
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.post-page .post-article:not(:has(.post-hero))::before {
  content: '';
  display: block;
  width: 88px;
  height: 2px;
  margin: 20px 0 40px;
  background: linear-gradient(90deg, #49cde7, #8b7cf4);
}

.post-page .post-hero {
  width: 100%;
  aspect-ratio: 1910 / 823;
  margin: 0 0 clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: 18px;
  background: #1b2435;
  border: 1px solid rgba(190, 207, 255, .1);
}

.post-page .post-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-page .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #9ec5dd;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.post-page .post-meta span:nth-child(2) {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  font-size: 0;
}

.post-page .post-article h1 {
  max-width: 23ch;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.25rem, 4.2vw, 4.15rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
}

.post-page .post-deck {
  max-width: 64ch;
  margin: 0 0 22px;
  color: #b9c5d8;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.post-page .post-byline {
  margin: 0 0 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(193, 207, 235, .16);
  color: #a9bacd;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.post-page .post-content {
  max-width: 74ch;
  padding: 0;
  color: #d5ddea;
  font-size: clamp(1rem, .35vw + .95rem, 1.1rem);
  line-height: 1.88;
  letter-spacing: .002em;
  overflow-wrap: break-word;
}

.post-page .post-content h2 {
  margin: 2.3em 0 .75em;
  color: #f6f8ff;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -.02em;
  text-transform: none;
}

.post-page .post-content h2:first-child { margin-top: 0; }
.post-page .post-content h3 {
  margin: 1.5em 0 .45em;
  color: #f6f8ff;
  font-size: 1.12em;
  line-height: 1.4;
}
.post-page .post-content strong { color: #f1f5ff; font-weight: 700; }
.post-page .post-content em { color: #eef2fb; }
.post-page .post-content br + br { display: block; margin-bottom: .15em; content: ''; }
.post-page .post-content p,
.post-page .post-content ul,
.post-page .post-content ol,
.post-page .post-content blockquote { margin: 0 0 1.25em; }
.post-page .post-content ul,
.post-page .post-content ol { padding-left: 1.45em; }
.post-page .post-content li { padding-left: .2em; margin: .35em 0; }
.post-page .post-content blockquote { padding: .2em 0 .2em 1.2em; border-left: 2px solid #6cc6e8; color: #c7d5e9; }
.post-page .post-content img { max-width: 100%; height: auto; border-radius: 12px; }
.post-page .post-content table { display: block; max-width: 100%; overflow-x: auto; }

.post-page .post-content a,
.post-page .lx-refs a,
.post-page .lx-games-box a { color: #8bd8f6 !important; text-decoration: underline !important; text-decoration-color: rgba(139, 216, 246, .55) !important; text-underline-offset: .2em; }

.post-page .lx-refs {
  max-width: 74ch !important;
  margin: 44px 0 8px !important;
  padding: 24px !important;
  border-radius: 14px !important;
  background: #172235 !important;
  border: 1px solid rgba(171, 196, 234, .18) !important;
}
.post-page .lx-refs h2 { color: #f4f7ff; font-size: 1.1rem !important; line-height: 1.4; }
.post-page .lx-refs li { margin-bottom: .6em !important; overflow-wrap: anywhere; }
.post-page .lx-refs p { line-height: 1.65; }

.post-page .post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 7px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.post-page .post-recent { order: 1; }
.post-page .post-recent h2,
.post-page .lx-games-box h2 {
  margin: 0 0 15px;
  color: #f6f8ff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.post-page .recent-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-page .recent-posts li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(190, 205, 239, .12);
  min-width: 0;
}
.post-page .recent-posts li:first-child { padding-top: 0; }
.post-page .recent-posts li:last-child { border-bottom: 0; }
.post-page .recent-posts a {
  display: flow-root;
  min-height: 52px;
  color: #e8eef8;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.45;
}
.post-page .recent-posts a img {
  float: left;
  width: 72px;
  height: 52px;
  margin: 0 12px 4px 0;
  border-radius: 7px;
  object-fit: cover;
}
.post-page .recent-posts span { display: block; margin-top: 4px; color: #9faec3; font-size: .76rem; line-height: 1.4; }

.post-page .lx-games-box {
  order: 2;
  width: 100%;
  max-width: 74ch;
  margin: 32px 0 40px;
  padding: 23px;
  background: linear-gradient(145deg, #1b2c45, #1c2140 85%);
  border: 1px solid rgba(140, 169, 239, .22);
  border-radius: 15px;
}
.post-page .lx-games-box h2 { font-size: 1.13rem; }
.post-page .lx-games-box p { margin: 0 0 14px; color: #bbc9dc; font-size: .87rem; line-height: 1.65; }
.post-page .lx-games-box p:last-child { margin-bottom: 0; padding-top: 14px; border-top: 1px solid rgba(198, 213, 244, .15); }
.post-page .lx-games-box ul { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0 0 12px; padding: 0; }
.post-page .lx-games-box li { border-top: 1px solid rgba(198, 213, 244, .12); }
.post-page .lx-games-box li a { display: block; padding: 11px 15px 11px 0; font-size: .87rem; line-height: 1.45; font-weight: 650; }
.post-page .lx-games-box li a::after { content: '↗'; float: right; font-size: .85em; color: #9fb3d7; }
.post-page .lx-games-box li a:has(.lx-related-name) { padding: 14px 0; }
.post-page .lx-games-box li a:has(.lx-related-name)::after { content: none; }
.post-page .lx-related-name,
.post-page .lx-related-description,
.post-page .lx-related-cta { display: block; }
.post-page .lx-related-name { color: #f6f8ff; font-size: 1rem; }
.post-page .lx-related-description { margin-top: 5px; color: #c6d5e6; font-weight: 400; }
.post-page .lx-related-cta { margin-top: 8px; color: #8bd8f6; }

.post-page .post-article .ad-mobile-banner { max-width: 100% !important; }
.post-page .post-article .ad-square-desktop { max-width: 100% !important; }

.post-page a:focus-visible {
  outline: 2px solid #8bd8f6 !important;
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 960px) {
  .post-page .post-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .post-page .post-sidebar { display: flex; flex-direction: column; gap: 28px; margin: 0; }
  .post-page .lx-games-box { order: 1; }
  .post-page .post-recent { order: 2; }
  .post-page .post-article { max-width: none !important; }
  .post-page .post-sidebar { max-width: none !important; }
}

@media (max-width: 768px) {
  .post-page .main-layout-container { padding: 22px 0 48px !important; }
  .post-page .main-content-column { padding: 0 !important; }
  .post-page .post-layout { padding: 0 16px !important; margin: 0 auto 36px !important; justify-items: stretch !important; }
  .post-page .post-article,
  .post-page .post-sidebar { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
  .post-page .post-hero { border-radius: 12px; aspect-ratio: 16 / 10; margin-bottom: 28px; }
  .post-page .post-article:not(:has(.post-hero))::before { margin: 12px 0 28px; }
  .post-page .post-article h1 { max-width: 100%; margin-bottom: 19px; font-size: clamp(2rem, 7.5vw, 3rem) !important; line-height: 1.13; }
  .post-page .post-meta { font-size: .68rem; letter-spacing: .08em; margin-bottom: 13px; }
  .post-page .post-deck { font-size: 1.05rem; line-height: 1.6; }
  .post-page .post-byline { margin-bottom: 28px; }
  .post-page .post-content { font-size: 1rem; line-height: 1.82; }
  .post-page .post-content h2 { margin-top: 2em; }
  .post-page .lx-games-box { padding: 22px !important; }
  .post-page .post-recent { padding: 0 3px; }
  html:root body.post-page .post-article .ad-mobile-banner { width: min(290px, 100%) !important; min-width: 0 !important; max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
}

@media (max-width: 360px) {
  .post-page .post-layout { padding: 0 12px !important; }
  .post-page .post-article h1 { font-size: 1.96rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .post-page *, .post-page *::before, .post-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Two editorial placements and the final article unit share one layout. */
html:root body.post-page .blog-ad {
  clear: both;
  margin-block: 40px !important;
}
html:root body.post-page .blog-ad--sensitive {
  margin-block: 52px !important;
}
html:root body.post-page .post-article > .blog-ad--final {
  margin-top: 64px !important;
}
html:root body.post-page .blog-ad .lumnix-ad-unit--desktop {
  min-height: 300px !important;
}
@media (max-width: 768px) {
  html:root body.post-page .blog-ad .lumnix-ad-unit--mobile {
    min-height: 320px !important;
  }
}
html:root body.post-page .blog-ad[data-blog-ad-empty="yes"] {
  display: none !important;
}

/* Keep the final editorial ad after the article and recent-posts column. */
html:root body.post-page .post-layout > .blog-ad--final {
  grid-column: 1 / -1;
  width: 100%;
  clear: both;
  margin: 64px auto 40px !important;
}
@media (max-width: 768px) {
  html:root body.post-page .post-layout > .ad-mobile-banner.blog-ad--final {
    width: min(290px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Keep this post's recent links above the article on narrow screens. */
html:root body.post-page.gta-vi-post .post-layout {
  grid-template-areas: "article recent" "final final";
}
html:root body.post-page.gta-vi-post .post-article { grid-area: article; }
html:root body.post-page.gta-vi-post .post-sidebar { grid-area: recent; }
html:root body.post-page.gta-vi-post .post-layout > .blog-ad--final { grid-area: final; }
@media (max-width: 960px) {
  html:root body.post-page.gta-vi-post .post-layout {
    grid-template-areas: "recent" "article" "final";
  }
}
