.hero-section {
    padding: 80px 0;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    height: 480px !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/joule-dashboard-bg.svg);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.simple-headers {
    min-height: 400px;
    padding: 30px 0px;
}



.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(29, 52, 112, 0.9) 0%, rgba(31, 100, 173, 0.8) 100%); */
    z-index: -1;
}


.simple-header p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-btn {
    gap: 8px;
    background: #038e9e;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #0a0a0a;
    color: white;
}

.blog-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.sidebar {
    width: 280px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 130px;
    height: fit-content;
}

.sidebar h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #155e95;
    color: black;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 12px;
}

.sidebar ul li a {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #038e9e;
    color: white;
}

.category-count {
    background-color: #e2e8f0;
    color: #1a202c;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.popular-tags {
    margin-top: 30px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    border-radius: 4px;
    background-color: #038e9e;
    color: white;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: black;
    color: white;
}

.blog-main {
    flex: 1;
}

.blog-filter {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    border: none;
    background-color: #f8fafc;
    color: #1a202c;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #038e9e;
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Always 3 columns */
    gap: 30px;
    padding: 40px 0;
}

.card-glass {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card-glass:hover .card-image img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #038e9e;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    z-index: 1;
}

.card-content {
    flex: 1;
    /* Makes content area grow, pushing footer down */
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: black !important;
}

.card-excerpt {
    color: #4b5563;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    margin-top: auto;
    /* Pushes footer to the bottom */
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

.date {
    font-size: 0.875rem;
    color: #6b7280;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 40px;
}

.pagination button {
    background: white;
    border: 1px solid #718096;
    padding: 8px 14px;
    border-radius: 6px;
    color: #1a202c;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.pagination button:hover {
    background-color: #2b6cb0;
    color: white;
    border-color: #2b6cb0;
}

.pagination .active {
    background-color: #038e9e;
    color: white;
    border-color: #155e95;
    ;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-grid {
        display: grid;
        grid-template-columns: none !important;
        gap: 30px;
        padding: 40px 0;
    }

    .simple-headers {
        min-height: 220px !important;
        padding: 30px 0px;
    }

    .blog-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }

    .simple-header h1 {
        font-size: 2.5rem;
    }

    .simple-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .simple-header {
        padding: 80px 0 100px;
        margin-bottom: 60px;
    }

    .simple-header h1 {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .blog-filter {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .simple-header {
        padding: 60px 0 80px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        padding: 10px;
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 1200px) {
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 40px 0;
    }

}