/* Main Container */
body .edel-blog-archive {
    width: 100%;
    padding: 0 20px 80px;
    background-color: #fff;
}

body .edel-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
body .blog-header-section {
    margin-bottom: 60px;
    text-align: center;
}

body .blog-main-title {
    font-size: 35px;
    /* Increased size */
    font-weight: 800;
    /* Bolder */
    margin-bottom: 40px;
    color: #2c3e50;
    /* Dark gray */
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    /* Added text shadow */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* Clean font */
    line-height: 1.2;
}

/* Search Box */
body .blog-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

body #blog-search-input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    font-size: 16px;
    border: 2px solid #e1e1e1;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

body #blog-search-input:focus {
    border-color: #333;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

body .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
}

/* Category Filters */
body .blog-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

body .filter-label {
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    margin-right: 10px;
}

body .filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

body .blog-cat-filter-btn {
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #666;
}

body .blog-cat-filter-btn:hover {
    border-color: #333;
    color: #333;
    transform: translateY(-2px);
}

body .blog-cat-filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Blog Grid */
body .blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    min-height: 400px;
    /* Prevent layout shift during load */
    transition: opacity 0.3s ease;
}

/* Responsive Grid */
@media (max-width: 1100px) {
    body .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    body .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    body .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Item Card */
body .blog-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

body .blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body .blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Thumbnail Area */
body .blog-thumb {
    width: 100%;
    padding-top: 60%;
    /* Aspect Ratio */
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

body .blog-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

body .blog-item:hover .blog-thumb img {
    transform: scale(1.08);
}

body .blog-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    background: #eaeaea;
    font-size: 14px;
}

/* Meta Data */
body .blog-meta {
    padding: 20px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 12px;
}

body .blog-date {
    color: #999;
}

body .blog-cats {
    text-align: right;
}

body .blog-cat-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    /* White text for better contrast */
    margin-left: 5px;
    margin-bottom: 3px;
    background: #999;
    /* Fallback */
}

/* News Label Color */
body .blog-cat-tag.is-news {
    background-color: #374151 !important;
}

/* Column Label Color */
body .blog-cat-tag.is-column {
    background-color: #21759b !important;
}


/* Title */
body .blog-title {
    padding: 0 20px 25px;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

body .blog-item:hover .blog-title {
    color: #000;
}

/* Pagination */
body .blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

body .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

body .page-link:hover,
body .page-link.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

body .page-dots {
    color: #999;
    font-weight: bold;
}