<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* ======================= Variables &amp; Global Styles ======================= */
:root {
    --primary-color: #FF4200;
    --background-color: #181818;
    --card-background: rgba(255, 255, 255, 0.04);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.64);
    --text-tertiary: rgba(255, 255, 255, 0.48);
    --text-muted: rgba(255, 255, 255, 0.32);
    --border-color: rgba(255, 255, 255, 0.04);

    --main-padding-x: 260px;
    --main-padding-y: 24px;
    --content-gap: 48px;
    --column-gap: 48px;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.page-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: var(--main-padding-y) var(--main-padding-x);
    display: flex;
    flex-direction: column;
    gap: 32px; /* ÑƒÐ¼ÐµÐ½ÑŒÑˆÐµÐ½ gap */
}

a {
    text-decoration: none;
}

/* ======================= Header ======================= */
.header-main {
    height: 48px;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-size: 16px;
    font-weight: 600;
}
.logo-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* Ð”ÐµÑÐºÑ‚Ð¾Ð¿: Ð²ÐµÑ€Ð½ÑƒÑ‚ÑŒ Ð°Ð±ÑÐ¾Ð»ÑŽÑ‚Ð½Ð¾Ðµ Ð¿Ð¾Ð·Ð¸Ñ†Ð¸Ð¾Ð½Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ðµ Ð¿Ð¾Ð¸ÑÐºÐ° */
.header-flex-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    position: relative;
}
.header-search-container {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    width: 208px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0;
}
.header-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    gap: 16px;
    width: 208px;
    height: 48px;
    border-radius: 8px;
    position: relative;
    background: none;
    margin: 0;
}
#searchInput {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    width: 120px;
    height: 24px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.48);
    padding: 0;
    margin-left: 0;
}
.search-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.header-burger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    margin-left: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: background 0.2s;
}
.header-burger:active,
.header-burger:focus,
.header-burger[aria-expanded="true"] {
    background: #23272f;
}
.header-mobile-menu {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #23272f;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    min-width: 160px;
    z-index: 100;
    padding: 12px 0;
    animation: fadeInMenu 0.18s;
}
@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}
.header-mobile-menu a {
    display: block;
    padding: 10px 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    background: none;
    border: none;
    width: 100%;
    text-decoration: none;
    transition: background 0.15s;
}
.header-mobile-menu a:hover {
    background: #181a20;
    color: #FF4200;
}

/* ======================= Buttons ======================= */
.btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    font-weight: 600;
}
.btn-custom-primary {
    background-color: var(--primary-color);
    color: var(--text-primary);
}
.btn-custom-primary:hover {
    background-color: #e03a00;
    color: var(--text-primary);
}

.btn-custom-secondary {
    background-color: var(--card-background);
    color: var(--text-primary);
}
.btn-custom-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.btn-custom-secondary img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}


/* ======================= Main Layout &amp; Sidebar ======================= */
.main-content {
    flex-grow: 1;
}
.gx-custom {
    --bs-gutter-x: var(--column-gap);
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 332px));
    gap: 24px;
    justify-content: center;
    align-items: start;
}

@media (min-width: 1200px) {
    .h1, h1 {
        font-size: 32px;
    }
}

/* Add these new styles to fix sidebar overlapping */
@media (max-width: 1600px) and (min-width: 1200px) {
    :root { 
        --main-padding-x: 40px; 
        --column-gap: 24px;
    }
    
    /* Adjust column widths */
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
        min-width: 220px;
    }
    
    .col-lg-6 {
        flex: 1 0 auto;
        width: 50%;
        min-width: 0;
    }
}

@media (max-width: 1200px) {
    :root { 
        --main-padding-x: 24px;
        --column-gap: 16px;
    }
    
    /* Further reduce minimum sidebar width */
    .col-lg-3 {
        min-width: 200px;
    }
    
    .post-card-medium {
        width: 100%;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 15px; /* Ñ‡ÑƒÑ‚ÑŒ Ð¼ÐµÐ½ÑŒÑˆÐµ */
    font-weight: 600;
    color: #5A5A61;
    margin-bottom: 12px; /* Ð¼ÐµÐ½ÑŒÑˆÐµ Ð¾Ñ‚ÑÑ‚ÑƒÐ¿ */
    letter-spacing: 0.01em;
    text-transform: none;
}

.sidebar-section {
    border-radius: 12px;
    padding: 16px 0 8px 0;
    margin-bottom: 12px;
}

.sidebar-section.py-0 {
    background: var(--card-background);
}

.sidebar-nav .nav-item {
    margin-bottom: 4px;
}
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}
.sidebar-nav .nav-link img {
    width: 24px;
    height: 24px;
}
.sidebar-link-muted {
    color: rgba(255, 255, 255, 0.123);
}
.sidebar-nav .nav-link.active, .sidebar-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--text-primary);
}
.sidebar-nav .nav-link.active .sidebar-link-muted,
.sidebar-nav .nav-link:hover .sidebar-link-muted {
    color: var(--text-primary);
}
.sidebar-nav .nav-link.active img,
.sidebar-nav .nav-link:hover img {
   filter: brightness(0) invert(1);
}

/* ======================= Posts Content ======================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 332px);
    gap: 24px;
    justify-content: center;
    align-items: start;
}

.post-card {
    background-color: var(--card-background);
    border-radius: 12px;
    border: none;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.post-card-large {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}
.post-card-medium {
    width: 332px;
    margin: 0;
    /* ÑƒÐ±Ð¸Ñ€Ð°ÐµÐ¼ flex */
}

.post-card .card-img-top { border-radius: 8px; object-fit: cover; }
.post-card-large .card-img-top { height: 260px; }
.post-card-medium .card-img-top { height: 110px; }

.post-card .card-body { padding: 0; display: flex; flex-direction: column; gap: 20px; }
.post-text-content { display: flex; flex-direction: column; gap: 12px; }
.post-meta { display: flex; justify-content: space-between; align-items: center; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; margin-right: 6px; }

.author-info { display: flex; flex-direction: column; line-height: 1.5; font-size: 11px;     max-width: 115px;}
.author-info span:first-child { color: var(--text-secondary); }
.text-muted-post { color: var(--text-muted) !important; }
.text-muted-post a{ color: var(--text-muted) !important; }

.post-stats { font-size: 11px; color: var(--text-secondary); font-weight: 400; }
.post-card .card-title { color: var(--text-primary); font-weight: 600; font-size: 18px; line-height: 1.4; margin-bottom: 0; }
.post-card .card-text { color: var(--text-secondary); font-size: 14px; line-height: 1.4; font-weight: 400;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .card-link { font-size: 15px; font-weight: 500; letter-spacing: 0.01em; text-decoration: underline; color: var(--primary-color); }

/* ======================= Threads Sidebar ======================= */
.thread-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
}
.thread-item {
    padding: 16px 20px;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.thread-item:last-child { border-bottom: none; }
.thread-meta { display: flex; justify-content: space-between; align-items: center; gap: 0; }
.thread-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%; 
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    margin-right: 6px;
}
.thread-time {
    font-size: 11px;
    color: var(--text-tertiary);
}
.thread-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0;
}

/* ======================= Footer ======================= */
.footer-main { padding-top: 24px; border-top: 1px solid var(--border-color); }
.footer-text { font-size: 15px; font-weight: 500; color: var(--text-tertiary); }
.footer-links { flex-wrap: wrap;}
.footer-links a { margin-left: 40px; font-size: 15px; }
.footer-links a:hover { color: var(--text-primary); }


@media (min-width: 1200px) {
    .search-icon {
        width: 18px;
        height: 18px;

    }
}


/* ======================= Responsive adjustments ======================= */
@media (max-width: 1600px) and (min-width: 1200px) {
    :root { --main-padding-x: 40px; }
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 1200px) {
    :root { --main-padding-x: 24px; }
}

@media (max-width: 1200px) {
    :root { --main-padding-x: 24px; --main-padding-y: 16px; --column-gap: 0; }
    .page-container { gap: 32px; }
    .header-search-container { display: none !important; }
    .post-card-medium, .post-card-large {
        width: 100%;
    }
    .post-card-large {
        grid-column: auto;
    }
    .footer-main .d-flex { text-align: center; justify-content: center !important; }
    .footer-links { margin-top: 16px; }
    .footer-links a { margin: 0 16px; }
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .post-card { padding: 12px; gap: 10px; }
    .post-card-large .card-img-top { height: 180px; }
    .post-card-medium .card-img-top { height: 80px; }
    .thread-item { padding: 12px 10px; }

    .header-main {
        height: auto;
        padding: 0 0 12px 0;
        background: #181818;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .navbar {
        padding: 0 !important;
    }
    .navbar-brand span {
        font-size: 15px;
        font-weight: 600;
        display: none;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
        margin-right: 0;
    }
    .header-search-container {
        position: static !important;
        width: 100%;
        margin: 12px 0 0 0;
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    .header-search {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        padding: 8px 12px;
        border-radius: 8px;
        background: #23272f;
        margin: 0 auto;
        gap: 10px;
    }
    #searchInput {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        color: #fff;
        background: transparent;
        padding: 0 0 0 8px;
        margin-left: 0;
    }
    .search-icon-wrap {
        width: 22px;
        height: 22px;
    }
    .d-flex.align-items-center {
        gap: 8px;
    }
    .btn {
        padding: 8px 14px;
        font-size: 14px;
        border-radius: 6px;
        min-width: 80px;
    }
    .btn-custom-secondary, .btn-custom-primary {
        font-size: 14px;
        padding: 8px 14px;
    }
}

/* --- Mobile adaptation from index.html &lt;style&gt; --- */
@media (max-width: 1200px) {
    .main-content .row.gx-custom {
        flex-direction: column;
    }
    aside.sidebar-mobile {
        order: -1; /* Move above content */
        margin: 0 0 24px 0;
        padding: 0;
    }
    .sidebar-section {
        background: rgba(255, 255, 255, 0.04);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 12px 0;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding: 4px 12px;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar for cleaner look */
    }

    .sidebar-nav .nav-item {
        display: inline-block;
        margin: 0;
    }

    .sidebar-nav .nav-link {
        padding: 8px 16px;
        border-radius: 8px;
        background: #23272f;
        color: var(--text-secondary);
        margin: 0;
        font-size: 14px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sidebar-nav .nav-link img {
        width: 20px;
        height: 20px;
    }

    .sidebar-nav .nav-link.active {
        background: var(--primary-color);
        color: #fff;
    }

    /* Adjust main content top spacing */
    .col-lg-6 {
        margin-top: 0;
    }
}

/* ...existing code... */

/* Pixel-perfect Registration Modal */
.modal-custom {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-custom-backdrop {
    position: absolute;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: #181818E0;
    backdrop-filter: blur(32px);
    z-index: 1; 
}
.modal-custom-dialog {
    position: relative;
    z-index: 2;
    background: #FFFFFF0A;
    backdrop-filter: blur(32px);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.32);
    padding: 48px 24px 32px 24px;
    width: 498px;
    min-width: 320px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.modal-custom-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    opacity: 0.48;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s, opacity 0.2s;
}
.modal-custom-close:hover { color: #FF4200; opacity: 1; }

.signup-modal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}
.signup-modal-logo {
    width: 24px;
    height: 24px;
}
.signup-modal-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

.signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.signup-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: -0.02em;
}
.signup-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.64);
    text-align: center;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    width: 100%;
}
.signup-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}
.signup-fields input {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    padding: 12px 24px;
    outline: none;
    transition: border 0.2s, background 0.2s;
    box-sizing: border-box;
    letter-spacing: -0.02em;
}
.signup-fields input::placeholder {
    color: rgba(255,255,255,0.48);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.signup-fields input:focus {
    border: 1px solid #FF4200;
    background: rgba(255,255,255,0.07);
}
.signup-btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #FF4200;
    color: #fff;
    border: none;
    margin-top: 8px;
    letter-spacing: -0.02em;
    transition: background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(255,66,0,0.10);
}
.signup-btn:hover {
    background: #ff6a00;
}

.signup-modal-footer {
    margin-top: 12px;
    font-size: 16px;
    color: rgba(255,255,255,0.48);
    text-align: center;
    width: 100%;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.signup-login-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s;
}
.signup-login-link:hover {
    color: #FF4200;
    text-decoration: underline;
}


/* Ð¡Ñ‚Ð¸Ð»Ð¸Ð·ÑƒÐµÐ¼ ÑÑ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ñ‹Ð¹ Ð±Ñ€Ð°ÑƒÐ·ÐµÑ€Ð½Ñ‹Ð¹ Ð³Ð»Ð°Ð·Ð¸Ðº (Webkit/Edge/IE) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear, input[type="password"]::-ms-reveal, input[type="password"]::-webkit-credentials-auto-fill-button {
    color: var(--text-primary);
}

input[type="password"]::-ms-reveal {
    background-color: var(--primary-color);
    border-radius: 50%;
}


/* Success message (already present, but for clarity) */
.signup-success {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}
.signup-success-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.signup-success-inner .fa-envelope-circle-check {
    font-size: 48px;
    color: #FF4200;
    margin-bottom: 8px;
}
.signup-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.signup-success-desc {
    font-size: 15px;
    color: #bcbcbc;
    text-align: center;
    max-width: 260px;
    line-height: 1.5;
}

/* Login Modal (Pixel-perfect) */
.login-modal-dialog {
    width: 498px;
    height: 446px;
    padding: 24px;
    gap: 20px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    backdrop-filter: blur(32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.login-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: -0.02em;
}
.login-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.64);
    text-align: center;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    width: 100%;
}
.login-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}
.login-fields input {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    padding: 12px 24px;
    outline: none;
    transition: border 0.2s, background 0.2s;
    box-sizing: border-box;
    letter-spacing: -0.02em;
}
.login-fields input::placeholder {
    color: rgba(255,255,255,0.48);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.login-fields input:focus {
    border: 1px solid #FF4200;
    background: rgba(255,255,255,0.07);
}
.login-btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #FF4200;
    color: #fff;
    border: none;
    margin-top: 8px;
    letter-spacing: -0.02em;
    transition: background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(255,66,0,0.10);
}
.login-btn:hover {
    background: #ff6a00;
}

/* Error message for login */
.login-error {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin-top: 8px;
}
.login-error-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255,66,0,0.08);
    border-radius: 8px;
    padding: 18px 24px;
    width: 100%;
    box-sizing: border-box;
}
.login-error-title {
    font-size: 18px;
    font-weight: 700;
    color: #FF4200;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.login-error-desc {
    font-size: 15px;
    color: #fff;
    text-align: center;
    max-width: 320px;
    line-height: 1.5;
}
.login-error-desc .signup-login-link {
    color: #FF4200;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 2px;
}

/* ÐžÐ³Ñ€Ð°Ð½Ð¸Ñ‡ÐµÐ½Ð¸Ðµ ÑÑ‚Ñ€Ð¾Ðº Ð¸ ÑˆÐ¸Ñ€Ð¸Ð½Ñ‹ Ð´Ð»Ñ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² Ð¸ Ñ‚ÐµÐºÑÑ‚Ð° ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐµÐº */
.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ð¼Ð°ÐºÑÐ¸Ð¼ÑƒÐ¼ 2 ÑÑ‚Ñ€Ð¾ÐºÐ¸ */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: normal;
}

.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Ð¼Ð°ÐºÑÐ¸Ð¼ÑƒÐ¼ 3 ÑÑ‚Ñ€Ð¾ÐºÐ¸ */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: normal;
}

/* ÐžÐ³Ñ€Ð°Ð½Ð¸Ñ‡ÐµÐ½Ð¸Ðµ ÑÑ‚Ñ€Ð¾Ðº Ð´Ð»Ñ .text-muted-post */
.text-muted-post {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Ð¼Ð°ÐºÑÐ¸Ð¼ÑƒÐ¼ 1 ÑÑ‚Ñ€Ð¾ÐºÐ° */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: normal;
}

/* Ð¢Ð¾Ð»ÑŒÐºÐ¾ Ð¼Ð¾Ð±Ð¸Ð»ÑŒÐ½Ð°Ñ Ð°Ð´Ð°Ð¿Ñ‚Ð°Ñ†Ð¸Ñ */
@media (max-width: 1200px) {
    .header-flex-wrap {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    .header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        position: relative;
    }
    /* ÐŸÐ¾Ð¸ÑÐº ÑÑ‚Ð°Ð½Ð¾Ð²Ð¸Ñ‚ÑÑ Ð¾Ñ‚Ð´ÐµÐ»ÑŒÐ½Ð¾Ð¹ ÑÑ‚Ñ€Ð¾ÐºÐ¾Ð¹ */
    .header-search-container {
        position: static !important;
        left: auto;
        top: auto;
        transform: none;
        z-index: 2;
        width: 100%;
        margin-top: 8px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 0;
        height: auto;
    }
    .header-search {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        padding: 10px 16px;
        border-radius: 8px;
        background: none;
        margin: 0 auto;
        gap: 16px;
        display: flex;
        align-items: center;
        height: auto;
    }
    #searchInput {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        color: rgba(255,255,255,0.48);
        background: transparent;
        border: none;
        outline: none;
        padding: 0;
        margin-left: 0;
        height: 24px;
    }
    .search-icon-wrap {
        width: 22px;
        height: 22px;
    }
    .header-btns-wrap {
        display: none !important;
    }
    .header-burger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        margin-left: 8px;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 50%;
        transition: background 0.2s;
    }
    .header-burger:active,
    .header-burger:focus {
        background: #23272f;
    }
    .header-burger[aria-expanded="true"] {
        background: #23272f;
    }
    .header-mobile-menu {
        display: none;
        position: absolute;
        top: 48px;
        right: 0;
        background: #23272f;
        border-radius: 10px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.18);
        min-width: 160px;
        z-index: 100;
        padding: 12px 0;
        animation: fadeInMenu 0.18s;
    }
    .header-mobile-menu.show {
        display: block;
    }
    @keyframes fadeInMenu {
        from { opacity: 0; transform: translateY(-10px);}
        to { opacity: 1; transform: translateY(0);}
    }
    .header-mobile-menu a {
        display: block;
        padding: 10px 24px;
        color: #fff;
        font-size: 15px;
        font-weight: 500;
        text-align: left;
        background: none;
        border: none;
        width: 100%;
        text-decoration: none;
        transition: background 0.15s;
    }
    .header-mobile-menu a:hover {
        background: #181a20;
        color: #FF4200;
    }
    .navbar-brand span {
        display: inline !important;
        font-size: 16px;
        font-weight: 600;
        margin-left: 8px;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
        margin-right: 0;
    }
}
@media (max-width: 767.98px) {
    .header-search {
        padding: 8px 8px;
    }
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    .navbar-brand span {
        font-size: 15px;
    }
}

/* Ð¡Ð±Ñ€Ð¾ÑÐ¸Ñ‚ÑŒ ÑÑ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ñ‹Ð¹ Ñ†Ð²ÐµÑ‚ Ð¸ Ð¾Ñ„Ð¾Ñ€Ð¼Ð»ÐµÐ½Ð¸Ðµ ÑÑÑ‹Ð»Ð¾Ðº Ð²Ð½ÑƒÑ‚Ñ€Ð¸ ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐµÐº Ð¸ Ñ‚Ñ€ÐµÐ´Ð¾Ð² */
.post-card a,
.card-title a,
.card-link,
.thread-card a,
.thread-item a,
.sidebar-nav .nav-link,
.footer-links a {
    color: inherit;
    text-decoration: none;
    background: none;
}

.card-title a {
    color: var(--text-primary);
    font-weight: inherit;
    text-decoration: none;
    transition: color 0.18s;
}
.card-title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.card-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}
.card-link:hover {
    color: #e03a00;
    text-decoration: underline;
}

.thread-card a,
.thread-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 1s;
}

.thread-card a:hover *,
.thread-item a:hover * {
    color: var(--primary-color)!important;
    transition: all 1s;
}

.sidebar-nav .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
}
.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    color: var(--text-primary);
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ======================= Article Page Specific Styles ======================= */
.post-page-article .card-body {
    padding: 24px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿Ñ‹ Ð²Ð¾ÐºÑ€ÑƒÐ³ ÐºÐ¾Ð½Ñ‚ÐµÐ½Ñ‚Ð° ÑÑ‚Ð°Ñ‚ÑŒÐ¸ */
    background: var(--card-background);
    border-radius: 12px;
}
.post-page-article .post-meta {
    margin-bottom: 24px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ Ð¼ÐµÐ¶Ð´Ñƒ Ð¼ÐµÑ‚Ð°-Ð´Ð°Ð½Ð½Ñ‹Ð¼Ð¸ Ð¸ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð¼ h1 */
}
.post-page-article .card-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 24px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ Ð¼ÐµÐ¶Ð´Ñƒ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð¼ h1 Ð¸ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸ÐµÐ¼ */
}
.post-page-article .card-img-top {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 24px !important; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ Ð¼ÐµÐ¶Ð´Ñƒ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸ÐµÐ¼ Ð¸ Ð¿ÐµÑ€Ð²Ñ‹Ð¼ Ð°Ð±Ð·Ð°Ñ†ÐµÐ¼ */
}
.post-page-article p.card-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text-secondary);
    display: block; /* Ð£Ð±Ð¸Ñ€Ð°ÐµÐ¼ line-clamp Ð´Ð»Ñ Ð¿Ð¾Ð»Ð½Ð¾Ð³Ð¾ Ñ‚ÐµÐºÑÑ‚Ð° ÑÑ‚Ð°Ñ‚ÑŒÐ¸ */
    -webkit-line-clamp: unset;
}
.post-page-article h2,
.post-page-article h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 32px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ ÑÐ²ÐµÑ€Ñ…Ñƒ Ð´Ð»Ñ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² H2/H3 */
    margin-bottom: 16px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ ÑÐ½Ð¸Ð·Ñƒ Ð´Ð»Ñ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² H2/H3 */
    line-height: 1.4;
    letter-spacing: -0.02em;
}
.post-page-article h2 {
    font-size: 22px;
}
.post-page-article h3 {
    font-size: 18px;
}
.post-page-article ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}
.post-page-article ul li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Article Table of Contents (TOC) */
.article-toc {
    border-radius: 12px;
    padding: 0;
    margin-bottom: 16px;
    width: 100%;
    position: sticky;
    top: 24px;
}

.article-toc .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    width: 100%;
    min-height: 40px;
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 15px;
    line-height: 150%;
    letter-spacing: -0.02em;
    color: #5A5A61;
    transition: all 0.2s;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.article-toc .nav-link:hover {
    color: var(--text-primary);
}

.article-toc .nav-link.active {
    color: var(--text-primary);
    border-left: 2px solid #FFFFFF;
}

/* Search results dropdown styles */
.header-search {
    position: relative; /* Ensure dropdown positions correctly */
}
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 4px); /* Position below the search input with a small gap */
    left: 0;
    width: 100%;
    background-color: #23272f; /* Dark background for dropdown */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100; /* Above other content */
    max-height: 300px; /* Limit height and enable scrolling */
    overflow-y: auto;
    padding: 8px 0;
}
.search-result-item {
    padding: 10px 16px;
}
.search-result-item a {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
}


/* Responsive adjustments for article page and TOC */
@media (max-width: 1200px) {
    .article-toc {
        position: static; /* Remove sticky on mobile */
        margin-top: 2rem;
        max-height: unset; /* Remove max-height */
        overflow-y: visible; /* Remove overflow */
        padding: 16px;
    }
    .post-page-article .card-body {
        padding: 16px;
    }
    .post-page-article .card-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .post-page-article .card-img-top {
        margin-bottom: 16px !important;
    }
    .post-page-article p.card-text,
    .post-page-article ul li {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .post-page-article h2 {
        font-size: 20px;
        margin-top: 24px;
        margin-bottom: 12px;
    }
    .post-page-article h3 {
        font-size: 17px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    /* TOC on mobile - make it horizontal scrollable like sidebar news feeds */
    .article-toc .nav {
        flex-direction: row !important;
        overflow-x: auto;
        white-space: wrap;
        gap: 0.5rem;
    }
    .article-toc .nav-item {
        display: inline-block;
        margin-bottom: 0;
    }
    .article-toc .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        background: #23272f;
        color: #fff;
        margin-right: 0.5rem;
        font-size: 15px;
    }
    .article-toc .nav-link.active {
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    .article-toc .nav-link:hover {
        background: #23272f; /* Keep the original background on hover */
        color: var(--text-primary);
    }
    /* Remove indent for H3s on mobile TOC */
    .article-toc .nav-item.ms-3 .nav-link {
        padding-left: 1rem;
    }
    .header-search-container .header-search {
        background: #23272f; /* Set background for search input on mobile */
    }
}

@media (max-width: 767.98px) {
    .post-page-article .card-title {
        font-size: 18px;
    }
    .post-page-article h2 {
        font-size: 18px;
    }
    .post-page-article h3 {
        font-size: 16px;
    }
}

/* Article Layout */
.post-card-article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    /* width: 688px;  &lt;-- Ð£Ð‘Ð&nbsp;ÐÐ¢Ð¬ Ð˜Ð›Ð˜ Ð—ÐÐœÐ•ÐÐ˜Ð¢Ð¬ ÐÐ 100% */
    width: 100%; 
    max-width: 688px; /* &lt;-- ÐžÐŸÐ¦Ð˜ÐžÐÐÐ›Ð¬ÐÐž: Ñ‡Ñ‚Ð¾Ð±Ñ‹ Ð½Ðµ Ð±Ñ‹Ð» ÑÐ»Ð¸ÑˆÐºÐ¾Ð¼ ÑˆÐ¸Ñ€Ð¾ÐºÐ¸Ð¼ Ð½Ð° Ð¾Ð³Ñ€Ð¾Ð¼Ð½Ñ‹Ñ… ÑÐºÑ€Ð°Ð½Ð°Ñ… */
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
}

/* .post-meta - Ð¸Ð·Ð¼ÐµÐ½Ð¸Ñ‚ÑŒ Ñ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð¾Ð¹ Ð½Ð° 100% ÑˆÐ¸Ñ€Ð¸Ð½Ñƒ */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 12px;
    width: 100%; 
    max-width: unset; 
    height: 36px;
}

.background-post {
    background: #FFFFFF0A;
    padding: 24px;
    border-radius: 16px;
}

/* .author-meta - Ð¸Ð·Ð¼ÐµÐ½Ð¸Ñ‚ÑŒ Ñ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð¾Ð¹ Ð½Ð° 100% ÑˆÐ¸Ñ€Ð¸Ð½Ñƒ */
.author-meta {
    display: flex;
    align-items: center;
    padding: 0;
    gap: 8px;
    /* width: 512px;  &lt;-- Ð£Ð‘Ð&nbsp;ÐÐ¢Ð¬ Ð˜Ð›Ð˜ Ð—ÐÐœÐ•ÐÐ˜Ð¢Ð¬ ÐÐ 100% */
    width: 100%; 
    max-width: 512px; 
    height: 36px;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 0;
    width: 100%;
    height: 36px;
}


/* .post-content - Ð¸Ð·Ð¼ÐµÐ½Ð¸Ñ‚ÑŒ Ñ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð¾Ð¹ Ð½Ð° 100% ÑˆÐ¸Ñ€Ð¸Ð½Ñƒ */
.post-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    width: 100%; 
    max-width: unset; 
}

/* .post-image - Ð¸Ð·Ð¼ÐµÐ½Ð¸Ñ‚ÑŒ Ñ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð¾Ð¹ Ð½Ð° 100% ÑˆÐ¸Ñ€Ð¸Ð½Ñƒ */
.post-image {
    width: 100%; 
    max-width: unset; 
    height: 320px; 
    border-radius: 8px;
    object-fit: cover;
}

.post-text {
    font-family: 'Poppins';
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.64);
}

/* ======================= Variables &amp; Global Styles ======================= */
:root {
    --primary-color: #FF4200;
    --background-color: #181818;
    --card-background: rgba(255, 255, 255, 0.04);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.64);
    --text-tertiary: rgba(255, 255, 255, 0.48);
    --text-muted: rgba(255, 255, 255, 0.32);
    --border-color: rgba(255, 255, 255, 0.04);

    --main-padding-x: 260px;
    --main-padding-y: 24px;
    --content-gap: 48px;
    --column-gap: 48px;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.page-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: var(--main-padding-y) var(--main-padding-x);
    display: flex;
    flex-direction: column;
    gap: 32px; /* ÑƒÐ¼ÐµÐ½ÑŒÑˆÐµÐ½ gap */
}

a {
    text-decoration: none;
}

/* ======================= Header ======================= */
.header-main {
    height: 48px;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-size: 16px;
    font-weight: 600;
}
.logo-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* Ð”ÐµÑÐºÑ‚Ð¾Ð¿: Ð²ÐµÑ€Ð½ÑƒÑ‚ÑŒ Ð°Ð±ÑÐ¾Ð»ÑŽÑ‚Ð½Ð¾Ðµ Ð¿Ð¾Ð·Ð¸Ñ†Ð¸Ð¾Ð½Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ðµ Ð¿Ð¾Ð¸ÑÐºÐ° */
.header-flex-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    position: relative;
}
.header-search-container {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    width: 208px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0;
}
.header-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    gap: 16px;
    width: 208px;
    height: 48px;
    border-radius: 8px;
    position: relative;
    background: none;
    margin: 0;
}
#searchInput {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    width: 120px;
    height: 24px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.48);
    padding: 0;
    margin-left: 0;
}
.search-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.header-burger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    margin-left: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: background 0.2s;
}
.header-burger:active,
.header-burger:focus,
.header-burger[aria-expanded="true"] {
    background: #23272f;
}
.header-mobile-menu {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #23272f;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    min-width: 160px;
    z-index: 100;
    padding: 12px 0;
    animation: fadeInMenu 0.18s;
}
@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}
.header-mobile-menu a {
    display: block;
    padding: 10px 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    background: none;
    border: none;
    width: 100%;
    text-decoration: none;
    transition: background 0.15s;
}
.header-mobile-menu a:hover {
    background: #181a20;
    color: #FF4200;
}

/* ======================= Buttons ======================= */
.btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    font-weight: 600;
}
.btn-custom-primary {
    background-color: var(--primary-color);
    color: var(--text-primary);
}
.btn-custom-primary:hover {
    background-color: #e03a00;
    color: var(--text-primary);
}

.btn-custom-secondary {
    background-color: var(--card-background);
    color: var(--text-primary);
}
.btn-custom-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.btn-custom-secondary img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}


/* ======================= Main Layout &amp; Sidebar ======================= */
.main-content {
    flex-grow: 1;
}
.gx-custom {
    --bs-gutter-x: var(--column-gap);
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 332px));
    gap: 24px;
    justify-content: center;
    align-items: start;
}

@media (min-width: 1200px) {
    .h1, h1 {
        font-size: 32px;
    }
}

/* Add these new styles to fix sidebar overlapping */
@media (max-width: 1600px) and (min-width: 1200px) {
    :root { 
        --main-padding-x: 40px; 
        --column-gap: 24px;
    }
    
    /* Adjust column widths */
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
        min-width: 220px;
    }
    
    .col-lg-6 {
        flex: 1 0 auto;
        width: 50%;
        min-width: 0;
    }
}

@media (max-width: 1200px) {
    :root { 
        --main-padding-x: 24px;
        --column-gap: 16px;
    }
    
    /* Further reduce minimum sidebar width */
    .col-lg-3 {
        min-width: 200px;
    }
    
    .post-card-medium {
        width: 100%;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 15px; /* Ñ‡ÑƒÑ‚ÑŒ Ð¼ÐµÐ½ÑŒÑˆÐµ */
    font-weight: 600;
    color: #5A5A61;
    margin-bottom: 12px; /* Ð¼ÐµÐ½ÑŒÑˆÐµ Ð¾Ñ‚ÑÑ‚ÑƒÐ¿ */
    letter-spacing: 0.01em;
    text-transform: none;
}

.sidebar-section {
    border-radius: 12px;
    padding: 16px 0 8px 0;
    margin-bottom: 12px;
}

.sidebar-section.py-0 {
    background: var(--card-background);
}

.sidebar-nav .nav-item {
    margin-bottom: 4px;
}
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}
.sidebar-nav .nav-link img {
    width: 24px;
    height: 24px;
}
.sidebar-link-muted {
    color: rgba(255, 255, 255, 0.123);
}
.sidebar-nav .nav-link.active, .sidebar-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--text-primary);
}
.sidebar-nav .nav-link.active .sidebar-link-muted,
.sidebar-nav .nav-link:hover .sidebar-link-muted {
    color: var(--text-primary);
}
.sidebar-nav .nav-link.active img,
.sidebar-nav .nav-link:hover img {
   filter: brightness(0) invert(1);
}

/* ======================= Posts Content ======================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 332px);
    gap: 24px;
    justify-content: center;
    align-items: start;
}

.post-card {
    background-color: var(--card-background);
    border-radius: 12px;
    border: none;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.post-card-large {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}
.post-card-medium {
    width: 332px;
    margin: 0;
    /* ÑƒÐ±Ð¸Ñ€Ð°ÐµÐ¼ flex */
}

.post-card .card-img-top { border-radius: 8px; object-fit: cover; }
.post-card-large .card-img-top { height: 260px; }
.post-card-medium .card-img-top { height: 110px; }

.post-card .card-body { padding: 0; display: flex; flex-direction: column; gap: 20px; }
.post-text-content { display: flex; flex-direction: column; gap: 12px; }
.post-meta { display: flex; justify-content: space-between; align-items: center; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; margin-right: 6px; }

.author-info { display: flex; flex-direction: column; line-height: 1.5; font-size: 11px;     max-width: 115px;}
.author-info span:first-child { color: var(--text-secondary); }
.text-muted-post { color: var(--text-muted) !important; }
.text-muted-post a{ color: var(--text-muted) !important; }

.post-stats { font-size: 11px; color: var(--text-secondary); font-weight: 400; }
.post-card .card-title { color: var(--text-primary); font-weight: 600; font-size: 18px; line-height: 1.4; margin-bottom: 0; }
.post-card .card-text { color: var(--text-secondary); font-size: 14px; line-height: 1.4; font-weight: 400;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .card-link { font-size: 15px; font-weight: 500; letter-spacing: 0.01em; text-decoration: underline; color: var(--primary-color); }

/* ======================= Threads Sidebar ======================= */
.thread-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
}
.thread-item {
    padding: 16px 20px;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.thread-item:last-child { border-bottom: none; }
.thread-meta { display: flex; justify-content: space-between; align-items: center; gap: 0; }
.thread-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%; 
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    margin-right: 6px;
}
.thread-time {
    font-size: 11px;
    color: var(--text-tertiary);
}
.thread-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0;
}

/* ======================= Footer ======================= */
.footer-main { padding-top: 24px; border-top: 1px solid var(--border-color); }
.footer-text { font-size: 15px; font-weight: 500; color: var(--text-tertiary); }
.footer-links { flex-wrap: wrap;}
.footer-links a { margin-left: 40px; font-size: 15px; }
.footer-links a:hover { color: var(--text-primary); }


@media (min-width: 1200px) {
    .search-icon {
        width: 18px;
        height: 18px;

    }
}


/* ======================= Responsive adjustments ======================= */
@media (max-width: 1600px) and (min-width: 1200px) {
    :root { --main-padding-x: 40px; }
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 1200px) {
    :root { --main-padding-x: 24px; }
}

@media (max-width: 1200px) {
    :root { --main-padding-x: 24px; --main-padding-y: 16px; --column-gap: 0; }
    .page-container { gap: 32px; }
    .header-search-container { display: none !important; }
    .post-card-medium, .post-card-large {
        width: 100%;
    }
    .post-card-large {
        grid-column: auto;
    }
    .footer-main .d-flex { text-align: center; justify-content: center !important; }
    .footer-links { margin-top: 16px; }
    .footer-links a { margin: 0 16px; }
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .post-card { padding: 12px; gap: 10px; }
    .post-card-large .card-img-top { height: 180px; }
    .post-card-medium .card-img-top { height: 80px; }
    .thread-item { padding: 12px 10px; }

    .header-main {
        height: auto;
        padding: 0 0 12px 0;
        background: #181818;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .navbar {
        padding: 0 !important;
    }
    .navbar-brand span {
        font-size: 15px;
        font-weight: 600;
        display: none;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
        margin-right: 0;
    }
    .header-search-container {
        position: static !important;
        width: 100%;
        margin: 12px 0 0 0;
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    .header-search {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        padding: 8px 12px;
        border-radius: 8px;
        background: #23272f;
        margin: 0 auto;
        gap: 10px;
    }
    #searchInput {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        color: #fff;
        background: transparent;
        padding: 0 0 0 8px;
        margin-left: 0;
    }
    .search-icon-wrap {
        width: 22px;
        height: 22px;
    }
    .d-flex.align-items-center {
        gap: 8px;
    }
    .btn {
        padding: 8px 14px;
        font-size: 14px;
        border-radius: 6px;
        min-width: 80px;
    }
    .btn-custom-secondary, .btn-custom-primary {
        font-size: 14px;
        padding: 8px 14px;
    }
}

/* --- Mobile adaptation from index.html &lt;style&gt; --- */
@media (max-width: 1200px) {
    .main-content .row.gx-custom {
        flex-direction: column;
    }
    aside.sidebar-mobile {
        order: -1; /* Move above content */
        margin: 0 0 24px 0;
        padding: 0;
    }
    .sidebar-section {
        background: rgba(255, 255, 255, 0.04);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 12px 0;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding: 4px 12px;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar for cleaner look */
    }

    .sidebar-nav .nav-item {
        display: inline-block;
        margin: 0;
    }

    .sidebar-nav .nav-link {
        padding: 8px 16px;
        border-radius: 8px;
        background: #23272f;
        color: var(--text-secondary);
        margin: 0;
        font-size: 14px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sidebar-nav .nav-link img {
        width: 20px;
        height: 20px;
    }

    .sidebar-nav .nav-link.active {
        background: var(--primary-color);
        color: #fff;
    }

    /* Adjust main content top spacing */
    .col-lg-6 {
        margin-top: 0;
    }
}

/* ...existing code... */

/* Pixel-perfect Registration Modal */
.modal-custom {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-custom-backdrop {
    position: absolute;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: #181818E0;
    backdrop-filter: blur(32px);
    z-index: 1; 
}
.modal-custom-dialog {
    position: relative;
    z-index: 2;
    background: #FFFFFF0A;
    backdrop-filter: blur(32px);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.32);
    padding: 48px 24px 32px 24px;
    width: 498px;
    min-width: 320px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.modal-custom-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    opacity: 0.48;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s, opacity 0.2s;
}
.modal-custom-close:hover { color: #FF4200; opacity: 1; }

.signup-modal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}
.signup-modal-logo {
    width: 24px;
    height: 24px;
}
.signup-modal-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

.signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.signup-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: -0.02em;
}
.signup-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.64);
    text-align: center;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    width: 100%;
}
.signup-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}
.signup-fields input {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    padding: 12px 24px;
    outline: none;
    transition: border 0.2s, background 0.2s;
    box-sizing: border-box;
    letter-spacing: -0.02em;
}
.signup-fields input::placeholder {
    color: rgba(255,255,255,0.48);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.signup-fields input:focus {
    border: 1px solid #FF4200;
    background: rgba(255,255,255,0.07);
}
.signup-btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #FF4200;
    color: #fff;
    border: none;
    margin-top: 8px;
    letter-spacing: -0.02em;
    transition: background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(255,66,0,0.10);
}
.signup-btn:hover {
    background: #ff6a00;
}

.signup-modal-footer {
    margin-top: 12px;
    font-size: 16px;
    color: rgba(255,255,255,0.48);
    text-align: center;
    width: 100%;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.signup-login-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s;
}
.signup-login-link:hover {
    color: #FF4200;
    text-decoration: underline;
}


/* Ð¡Ñ‚Ð¸Ð»Ð¸Ð·ÑƒÐµÐ¼ ÑÑ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ñ‹Ð¹ Ð±Ñ€Ð°ÑƒÐ·ÐµÑ€Ð½Ñ‹Ð¹ Ð³Ð»Ð°Ð·Ð¸Ðº (Webkit/Edge/IE) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear, input[type="password"]::-ms-reveal, input[type="password"]::-webkit-credentials-auto-fill-button {
    color: var(--text-primary);
}

input[type="password"]::-ms-reveal {
    background-color: var(--primary-color);
    border-radius: 50%;
}


/* Success message (already present, but for clarity) */
.signup-success {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}
.signup-success-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.signup-success-inner .fa-envelope-circle-check {
    font-size: 48px;
    color: #FF4200;
    margin-bottom: 8px;
}
.signup-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.signup-success-desc {
    font-size: 15px;
    color: #bcbcbc;
    text-align: center;
    max-width: 260px;
    line-height: 1.5;
}

/* Login Modal (Pixel-perfect) */
.login-modal-dialog {
    width: 498px;
    height: 446px;
    padding: 24px;
    gap: 20px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    backdrop-filter: blur(32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.login-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: -0.02em;
}
.login-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.64);
    text-align: center;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    width: 100%;
}
.login-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}
.login-fields input {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    padding: 12px 24px;
    outline: none;
    transition: border 0.2s, background 0.2s;
    box-sizing: border-box;
    letter-spacing: -0.02em;
}
.login-fields input::placeholder {
    color: rgba(255,255,255,0.48);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.login-fields input:focus {
    border: 1px solid #FF4200;
    background: rgba(255,255,255,0.07);
}
.login-btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #FF4200;
    color: #fff;
    border: none;
    margin-top: 8px;
    letter-spacing: -0.02em;
    transition: background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(255,66,0,0.10);
}
.login-btn:hover {
    background: #ff6a00;
}

/* Error message for login */
.login-error {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin-top: 8px;
}
.login-error-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255,66,0,0.08);
    border-radius: 8px;
    padding: 18px 24px;
    width: 100%;
    box-sizing: border-box;
}
.login-error-title {
    font-size: 18px;
    font-weight: 700;
    color: #FF4200;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.login-error-desc {
    font-size: 15px;
    color: #fff;
    text-align: center;
    max-width: 320px;
    line-height: 1.5;
}
.login-error-desc .signup-login-link {
    color: #FF4200;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 2px;
}

/* ÐžÐ³Ñ€Ð°Ð½Ð¸Ñ‡ÐµÐ½Ð¸Ðµ ÑÑ‚Ñ€Ð¾Ðº Ð¸ ÑˆÐ¸Ñ€Ð¸Ð½Ñ‹ Ð´Ð»Ñ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² Ð¸ Ñ‚ÐµÐºÑÑ‚Ð° ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐµÐº */
.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ð¼Ð°ÐºÑÐ¸Ð¼ÑƒÐ¼ 2 ÑÑ‚Ñ€Ð¾ÐºÐ¸ */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: normal;
}

.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Ð¼Ð°ÐºÑÐ¸Ð¼ÑƒÐ¼ 3 ÑÑ‚Ñ€Ð¾ÐºÐ¸ */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: normal;
}

/* ÐžÐ³Ñ€Ð°Ð½Ð¸Ñ‡ÐµÐ½Ð¸Ðµ ÑÑ‚Ñ€Ð¾Ðº Ð´Ð»Ñ .text-muted-post */
.text-muted-post {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Ð¼Ð°ÐºÑÐ¸Ð¼ÑƒÐ¼ 1 ÑÑ‚Ñ€Ð¾ÐºÐ° */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: normal;
}

/* Ð¢Ð¾Ð»ÑŒÐºÐ¾ Ð¼Ð¾Ð±Ð¸Ð»ÑŒÐ½Ð°Ñ Ð°Ð´Ð°Ð¿Ñ‚Ð°Ñ†Ð¸Ñ */
@media (max-width: 1200px) {
    .header-flex-wrap {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    .header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        position: relative;
    }
    /* ÐŸÐ¾Ð¸ÑÐº ÑÑ‚Ð°Ð½Ð¾Ð²Ð¸Ñ‚ÑÑ Ð¾Ñ‚Ð´ÐµÐ»ÑŒÐ½Ð¾Ð¹ ÑÑ‚Ñ€Ð¾ÐºÐ¾Ð¹ */
    .header-search-container {
        position: static !important;
        left: auto;
        top: auto;
        transform: none;
        z-index: 2;
        width: 100%;
        margin-top: 8px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 0;
        height: auto;
    }
    .header-search {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        padding: 10px 16px;
        border-radius: 8px;
        background: none;
        margin: 0 auto;
        gap: 16px;
        display: flex;
        align-items: center;
        height: auto;
    }
    #searchInput {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        color: rgba(255,255,255,0.48);
        background: transparent;
        border: none;
        outline: none;
        padding: 0;
        margin-left: 0;
        height: 24px;
    }
    .search-icon-wrap {
        width: 22px;
        height: 22px;
    }
    .header-btns-wrap {
        display: none !important;
    }
    .header-burger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        margin-left: 8px;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 50%;
        transition: background 0.2s;
    }
    .header-burger:active,
    .header-burger:focus {
        background: #23272f;
    }
    .header-burger[aria-expanded="true"] {
        background: #23272f;
    }
    .header-mobile-menu {
        display: none;
        position: absolute;
        top: 48px;
        right: 0;
        background: #23272f;
        border-radius: 10px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.18);
        min-width: 160px;
        z-index: 100;
        padding: 12px 0;
        animation: fadeInMenu 0.18s;
    }
    .header-mobile-menu.show {
        display: block;
    }
    @keyframes fadeInMenu {
        from { opacity: 0; transform: translateY(-10px);}
        to { opacity: 1; transform: translateY(0);}
    }
    .header-mobile-menu a {
        display: block;
        padding: 10px 24px;
        color: #fff;
        font-size: 15px;
        font-weight: 500;
        text-align: left;
        background: none;
        border: none;
        width: 100%;
        text-decoration: none;
        transition: background 0.15s;
    }
    .header-mobile-menu a:hover {
        background: #181a20;
        color: #FF4200;
    }
    .navbar-brand span {
        display: inline !important;
        font-size: 16px;
        font-weight: 600;
        margin-left: 8px;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
        margin-right: 0;
    }
}
@media (max-width: 767.98px) {
    .header-search {
        padding: 8px 8px;
    }
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    .navbar-brand span {
        font-size: 15px;
    }
}

/* Ð¡Ð±Ñ€Ð¾ÑÐ¸Ñ‚ÑŒ ÑÑ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ñ‹Ð¹ Ñ†Ð²ÐµÑ‚ Ð¸ Ð¾Ñ„Ð¾Ñ€Ð¼Ð»ÐµÐ½Ð¸Ðµ ÑÑÑ‹Ð»Ð¾Ðº Ð²Ð½ÑƒÑ‚Ñ€Ð¸ ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐµÐº Ð¸ Ñ‚Ñ€ÐµÐ´Ð¾Ð² */
.post-card a,
.card-title a,
.card-link,
.thread-card a,
.thread-item a,
.sidebar-nav .nav-link,
.footer-links a {
    color: inherit;
    text-decoration: none;
    background: none;
}

.card-title a {
    color: var(--text-primary);
    font-weight: inherit;
    text-decoration: none;
    transition: color 0.18s;
}
.card-title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.card-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}
.card-link:hover {
    color: #e03a00;
    text-decoration: underline;
}

.thread-card a,
.thread-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 1s;
}

.thread-card a:hover *,
.thread-item a:hover * {
    color: var(--primary-color)!important;
    transition: all 1s;
}

.sidebar-nav .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
}
.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    color: var(--text-primary);
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ======================= Article Page Specific Styles ======================= */
.post-page-article .card-body {
    padding: 24px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿Ñ‹ Ð²Ð¾ÐºÑ€ÑƒÐ³ ÐºÐ¾Ð½Ñ‚ÐµÐ½Ñ‚Ð° ÑÑ‚Ð°Ñ‚ÑŒÐ¸ */
    background: var(--card-background);
    border-radius: 12px;
}
.post-page-article .post-meta {
    margin-bottom: 24px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ Ð¼ÐµÐ¶Ð´Ñƒ Ð¼ÐµÑ‚Ð°-Ð´Ð°Ð½Ð½Ñ‹Ð¼Ð¸ Ð¸ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð¼ h1 */
}
.post-page-article .card-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 24px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ Ð¼ÐµÐ¶Ð´Ñƒ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð¼ h1 Ð¸ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸ÐµÐ¼ */
}
.post-page-article .card-img-top {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 24px !important; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ Ð¼ÐµÐ¶Ð´Ñƒ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸ÐµÐ¼ Ð¸ Ð¿ÐµÑ€Ð²Ñ‹Ð¼ Ð°Ð±Ð·Ð°Ñ†ÐµÐ¼ */
}
.post-page-article p.card-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text-secondary);
    display: block; /* Ð£Ð±Ð¸Ñ€Ð°ÐµÐ¼ line-clamp Ð´Ð»Ñ Ð¿Ð¾Ð»Ð½Ð¾Ð³Ð¾ Ñ‚ÐµÐºÑÑ‚Ð° ÑÑ‚Ð°Ñ‚ÑŒÐ¸ */
    -webkit-line-clamp: unset;
}
.post-page-article h2,
.post-page-article h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 32px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ ÑÐ²ÐµÑ€Ñ…Ñƒ Ð´Ð»Ñ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² H2/H3 */
    margin-bottom: 16px; /* ÐžÑ‚ÑÑ‚ÑƒÐ¿ ÑÐ½Ð¸Ð·Ñƒ Ð´Ð»Ñ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² H2/H3 */
    line-height: 1.4;
    letter-spacing: -0.02em;
}
.post-page-article h2 {
    font-size: 22px;
}
.post-page-article h3 {
    font-size: 18px;
}
.post-page-article ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}
.post-page-article ul li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Article Table of Contents (TOC) */
.article-toc {
    border-radius: 12px;
    padding: 0;
    margin-bottom: 16px;
    width: 100%;
    position: sticky;
    top: 24px;
}

.article-toc .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    width: 100%;
    min-height: 40px;
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 15px;
    line-height: 150%;
    letter-spacing: -0.02em;
    color: #5A5A61;
    transition: all 0.2s;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.article-toc .nav-link:hover {
    color: var(--text-primary);
}

.article-toc .nav-link.active {
    color: var(--text-primary);
    border-left: 2px solid #FFFFFF;
}

/* Search results dropdown styles */
.header-search {
    position: relative; /* Ensure dropdown positions correctly */
}
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 4px); /* Position below the search input with a small gap */
    left: 0;
    width: 100%;
    background-color: #23272f; /* Dark background for dropdown */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100; /* Above other content */
    max-height: 300px; /* Limit height and enable scrolling */
    overflow-y: auto;
    padding: 8px 0;
}
.search-result-item {
    padding: 10px 16px;
}
.search-result-item a {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
}


/* Responsive adjustments for article page and TOC */
@media (max-width: 1200px) {
    .article-toc {
        position: static; /* Remove sticky on mobile */
        margin-top: 2rem;
        max-height: unset; /* Remove max-height */
        overflow-y: visible; /* Remove overflow */
        padding: 16px;
    }
    .post-page-article .card-body {
        padding: 16px;
    }
    .post-page-article .card-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .post-page-article .card-img-top {
        margin-bottom: 16px !important;
    }
    .post-page-article p.card-text,
    .post-page-article ul li {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .post-page-article h2 {
        font-size: 20px;
        margin-top: 24px;
        margin-bottom: 12px;
    }
    .post-page-article h3 {
        font-size: 17px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    /* TOC on mobile - make it horizontal scrollable like sidebar news feeds */
    .article-toc .nav {
        flex-direction: row !important;
        overflow-x: auto;
        white-space: wrap;
        gap: 0.5rem;
    }
    .article-toc .nav-item {
        display: inline-block;
        margin-bottom: 0;
    }
    .article-toc .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        background: #23272f;
        color: #fff;
        margin-right: 0.5rem;
        font-size: 15px;
    }
    .article-toc .nav-link.active {
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    .article-toc .nav-link:hover {
        background: #23272f; /* Keep the original background on hover */
        color: var(--text-primary);
    }
    /* Remove indent for H3s on mobile TOC */
    .article-toc .nav-item.ms-3 .nav-link {
        padding-left: 1rem;
    }
    .header-search-container .header-search {
        background: #23272f; /* Set background for search input on mobile */
    }
}

@media (max-width: 767.98px) {
    .post-page-article .card-title {
        font-size: 18px;
    }
    .post-page-article h2 {
        font-size: 18px;
    }
    .post-page-article h3 {
        font-size: 16px;
    }
}

/* Article Layout */
.post-card-article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    /* width: 688px;  &lt;-- Ð£Ð‘Ð&nbsp;ÐÐ¢Ð¬ Ð˜Ð›Ð˜ Ð—ÐÐœÐ•ÐÐ˜Ð¢Ð¬ ÐÐ 100% */
    width: 100%; 
    max-width: 688px; /* &lt;-- ÐžÐŸÐ¦Ð˜ÐžÐÐÐ›Ð¬ÐÐž: Ñ‡Ñ‚Ð¾Ð±Ñ‹ Ð½Ðµ Ð±Ñ‹Ð» ÑÐ»Ð¸ÑˆÐºÐ¾Ð¼ ÑˆÐ¸Ñ€Ð¾ÐºÐ¸Ð¼ Ð½Ð° Ð¾Ð³Ñ€Ð¾Ð¼Ð½Ñ‹Ñ… ÑÐºÑ€Ð°Ð½Ð°Ñ… */
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
}

/* .post-meta - Ð¸Ð·Ð¼ÐµÐ½Ð¸Ñ‚ÑŒ Ñ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð¾Ð¹ Ð½Ð° 100% ÑˆÐ¸Ñ€Ð¸Ð½Ñƒ */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 12px;
    width: 100%; 
    max-width: unset; 
    height: 36px;
}

.background-post {
    background: #FFFFFF0A;
    padding: 24px;
    border-radius: 16px;
}

/* .author-meta - Ð¸Ð·Ð¼ÐµÐ½Ð¸Ñ‚ÑŒ Ñ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð¾Ð¹ Ð½Ð° 100% ÑˆÐ¸Ñ€Ð¸Ð½Ñƒ */
.author-meta {
    display: flex;
    align-items: center;
    padding: 0;
    gap: 8px;
    /* width: 512px;  &lt;-- Ð£Ð‘Ð&nbsp;ÐÐ¢Ð¬ Ð˜Ð›Ð˜ Ð—ÐÐœÐ•ÐÐ˜Ð¢Ð¬ ÐÐ 100% */
    width: 100%; 
    max-width: 512px; 
    height: 36px;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 0;
    width: 100%;
    height: 36px;
}


/* .post-content - Ð¸Ð·Ð¼ÐµÐ½Ð¸Ñ‚ÑŒ Ñ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð¾Ð¹ Ð½Ð° 100% ÑˆÐ¸Ñ€Ð¸Ð½Ñƒ */
.post-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    width: 100%; 
    max-width: unset; 
}

/* .post-image - Ð¸Ð·Ð¼ÐµÐ½Ð¸Ñ‚ÑŒ Ñ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð¾Ð¹ Ð½Ð° 100% ÑˆÐ¸Ñ€Ð¸Ð½Ñƒ */
.post-image {
    width: 100%; 
    max-width: unset; 
    height: 320px; 
    border-radius: 8px;
    object-fit: cover;
}

.post-text {
    font-family: 'Poppins';
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.64);
}

</pre></body></html>