/* Base styles matching EVES website */
.careers-blog-container {
    max-width: 1200px;
    /* margin: 0 auto; */
    /* padding: 40px 20px; */
    display: flex;
    /* gap: 30px; */
    gap: 2%;
}

.blog-sidebar .sidebar-widget:first-of-type{
    display: none !important;
}



.main-content {
    /* flex: 1; */
    width: 73%;
}

.careers-blog-header {
    text-align: center !important;
    margin-bottom: 40px !important;
}

.careers-blog-header h1 {
    font-size: 42px !important;
    color: #0056b3 !important;
    margin-bottom: 15px !important;
    margin-top: 0px !important;
}

.careers-blog-header p {
    font-size: 18px !important;
    color: #666 !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

.careers-blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 10px;
    margin-bottom: 30px;
}

.careers-filter-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333333 !important;
}

.careers-filter-btn:hover,
.careers-filter-btn.active {
    background: #0056b3;
    color: white !important;
    border-color: #0056b3;
}

.careers-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, max-content))!important;  
    gap: 30px;
    min-height: 400px;
    padding-left: 54px;
}

.careers-blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 400px;
}

.careers-blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    height: 250px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.blog-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-card-category {
    font-size: 12px;
    color: #0056b3;
    background: rgba(0, 86, 179, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.blog-card-title {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: #222;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.3s;
}

.blog-card-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

.blog-card-meta {
    display: flex;
    justify-content: end;
    align-items: end;
    font-size: 14px;
    color: #888;
}
.blog-card-meta2 {
    display: flex;
    justify-content: start;
    align-items: start;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.read-more-link {
    color: #0056b3;
    text-decoration: none !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more-link:hover {
    text-decoration: underline !important;
}

.careers-blog-search{
    display: flex;
    justify-content: end;
    margin-bottom: 20px;
    width: 100%;
}

.careers-search-input {
    padding: 10px 16px;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    font-size: 16px;
    width: 40% !important;
    max-width: 100%;
}

/* Sidebar Styles */
.blog-sidebar {
    /* width: 300px; */
    width: 25%;
    flex-shrink: 0;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0056b3;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.categories-list, .recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li, .recent-posts li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.categories-list li:last-child, .recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-list a, .recent-posts a {
    color: #333;
    text-decoration: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    cursor: pointer;
}

.categories-list a:hover, .recent-posts a:hover {
    color: #0056b3;
}

.categories-list span {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.subscribe-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.subscribe-form button {
    background: #0056b3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.3s;
}

.subscribe-form button:hover {
    background: #004494;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    color: #0056b3;
    background: rgba(0, 86, 179, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.3s;
}

.tag:hover {
    background: #0056b3;
    color: white;
}

/* Pagination Styles */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

.pagination-btn.active {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 992px) {
    .careers-blog-container {
        flex-direction: column;
    }
    
    .blog-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .sidebar-widget {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .careers-blog-grid {
        grid-template-columns: 1fr !important;
        padding-left: unset !important;
    }
    
    .sidebar-widget {
        min-width: 50%;
    }
    .careers-search-input {
        width: 100% !important;
    }
    .careers-blog-header{
        padding: 0 20px;
    }
    .careers-blog-filters{
        justify-content: center;
    }
    .main-content {
        width: 100% !important;
        margin-bottom: 30px;
    }
}