#blog {
    background-color: var(--primary-color);
}

#hero .container {
    display: flex;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    justify-content: center;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 0;
    color: var(--primary-color);
    line-height: 1.4;
    text-align: center;
}

#hero .mainTitle {
    width: 100%;
}

#post-view {
    display: none;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
}

.blog-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 1rem auto 0;
}

.controls-container {
    display: flex;
    flex-wrap: wrap;
   
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.search-wrapper {
    position: relative;
    flex-grow: 1;
    min-width: 250px;
   
}

.search-wrapper svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.control-input,
.control-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--card-bg-color);
    border: 1px solid var(--button-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.control-input:focus,
.control-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

#search-input {
    padding-left: 2.5rem;
}

.control-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.filter-wrapper {
    flex-grow: 1;
    display: flex;
    gap: 1rem;
}

.filter-wrapper .control-select {
    flex-basis: 50%;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.post-card {
    background-color: var(--primary-color);
   
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
   
    box-shadow: 0 0 20px 0 rgba(56, 189, 248, 0.1);
}

.post-card .post-content {
    flex-grow: 1;
}

.post-card .date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.post-card h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    color: var(--accent-color);
}

.post-card .excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-right: 3rem;
}

.post-card .card-footer {
    display: flex;
    justify-content: flex-end;
   
    align-items: center;
    font-size: 0.875rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-card .read-more {
    color: var(--accent-color);
    font-weight: 600;
}

.post-content-area {
    max-width: 820px;
    margin: 0 auto;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--accent-hover);
}

.post-content-area article header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.post-content-area .meta-info {
    color: var(--text-secondary);
}

.category-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    border: none;
   
    cursor: pointer;
   
    transition: background-color 0.3s ease, transform 0.2s ease;
   
}

.category-label {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 400;
    border: none;
    margin-bottom: 1rem;
    margin-top: 0.4rem;
    cursor: pointer;
}

#General {
    background-color: var(--accent-color);
}

#axSpA {
    background-color: #137400;
}

.post-content-area h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.5rem;
}

.post-body {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.post-body blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: #cbd5e1;
   
}

.post-body ul {
    list-style-position: inside;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
}

.no-results h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.post-divider {
    border-color: var(--accent-color);
    margin-top: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(10%, 50%));
    gap: 1rem;
    margin-bottom: 40px;
    margin-top: 40px;
}

@media (max-width: 480px) {
    .post-content-area h1 {
        font-size: 1.5rem;
    }
    .post-divider {
        margin-top: 1rem;
    }
    .post-body {
        font-size: 1rem;
    }
    .post-body h3 {
        font-size: 1.2rem;
    }
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(1, minmax(10%, 100%));
        gap: 1rem;
        margin-bottom: 40px;
        margin-top: 40px;
    }
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-content-area h1 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}