/* Custom overrides for site layout */

/* Logo size override */
.img-fluid {
    max-width: 50%;
    height: auto;
}

/* Mobile hamburger menu fixes */
.navbar-toggler {
    border: 1px solid #333 !important;
    padding: 4px 8px !important;
    z-index: 1000 !important;
}

.navbar-toggler .ti-menu::before {
    content: "☰";
    font-size: 20px;
    color: #333;
}

/* Dark theme hamburger */
body[data-theme="dark"] .navbar-toggler {
    border-color: #f0f6fc !important;
}

body[data-theme="dark"] .navbar-toggler .ti-menu::before {
    color: #f0f6fc !important;
}

/* Navigation bar fixes */
.navigation {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Dark theme navigation */
body[data-theme="dark"] .navigation {
    background-color: rgba(22, 27, 34, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Add space between navigation and content */
body {
    padding-top: 85px !important; /* Adjust based on nav height + 5px */
}

/* Color scheme override - Blue/Yellow theme matching logo */
.btn-primary {
    background: #3b7dd8 !important; /* Blue from logo */
    border-color: #3b7dd8 !important;
}

.btn-primary:active, .btn-primary:hover, .btn-primary.focus, .btn-primary.active {
    background: #2c5aa0 !important; /* Darker blue on hover */
    border-color: #2c5aa0 !important;
}

.btn-outline-primary {
    color: #3b7dd8 !important;
    border-color: #3b7dd8 !important;
}

.btn-outline-primary:active, .btn-outline-primary:hover, .btn-outline-primary.focus, .btn-outline-primary.active {
    background: #3b7dd8 !important;
    border-color: #3b7dd8 !important;
    color: #fff !important;
}

::-moz-selection {
    background: #3b7dd8 !important; /* Blue selection */
    color: #fff !important;
}

::selection {
    background: #3b7dd8 !important; /* Blue selection */
    color: #fff !important;
}

a:hover {
    color: #3b7dd8 !important; /* Blue hover links */
}

.navbar-white .navbar-nav .nav-link:hover {
    color: #3b7dd8 !important; /* Blue nav hover */
}

.navbar .dropdown-item:hover {
    color: #3b7dd8 !important; /* Blue dropdown hover */
}

.text-primary {
    color: #3b7dd8 !important; /* Blue text */
}

.bg-primary {
    background: #3b7dd8 !important; /* Blue background */
}

.badge-primary {
    background-color: #3b7dd8 !important; /* Blue badge */
}

.border-bottom {
    border-bottom: 3px solid #3b7dd8 !important; /* Blue border */
}

.section-title::before {
    background-color: #3b7dd8 !important; /* Blue accent line */
}

.st0 {
    fill: #3b7dd8 !important; /* Blue SVG fill */
}

/* Yellow accent colors for special elements */
.widget-title {
    color: #2c5aa0 !important; /* Dark blue for widget titles */
}

.post-type-article {
    background-color: #fff3d4 !important; /* Light yellow background */
    color: #b8860b !important; /* Dark yellow text */
}

/* Hub colors override */
.hub {
    background-color: #e3f2fd !important; /* Light blue background */
    color: #1976d2 !important; /* Blue text */
    border: 1px solid #bbdefb !important; /* Light blue border */
}

/* Dark theme hub colors */
body[data-theme="dark"] .hub {
    background-color: #0d47a1 !important; /* Dark blue background */
    color: #90caf9 !important; /* Light blue text */
    border: 1px solid #1565c0 !important; /* Medium blue border */
}

/* Pagination colors override */
.pagination .page-item .page-link {
    border: 1px solid #3b7dd8 !important; /* Blue border */
    color: #3b7dd8 !important; /* Blue text */
}

.pagination .page-item .page-link:hover {
    background: #3b7dd8 !important; /* Blue background on hover */
    color: #ffd700 !important; /* Yellow text on blue background for readability */
    border-color: #3b7dd8 !important; /* Blue border on hover */
}

.pagination .page-item.active .page-link {
    background: #3b7dd8 !important; /* Blue background for active page */
    color: #ffd700 !important; /* Yellow text for active page */
    border-color: #3b7dd8 !important; /* Blue border for active page */
}

/* Footer border override */
.footer-border {
    stroke: #3b7dd8 !important; /* Blue stroke */
}

/* All remaining green color overrides */
.search-bar input:focus {
    border-color: #3b7dd8 !important; /* Blue focus border */
}

/* ------------------------------------------------------------------ */
/* Article body tables                                                */
/* ------------------------------------------------------------------ */

.article-content .table,
.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    background-color: #fff;
    border: 1px solid #dfe3eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.article-content .table thead th,
.article-content table thead th,
.article-content .table tr:first-child td,
.article-content table tr:first-child td {
    background: linear-gradient(135deg, rgba(59, 125, 216, 0.12), rgba(59, 125, 216, 0.05));
    color: #1f2a44;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-content .table th,
.article-content .table td,
.article-content table th,
.article-content table td {
    padding: 14px 18px;
    border-right: 1px solid #e8ecf4;
    border-bottom: 1px solid #e8ecf4;
    font-size: 16px;
    vertical-align: middle;
}

.article-content .table th:last-child,
.article-content .table td:last-child,
.article-content table th:last-child,
.article-content table td:last-child {
    border-right: none;
}

.article-content .table tr:last-child td,
.article-content table tr:last-child td {
    border-bottom: none;
}

.article-content .table tbody tr:nth-child(2n+1),
.article-content table tbody tr:nth-child(2n+1) {
    background-color: rgba(248, 250, 253, 0.85);
}

.article-content .table p,
.article-content table p {
    margin: 0;
    font-size: inherit;
    line-height: 1.6;
}

.article-content .table p[align="center"],
.article-content table p[align="center"] {
    text-align: center;
}

.article-content .table p[align="right"],
.article-content table p[align="right"] {
    text-align: right;
}

@media (max-width: 767.98px) {
    .article-content .table,
    .article-content table {
        border-radius: 10px;
    }

    .article-content .table th,
    .article-content .table td,
    .article-content table th,
    .article-content table td {
        padding: 12px;
    }
}

.banner-shape-1 .path,
.banner-shape-2 .path,
.banner-shape-3 .path,
.header-shape-1 .path,
.header-shape-2 .path,
.header-shape-3 .path,
.author-shape-1 .path,
.author-shape-2 .path,
.author-shape-3 .path,
.wave-shape-1 .path,
.wave-shape-2 .path,
.wave-shape-3 .path,
.wave-shape-4 .path {
    fill: #3b7dd8 !important; /* Blue SVG shapes */
}

.banner-border,
.header-border,
.author-border {
    stroke: #3b7dd8 !important; /* Blue decorative borders */
}

/* Mobile layout fixes */
@media (max-width: 991.98px) {
    .navbar-brand {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .navbar-toggler {
        order: 1 !important;
        margin-left: 0 !important;
    }
    
    .theme-toggle.d-lg-none {
        order: 3 !important;
        margin-left: auto !important;
    }
    
    body {
        padding-top: 75px !important; /* Smaller padding for mobile */
    }
}
.post-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-meta-top .post-type-badge {
    margin-bottom: 0;
}

.article-date {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 0.875rem;
    color: #6c757d;
}

.post-type-article {
    background-color: #e3f2fd;
    color: #1976d2;
}

.post-type-news {
    background-color: #fff3e0;
    color: #f57c00;
}

.article-image-container {
    text-align: center;
    margin-bottom: 1rem;
}

.article-image {
    width: 100%;
    /*height: 500px;*/
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.article-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    text-align: center;
}

.tag-container,
.hub-container {
    margin-top: 0.5rem;
}

.tag,
.hub {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    border-radius: 6px;
    font-size: 0.7rem;
    text-decoration: none;
}

.tag {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.hub {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.article-content {
    width: 100%;
}

.article-content img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25rem 0;
}

.article-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.article-meta {
    margin-bottom: 1.5rem;
}

.article-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.article-meta-header .hub-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
}

.article-meta-header .hub-container strong {
    margin-right: 0.5rem;
}

.article-meta-header .article-date {
    margin-left: auto;
    font-size: 0.95rem;
}

.sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.banner-placeholder {
    text-align: center;
}

.banner-ad {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.banner-ad:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.banner-ad-active {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.banner-ad-active a:hover .banner-image {
    transform: scale(1.05);
}

.empty-category {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.empty-category .text-muted {
    color: #6c757d !important;
}

.category-hero {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.category-hero h1 {
    margin-bottom: 0.5rem;
}

.category-hero .text-muted {
    color: #6c757d !important;
}

.hubs-tags-widget h6 {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

.hubs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.hub-item:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #495057;
    transform: translateY(-1px);
}

.hub-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.hub-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.hub-count {
    background: #6c757d;
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

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

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background: #f1f3f5;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
}


.popular-posts,
.commented-posts,
.featured-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-post-item,
.commented-post-item,
.featured-post-item {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #eef1f5;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.popular-post-item:hover,
.commented-post-item:hover,
.featured-post-item:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.popular-post-item .post-meta,
.commented-post-item .post-content,
.featured-post-item .featured-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.post-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1d4ed8;
    flex-shrink: 0;
}

.post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.35;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #2563eb;
}

.post-stats {
    font-size: 0.77rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.post-stats .views::before {
    content: '\1F441\FE0F';
    margin-right: 0.35rem;
}

.post-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-stats .date {
    color: #94a3b8;
}

.post-stats .date::before {
    content: '\1F4C5';
    margin-right: 0.35rem;
}

.post-stats .comments::before {
    content: '\1F4AC';
    margin-right: 0.35rem;
}

.comment-count i {
    margin-right: 0.25rem;
}

.featured-content {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}


.featured-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}

.featured-info .post-title {
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .sidebar {
        margin-top: 2rem;
    }

    .article-image {
        height: auto;
    }
}

/* Article preview modal adjustments */
.article-preview-modal .modal-dialog {
    max-width: 900px;
}

.article-preview-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.article-preview-modal iframe {
    border: none;
    width: 100%;
    min-height: 80vh;
}

/* Theme toggle control */
.theme-toggle-btn {
    border: none;
    background: transparent;
    padding: 0.25rem 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.theme-toggle-btn:hover {
    background: rgba(0, 123, 255, 0.12);
}

.theme-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.sun-icon,
.moon-icon {
    position: absolute;
    inset: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sun-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
}

.ray {
    position: absolute;
    width: 2px;
    height: 6px;
    background: #333;
    border-radius: 1px;
    transform-origin: center;
}

.ray-1 { top: 0; left: 50%; transform: translateX(-50%); }
.ray-2 { top: 15%; right: 15%; transform: rotate(45deg); }
.ray-3 { top: 50%; right: 0; transform: translateY(-50%) rotate(90deg); }
.ray-4 { bottom: 15%; right: 15%; transform: rotate(135deg); }
.ray-5 { bottom: 0; left: 50%; transform: translateX(-50%) rotate(180deg); }
.ray-6 { bottom: 15%; left: 15%; transform: rotate(225deg); }
.ray-7 { top: 50%; left: 0; transform: translateY(-50%) rotate(270deg); }
.ray-8 { top: 15%; left: 15%; transform: rotate(315deg); }

.moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

.moon-crescent {
    position: relative;
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    overflow: hidden;
}

.moon-crescent::after {
    content: '';
    position: absolute;
    top: 1px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: background 0.3s ease;
}

/* Mobile navigation helpers */
.mobile-menu {
    padding: 1rem 0;
}

.mobile-section {
    margin-bottom: 2rem;
}

.mobile-section-title {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: #e9ecef;
    color: #0d6efd;
}

.mobile-nav-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.mobile-theme-toggle button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark theme palette */
body[data-theme="dark"] {
    background-color: #0d1117;
    color: #f0f6fc;
}

body[data-theme="dark"] .navigation,
body[data-theme="dark"] .navigation.nav-bg,
body[data-theme="dark"] .navbar,
body[data-theme="dark"] header {
    background-color: #161b22 !important;
    border-bottom: none !important;
}

body[data-theme="dark"] .navbar-brand,
body[data-theme="dark"] .nav-link,
body[data-theme="dark"] .navbar-toggler {
    color: #f0f6fc !important;
}

body[data-theme="dark"] .nav-link:hover {
    color: #58a6ff !important;
}

body[data-theme="dark"] .offcanvas {
    background-color: #161b22;
    color: #f0f6fc;
    border-left: 1px solid #30363d;
}

body[data-theme="dark"] .btn-close {
    filter: invert(1);
}

body[data-theme="dark"] .mobile-nav-link {
    background: #21262d;
    color: #f0f6fc;
    border: 1px solid #30363d;
}

body[data-theme="dark"] .mobile-nav-link:hover {
    background: #30363d;
    color: #58a6ff;
    border-color: #58a6ff;
}

body[data-theme="dark"] .mobile-section-title {
    color: #7d8590;
}

body[data-theme="dark"] .card,
body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .widget {
    background: #161b22;
    border: 1px solid #30363d;
    color: #f0f6fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .widget-title {
    color: #f0f6fc;
    border-bottom: 2px solid #21262d;
}

body[data-theme="dark"] .article-date,
body[data-theme="dark"] .post-stats,
body[data-theme="dark"] .text-muted {
    color: #8b949e !important;
}

body[data-theme="dark"] .post-type-article {
    background-color: #1f2937;
    color: #60a5fa;
    border: 1px solid #374151;
}

body[data-theme="dark"] .post-type-news {
    background-color: #2d2013;
    color: #fbbf24;
    border: 1px solid #451a03;
}

body[data-theme="dark"] .tag {
    background-color: #21262d;
    color: #8b949e;
    border: 1px solid #30363d;
}

body[data-theme="dark"] .hub {
    background-color: #0d2818;
    color: #56d364;
    border: 1px solid #1a4c25;
}

body[data-theme="dark"] .tag-item,
body[data-theme="dark"] .hub-item {
    background: #21262d;
    border: 1px solid #30363d;
    color: #f0f6fc;
}

body[data-theme="dark"] .category-hero {
    background: #161b22;
    border: 1px solid #30363d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .category-hero .text-muted {
    color: #8b949e !important;
}

body[data-theme="dark"] .empty-category {
    border: 1px solid #30363d;
    background: #161b22;
}

body[data-theme="dark"] .empty-category .text-muted {
    color: #8b949e !important;
}

body[data-theme="dark"] .tag-item:hover,
body[data-theme="dark"] .hub-item:hover {
    background: #30363d;
    color: #f0f6fc;
}

body[data-theme="dark"] .banner-ad {
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
    border: 2px dashed #484f58;
    color: #8b949e;
}

body[data-theme="dark"] .banner-ad:hover {
    background: linear-gradient(135deg, #30363d 0%, #484f58 100%);
}

body[data-theme="dark"] .section,
body[data-theme="dark"] .section-sm {
    background-color: #0d1117;
    border-top: none;
}

body[data-theme="dark"] .container,
body[data-theme="dark"] .row,
body[data-theme="dark"] .col-lg-8,
body[data-theme="dark"] .col-lg-4 {
    background-color: transparent;
}

body[data-theme="dark"] .pagination-dot {
    background-color: #30363d;
}

body[data-theme="dark"] .pagination-dot.active {
    background-color: #58a6ff;
}

body[data-theme="dark"] .pagination-next-link {
    color: #58a6ff;
    border-color: #30363d;
    background-color: #161b22;
}

body[data-theme="dark"] .pagination-next-link:hover {
    background-color: #21262d;
    border-color: #58a6ff;
}

body[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

body[data-theme="dark"] .sun-center,
body[data-theme="dark"] .ray {
    background: #e0e0e0;
}

body[data-theme="dark"] .moon-crescent {
    background: #e0e0e0;
}

body[data-theme="dark"] .moon-crescent::after {
    background: #1a1a1a;
}

@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        order: 2;
    }

    .navbar-toggler {
        order: 1;
    }

    .theme-toggle {
        order: 3;
    }

    .sidebar {
        margin-top: 2rem;
    }

    .widget {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .hubs-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .hub-item {
        font-size: 0.8rem;
    }

    .hub-name {
        font-size: 0.75rem;
    }

    .article-image,
    .article-image-placeholder {
        /*height: 150px;*/
    }
}
