/* Enhanced Blog Card Styles */
.blog-card {
    background-color: #161b22;
    border-left: 4px solid #30363d; /* Changed from blue to more neutral gray */
    border-radius: 4px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Card Link Styling */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; /* Make sure the link takes full height */
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Ensure category tags and other elements appear above the link wrapper */
.category-tag, .blog-card-tags span, .blog-post-meta, .blog-card-meta, .card-title, .card-text, .author, .card-body, .card-body * {
    position: relative;
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.blog-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #30363d, #24292e); /* Changed from blue to more neutral gray */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover:after {
    opacity: 1;
}

.blog-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #e6edf3;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-card .blog-card-meta {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0 1rem 0;
    color: #aaa;
    font-size: 0.9rem;
}

.blog-card .blog-card-date {
    font-style: italic;
}

.blog-card .blog-card-tags span {
    display: inline-block;
    background-color: #21262d;
    color: #8b949e;
    padding: 0.25rem 0.5rem;
    border-radius: 25px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.blog-card .blog-card-description {
    margin-bottom: 1.5rem;
    color: #c9d1d9;
    line-height: 1.6;
}

.blog-card .blog-card-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #30363d; /* Changed from blue to more neutral gray */
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.blog-card .blog-card-link:hover {
    background-color: #24292e; /* Changed from blue to more neutral gray */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Collapsible Section Styles */
.section-header {
    cursor: pointer;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background-color: #0d1117;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #494f57; /* Changed from blue to darker gray */
    text-align: left;
}

.section-header.active {
    background-color: #161b22;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e6edf3;
}

.section-header i {
    transition: transform 0.3s ease;
}

.section-header.active i {
    transform: rotate(180deg);
}

.section-content {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    transition: max-height 0.5s ease, padding 0.3s ease;
    overflow: hidden;
    max-height: 5000px; /* Arbitrary large height */
}

.section-content.collapsed {
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}