* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background-color: #fafafa;
            color: #333;
            line-height: 1.6;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
/* Default: Show light logo, hide dark logo */
.site-logo.light-logo {
    display: block;
}
.site-logo.dark-logo {
    display: none;
}

/* Dark Mode: Hide light logo, show dark logo */
body[data-theme="dark"] .site-logo.light-logo {
    display: none;
}
body[data-theme="dark"] .site-logo.dark-logo {
    display: block;
}
	a {text-decoration: none; color: #242424;}
body[data-theme="dark"] a {
    color: #E0E0E0; /* Light text color for dark backgrounds */
    /* Adjust this color to suit your dark mode palette */
}
        /* Dark mode styles */
        [data-theme="dark"] {
            background-color: #0d1117;
            color: #e6edf3;
        }

        [data-theme="dark"] .header {
            background: #161b22;
            border-bottom: 1px solid #30363d;
        }

        [data-theme="dark"] .logo {
            color: #58a6ff;
        }

        [data-theme="dark"] .nav-menu a {
            color: #7d8590;
        }

        [data-theme="dark"] .nav-menu a:hover,
        [data-theme="dark"] .nav-menu a.active {
            color: #58a6ff;
        }

        [data-theme="dark"] .search-box input {
            background: #21262d;
            border: 1px solid #30363d;
            color: #e6edf3;
        }

        [data-theme="dark"] .search-box input::placeholder {
            color: #7d8590;
        }

        [data-theme="dark"] .btn-primary {
            background: #238636;
        }

        [data-theme="dark"] .btn-primary:hover {
            background: #2ea043;
        }

        [data-theme="dark"] .article-card,
        [data-theme="dark"] .sidebar-card {
            background: #0d1117;
            border: 1px solid #30363d;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }

        [data-theme="dark"] .article-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.4);
            border-color: #58a6ff;
        }

        [data-theme="dark"] .author-name,
        [data-theme="dark"] .article-title,
        [data-theme="dark"] .sidebar-title,
        [data-theme="dark"] .feed-title,
        [data-theme="dark"] .trending-content h4,
        [data-theme="dark"] .suggestion-info h4 {
            color: #e6edf3;
        }

        [data-theme="dark"] .article-meta,
        [data-theme="dark"] .article-excerpt,
        [data-theme="dark"] .article-stats,
        [data-theme="dark"] .trending-content .meta,
        [data-theme="dark"] .suggestion-info .role {
            color: #7d8590;
        }

        [data-theme="dark"] .tag {
            background: #21262d;
            color: #e6edf3;
        }

        [data-theme="dark"] .feed-tab {
            color: #7d8590;
        }

        [data-theme="dark"] .feed-tab.active {
            background: #58a6ff;
            color: #0d1117;
        }

        [data-theme="dark"] .trending-item,
        [data-theme="dark"] .suggestion-item {
            border-bottom: 1px solid #21262d;
        }

        [data-theme="dark"] .trending-number {
            background: #21262d;
            color: #7d8590;
        }

        [data-theme="dark"] .follow-btn {
            background: #238636;
        }

        [data-theme="dark"] .follow-btn:hover {
            background: #2ea043;
        }

        /* Footer Styles */
        .footer {
            background: #1a1a1a;
            color: #e6e6e6;
            margin-top: 60px;
            transition: all 0.3s ease;
        }

        [data-theme="dark"] .footer {
            background: #0d1117;
            border-top: 1px solid #21262d;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 50px 20px 30px;
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 50px;
            align-items: start;
        }

        .footer-section {
            display: flex;
            flex-direction: column;
        }

        .footer-logo {
            font-size: 24px;
            font-weight: bold;
            color: #58a6ff;
            text-decoration: none;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
        }

        .footer-logo::before {
            content: "⚡";
            margin-right: 8px;
            font-size: 28px;
        }

        .footer-description {
            color: #b3b3b3;
            line-height: 1.6;
            margin-bottom: 24px;
            max-width: 280px;
            font-size: 14px;
        }

        [data-theme="dark"] .footer-description {
            color: #7d8590;
        }

        .social-links {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .social-link {
            width: 36px;
            height: 36px;
            background: #333;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 16px;
            transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .social-link:hover {
            background: #58a6ff;
            transform: translateY(-2px);
        }

        [data-theme="dark"] .social-link {
            background: #21262d;
        }

        [data-theme="dark"] .social-link:hover {
            background: #58a6ff;
        }

        .footer-links {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
        }

        .footer-column {
            display: flex;
            flex-direction: column;
        }

        .footer-heading {
            color: #fff;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        [data-theme="dark"] .footer-heading {
            color: #e6edf3;
        }

        .footer-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-list li {
            margin-bottom: 8px;
        }

        .footer-list a {
            color: #b3b3b3;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .footer-list a:hover {
            color: #58a6ff;
        }

        [data-theme="dark"] .footer-list a {
            color: #7d8590;
        }

        [data-theme="dark"] .footer-list a:hover {
            color: #58a6ff;
        }

        .footer-bottom {
            border-top: 1px solid #333;
            background: #111;
        }

        [data-theme="dark"] .footer-bottom {
            border-top: 1px solid #21262d;
            background: #010409;
        }

        .footer-bottom-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .footer-copyright {
            color: #888;
            font-size: 14px;
        }

        [data-theme="dark"] .footer-copyright {
            color: #7d8590;
        }

        .footer-legal {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .footer-legal a {
            color: #888;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }
	.trending-content {margin-left: 5px; width: fit-content;}
        .footer-legal a:hover {
            color: #58a6ff;
        }

        [data-theme="dark"] .footer-legal a {
            color: #7d8590;
        }

        [data-theme="dark"] .footer-legal a:hover {
            color: #58a6ff;
        }

        .header {
            background: white;
            border-bottom: 1px solid #e6e6e6;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            height: 60px;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 24px;
            font-weight: bold;
            color: #2563eb;
            text-decoration: none;
        }

        

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 30px;
        }

        .nav-menu a {
            text-decoration: none;
            color: #666;
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: #2563eb;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .search-box {
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-box input {
            padding: 8px 40px 8px 16px;
            border: 1px solid #e6e6e6;
            border-radius: 8px;
            width: 250px;
            font-size: 14px;
            background: #f9f9f9;
        }

        .search-box::after {
            content: "🔍";
            position: absolute;
            right: 12px;
            color: #999;
        }

.sidebar-image {    border-radius: 8px;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;}
        .btn-primary {
            background: #2563eb;
            color: white;
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: background 0.2s;
            -webkit-tap-highlight-color: transparent;
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-primary:hover {
            background: #1d4ed8;
        }

        .btn-primary:active {
            transform: scale(0.98);
        }

        .profile-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(45deg, #2563eb, #7c3aed);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
        }

        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 30px;
            padding: 30px 20px;
        }

        .content-feed {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .feed-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .feed-title {
            font-size: 28px;
            font-weight: bold;
            color: #1a1a1a;
        }

        .feed-tabs {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .feed-tab {
            padding: 8px 16px;
            background: transparent;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 500;
            color: #666;
            transition: all 0.2s;
        }

        .feed-tab.active {
            background: #2563eb;
            color: white;
        }
	.article-card { display: flex;
    gap: 1.5rem;overflow: hidden;}
.article-content-wrapper {
    flex: 0 0 calc(70% - 0.75rem); /* Account for half the gap */
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allow content to shrink */
}

/* Thumbnail wrapper - 30% of full card */
.article-thumbnail-wrapper {
    flex: 0 0 calc(30% - 0.75rem); /* Account for half the gap */
    min-width: 0; /* Allow container to shrink */
    overflow: hidden; /* Contain the image */
}
.article-thumbnail-wrapper {
    flex: 0 0 calc(30% - 0.75rem);
    min-width: 0;
    overflow: hidden;
}

.article-thumbnail-wrapper a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
    width: 100%;
}

.article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
}

        .article-card,
        .sidebar-card {
            background: white;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            border: 1px solid #f0f0f0;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .sidebar-card {
            cursor: default;
            padding: 20px;
        }

        .article-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

        .theme-toggle {
            background: none;
            border: 1px solid #e6e6e6;
            border-radius: 8px;
            padding: 8px;
            cursor: pointer;
            font-size: 18px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .theme-toggle:hover {
            background: #f3f4f6;
        }

        .theme-toggle:active {
            transform: scale(0.95);
        }

        [data-theme="dark"] .theme-toggle {
            border-color: #30363d;
            color: #e6edf3;
        }

        [data-theme="dark"] .theme-toggle:hover {
            background: #21262d;
        }

        .article-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(45deg, #f97316, #ef4444);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 16px;
        }

        .author-info {
            flex: 1;
        }

        .author-name {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 14px;
        }

        .article-meta {
            color: #666;
            font-size: 13px;
        }

        .featured-badge {
            background: linear-gradient(45deg, #f59e0b, #f97316);
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .article-title {
            font-size: 20px;
            font-weight: bold;
            color: #1a1a1a;
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .article-excerpt {
            color: #666;
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 16px;
 	    overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }

        .article-tags {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .tag {
            background: #f3f4f6;
            color: #374151;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .article-stats {
            display: flex;
            align-items: center;
            gap: 20px;
            color: #666;
            font-size: 13px;
        }

        .stat {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .sidebar-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            border: 1px solid #f0f0f0;
        }

        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .sidebar-title {
            font-size: 18px;
            font-weight: bold;
            color: #1a1a1a;
            margin-bottom: 16px;
            transition: color 0.3s ease;
        }

        .trending-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            transition: border-color 0.3s ease;
        }

        .trending-item:last-child,
        .suggestion-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            transition: border-color 0.3s ease;
        }

        .trending-number {
            width: 24px;
            height: 24px;
            background: #f3f4f6;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            color: #666;
            transition: all 0.3s ease;
        }

        .trending-content h4 {
            font-size: 14px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 4px;
            line-height: 1.3;
            transition: color 0.3s ease;
        }

        .trending-content .meta {
            font-size: 12px;
            color: #666;
            transition: color 0.3s ease;
        }

        .suggestion-item:last-child {
            border-bottom: none;
        }

        .suggestion-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(45deg, #7c3aed, #2563eb);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 14px;
        }

        .suggestion-info h4 {
            font-size: 14px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 2px;
            transition: color 0.3s ease;
        }

        .suggestion-info .role {
            font-size: 12px;
            color: #666;
            margin-bottom: 4px;
            transition: color 0.3s ease;
        }

        .follow-btn {
            background: #2563eb;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            margin-left: auto;
            transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
            min-height: 28px;
        }

        .follow-btn:hover {
            background: #1d4ed8;
        }

        .follow-btn:active {
            transform: scale(0.95);
        }

        /* Tablet styles */
        @media (max-width: 1024px) {
            .main-container {
                max-width: 100%;
                padding: 20px 15px;
                gap: 25px;
            }

            .search-box input {
                width: 200px;
            }

            .footer-content {
                padding: 40px 20px 25px;
                gap: 35px;
                grid-template-columns: 1fr;
            }

            .footer-links {
                grid-template-columns: repeat(2, 1fr);
                gap: 25px;
            }

            .footer-description {
                max-width: 100%;
            }

            .social-links {
                justify-content: flex-start;
            }
        }


.header .logo .site-logo {
    max-height: 40px; /* Adjust this value to control the logo's height */
    width: auto;      /* Maintain aspect ratio */
  }

/* You might need to adjust other header styles depending on your design */
.header .header-content {
    align-items: center; /* Ensures logo and nav are vertically aligned */
}
        /* Mobile styles */
        @media (max-width: 768px) {
	    html {
    		margin-top: 0px !important;
		}
            .header-content {
                padding: 0 15px;
                flex-wrap: wrap;
                height: auto;
                min-height: 60px;
            }
.header .logo .site-logo {margin-top: 5px;}
	    .header-actions{
		margin-top: 10px;
    		margin-bottom: 10px;
	    }
            .nav-menu {
		margin-left: 3px;
                display: flex;
            }

            .header-actions {
                gap: 10px;
                flex-direction: row-reverse;
            }

            .search-box {
                order: 3;
                width: 100%;
            }

            .search-box input {
                width: 100%;
                max-width: none;
            }

            .main-container {
                grid-template-columns: 1fr;
                padding: 20px 15px;
                gap: 20px;
            }

            .sidebar {
                order: 0;
            }

            .feed-title {
                font-size: 24px;
            }

            .article-card,
            .sidebar-card {
                padding: 16px;
            }
            .article-card{display: block;}
            .article-stats {display: none;}
            .feed-tabs {
                overflow-x: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }

            .feed-tabs::-webkit-scrollbar {
                display: none;
            }

            .feed-tabs {
                gap: 10px;
                margin-bottom: 15px;
            }

            .feed-tab {
                white-space: nowrap;
                flex-shrink: 0;
            }

            .article-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .author-info {
                display: flex;
                align-items: center;
                gap: 12px;
            }

            .featured-badge {
                align-self: flex-start;
            }

            .article-title {
                font-size: 18px;
                line-height: 1.4;
            }

            .article-stats {
                flex-wrap: wrap;
                gap: 15px;
            }

            .trending-item,
            .suggestion-item {
                padding: 8px 0;
            }

            .sidebar-card {
                padding: 16px;
            }

            /* Footer Mobile Styles */
            .footer {
                margin-top: 40px;
            }

            .footer-content {
                padding: 30px 15px 20px;
                gap: 25px;
                grid-template-columns: 1fr;
            }

            .footer-links {
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }

            .footer-logo {
                font-size: 22px;
            }

            .footer-logo::before {
                font-size: 24px;
            }

            .footer-description {
                font-size: 13px;
                margin-bottom: 20px;
            }

            .social-links {
                gap: 10px;
                justify-content: flex-start;
            }

            .social-link {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }

            .footer-heading {
                font-size: 15px;
                margin-bottom: 12px;
            }

            .footer-list a {
                font-size: 13px;
            }

            .footer-list li {
                margin-bottom: 6px;
            }

            .footer-bottom-content {
                padding: 16px 15px;
                flex-direction: column;
                text-align: center;
                gap: 12px;
            }

            .footer-legal {
                gap: 16px;
                justify-content: center;
            }

            .footer-legal a,
            .footer-copyright {
                font-size: 13px;
            }
        }

        /* Small mobile styles */
        @media (max-width: 480px) {
		
            .header-content {
                padding: 0 10px;
            }

            .logo {
                font-size: 20px;
            }

            .main-container {
                padding: 15px 10px;
            }

            .article-card,
            .sidebar-card {
                padding: 12px;
            }
 	    .article-excerpt {    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;}
            .article-title {
                font-size: 16px;
            }

            .feed-title {
                font-size: 20px;
            }

            .author-avatar {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }

            .suggestion-avatar {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }

            .article-stats {
                font-size: 12px;
            }

            .stat {
                gap: 4px;
            }

            /* Footer Small Mobile Styles */
            .footer-content {
                padding: 25px 10px 15px;
                gap: 20px;
            }

            .footer-links {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .footer-logo {
                font-size: 20px;
                justify-content: center;
            }

            .footer-description {
                text-align: center;
                font-size: 12px;
                margin-bottom: 16px;
            }

            .social-links {
                justify-content: center;
                gap: 8px;
            }

            .social-link {
                width: 30px;
                height: 30px;
                font-size: 13px;
            }

            .footer-column {
                text-align: center;
            }

            .footer-heading {
                font-size: 14px;
                margin-bottom: 10px;
            }

            .footer-list a {
                font-size: 12px;
            }

            .footer-bottom-content {
                padding: 12px 10px;
            }

            .footer-legal {
                flex-wrap: wrap;
                gap: 12px;
            }

            .footer-legal a,
            .footer-copyright {
                font-size: 12px;
            }
        }

        /* Large screen optimization */
        @media (min-width: 1400px) {
            .main-container {
                max-width: 1400px;
                grid-template-columns: 1fr 320px;
            }

            .search-box input {
                width: 300px;
            }
        }