.search-wrapper {
    position: relative;
    width: 100%;
    margin: auto;
}

#blogSearch {
    border: 1px solid #646464;
    border-radius: 12px;
    font-size: 1.2rem;
    outline: none;
    transition: 0.3s ease;
}

#blogSearch:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 6px rgba(0, 123, 255, 0.3);
}

#searchBtn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

#searchBtn:focus,
#searchBtn:focus-visible,
#searchBtn:active {
    outline: none !important;
}

#searchBtn:hover {
    opacity: 1;
}

.search-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #171717;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.search-icon:hover::before {
    border-color: #007bff;
}

.search-icon::after {
    content: "";
    width: 8px;
    height: 2px;
    background: #171717;
    position: absolute;
    bottom: 2px;
    right: -2px;
    transform: rotate(45deg);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.search-icon:hover::after {
    background-color: #007bff;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #646464;
    border-radius: 0.25rem;
    cursor: pointer;
    width: 100%;
    max-width: 540px;
    min-height: 320px;
    background-color: #f5f5f5;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.blog-card:hover {
    background-color: #bebebe;
    border: 1px solid #bebebe;
    filter: drop-shadow(2px 2px 2px #000);
}

.blog-card img {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    object-fit: cover;
    width: 100%;
    height: 50%;
}

.blog-card-content {
    padding: 0.6rem;
    overflow: auto;
    height: 50%;
    display: flex;
    flex-direction: column;
}

/* Center the text inside the content */
.blog-card-content p,
.blog-card-content h5 {
    margin: 0.25rem 0;
}

/* Responsive: center columns inside Bootstrap grid */
.col-md-6 {
    display: flex;
    justify-content: center;
}

@media(min-width:768px) and (max-width:1200px) {
    .blog-card {
        min-height: 480px;
    }

}

@media(max-width:768px) {
    .blog-card {
        height: fit-content !important;
    }
}