body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #121212; color: #e0e0e0; margin: 0; padding: 0; }
.wrapper { display: flex; max-width: 1100px; margin: auto; padding: 20px; gap: 30px; }

/* Main Content */
main { flex: 3; }
.post { background: #1e1e1e; padding: 20px; border-radius: 8px; margin-bottom: 25px; border-bottom: 3px solid #00c853; }
h1, h2 { color: #00c853; margin-top: 0; }
a { color: #00c853; text-decoration: none; }

/* Sidebar */
aside { flex: 1; min-width: 250px; }
.widget { background: #1e1e1e; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.widget h3 { color: #888; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 10px; border-bottom: 1px solid #333; padding-bottom: 5px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid #222; font-size: 0.95rem; }
.widget li a { color: #bbb; }
.widget li a:hover { color: #00c853; }

/* Stock Table Styles */
table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 0.9rem; }
th { background: #222; color: #888; text-align: left; padding: 10px; }
td { padding: 10px; border-bottom: 1px solid #333; }

/* Style the search input and button */
.bludit-search-form { display: flex; gap: 5px; }
.bludit-search-input { 
    background: #2a2a2a; 
    border: 1px solid #444; 
    color: #eee; 
    padding: 8px; 
    border-radius: 4px; 
    flex-grow: 1; 
}
.bludit-search-button { 
    background: #00c853; 
    border: none; 
    color: #121212; 
    padding: 8px 12px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
}   

/* Grid Container */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 20px; /* Space between cards */
}

/* Individual Post Cards */
.post-card {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden; /* Clips image corners to match radius */
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    border-color: #00c853;
}

/* Thumbnail Styling */
.post-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover; /* Crops image to fit the box perfectly */
    display: block;
}

.no-image {
    height: 150px;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.8rem;
}

/* Body Styling */
.post-body { padding: 15px; flex-grow: 1; }
.post-body h3 { margin: 0 0 10px; font-size: 1.1rem; }
.post-body p.summary { 
    color: #bbb; 
    font-size: 0.9rem; 
    margin-bottom: 15px;
    /* Limit summary to 3 lines for neatness */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more { font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }

/* Responsive: 1 column on mobile, 2 on tablets */
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }        

/* Single Post Styling */
.post-full h1 { font-size: 2.5rem; margin-bottom: 10px; color: #00c853; }
.post-meta { color: #888; margin-bottom: 20px; font-size: 0.9rem; }
.full-cover { width: 100%; border-radius: 8px; margin-bottom: 30px; border: 1px solid #333; }

.post-content { line-height: 1.8; font-size: 1.1rem; }
.post-content p { margin-bottom: 20px; }

/* Table styling inside the post (for your stock data) */
.post-content table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #1e1e1e; 
    border: 1px solid #333;
    margin: 20px 0;
}
.post-content th, .post-content td { 
    padding: 12px; 
    border: 1px solid #333; 
    text-align: left; 
}
.post-content th { background: #252525; color: #00c853; }

/* Archive Tree Styling */
.archive-tree { list-style: none; padding-left: 5px; }
.year-folder summary { 
    cursor: pointer; 
    padding: 8px 0; 
    color: #00c853; 
    list-style: none; /* Removes default arrow in some browsers */
}
.year-folder summary::-webkit-details-marker { display: none; } /* Hides Chrome arrow */

.year-folder summary:before {
    content: "📁 "; /* Folder icon */
    font-size: 0.8rem;
}

.year-folder[open] summary:before { content: "📂 "; }

.month-list { 
    list-style: none; 
    padding-left: 20px; 
    border-left: 1px solid #333; 
    margin-left: 5px; 
}
.month-list li { 
    position: relative;
    padding-left: 15px;
    font-size: 0.9rem;
}
.month-list li::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 12px;
    width: 10px;
    height: 1px;
    background: #333;
}
/* Highlight the active month */
.month-list li a.active {
    color: #00c853;
    font-weight: bold;
}

/* Add a subtle hover effect to the year folders */
.year-folder summary:hover {
    background: rgba(0, 200, 83, 0.1);
    border-radius: 4px;
}
.count { color: #666; font-size: 0.8rem; margin-left: 5px; }

.year-folder strong { font-size: 1rem; } 