/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
*/
:root {
	/*
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    */
    --css-primary-color: DodgerBlue;
	--css-secondary-color: #246a99;
    --css-light-color: #f8f9fa;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/*
body {
    background-color: #f5f7ff;
    color: var(--dark-color);
    line-height: 1.6;
}
*/
.css-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/*
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
*/
.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent-color);
}
/*
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}
*/

main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /*margin: 2rem 0;*/
}
.posts-section {
    flex: 3;
    min-width: 300px;
}

.sidebar {
    flex: 1;
/*    min-width: 280px;*/
    min-width: 300px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--css-primary-color);
    color: var(--css-secondary-color);
}

.tag-container {
    background: white;
    /*border-radius: var(--border-radius);*/
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    
	max-height: 600px;       /* Limits the height so scrolling starts */
    overflow-y: auto;        /* Enables vertical scrolling */
}

/* Optional: Custom Scrollbar Styling for Webkit Browsers (Chrome, Edge, Safari) */
.tag-container::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.tag-container::-webkit-scrollbar-track {
    background: #f1f1f1; /* Track color */
    border-radius: 4px;
}

.tag-container::-webkit-scrollbar-thumb {
    background: #bdc3c7; /* Thumb color */
    border-radius: 4px;
}

.tag-container::-webkit-scrollbar-thumb:hover {
    background: var(--css-primary-color); /* Color on hover */
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.tag {
    background-color: #ecf0f1;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tag:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.tag.active {
    background-color: var(--css-primary-color);
    color: white;
    font-weight: 600;
}

.post {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.post:hover {
    transform: translateY(-5px);
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--css-secondary-color);
}

.post-meta {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 15px;
}

.post-content {
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    background-color: var(--css-light-color);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--css-primary-color);
}

.read-more {
    display: inline-block;
    background-color: var(--css-primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: var(--css-secondary-color);
}

.about-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.about-card h3 {
    color: var(--css-secondary-color);
    margin-bottom: 1rem;
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.no-posts {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-posts i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0 0.75rem;
    }
}
