.section-2 {
    position: relative;
    padding: 10px;
    background: #fff;
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    transition: all 0.5s ease;
    font-family: "Roboto",sans-serif;
}

.section-2 .search-container {
    position: relative;
    max-width: 700px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-2 .search-input {
    width: 100%;
    padding: 13px 25px;
    border: 2px solid #e1e1e1;
    border-radius: 30px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.section-2 .search-input:focus {
    border-color: #0D47A1;
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.1);
}

.section-2 .search-input::placeholder {
    color: #999;
}

.section-2 .search-button {
    position: absolute;
    top: 7px;
    height: 40px;
    width: 40px;
    right: 5px;
    padding: 10px;
    background: #0D47A1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.section-2 .search-button:hover {
    background: #0a3679;
    transform: scale(1.05);
}

.section-2 .tags-container {
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 50px 0;
    justify-content: center;
    justify-self: center;
    transition: all 0.5s ease;
}

.section-2 .tag {
    padding: 8px 16px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 400;
    color: #0047CC;
    cursor: pointer;
    transition: all 0.5s ease;
    white-space: nowrap;
}

.section-2 .tag.active {
    background: #0047CC;
    color: white;
    border: none;
}

.section-2 .tag:hover {
    background: #0047CC;
    color: white;
}

.section-2 .blog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0 20px;
    transition: all 0.5s ease;
}

.section-2 .blog-header h1{
    font-size: 1.8rem;
    text-align: left;
    font-weight: 600;
    transition: all 0.5s ease;
}
.section-2 .blog-header .filter-type {
    top: -0.3px;
    font-size: 1rem;
    text-align: left;
    font-weight: 600;
    transition: all 0.5s ease;
}
.section-2 .blog-header h1 span {
    position: relative;
    margin-left: 10px;
    transition: all 0.5s ease;
}

.section-2 .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
    transition: all 0.5s ease;
}

.section-2 .blog-card {
    margin-left: auto;
    margin-right: auto;
    width: 312px;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    display: none; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.section-2 .blog-card.visible {
    display: block; 
    transition: all 0.5s ease;
}

.section-2 .blog-card:hover {
    transform: translateY(-10px);
}

.section-2 .blog-image {
    width: 100%;
    height: 218px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.section-2 .blog-content {
    padding: 15px;
    transition: all 0.5s ease;
}

.section-2 .blog-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    transition: all 0.5s ease;
}

.section-2 .blog-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.5s ease;
}

.section-2 .learn-more {
    color: #0047CC;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.5s ease;
}

.section-2 .load-more {
    display: block;
    width: 200px;
    margin: 30px auto;
    padding: 10px 20px;
    background: none;
    border: 1.5px solid #0047CC;
    color: #545657;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    transition: all 0.5s ease;
}

.section-2 .load-more:hover {
    background: #0047CC;
    color: white;
    transition: all 0.5s ease;
}

.section-2 .load-more.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-2 .tags-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .section-2 .blog-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .section-2 .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .section-2 .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-2 .blog-title {
        font-size: 16px;
    }
}

.section-2 .no-results {
    text-align: center;
    grid-column: 1 / -1;
    padding: 20px;
    font-size: 1rem;
    color: #b30909c7;
    transition: all 0.5s ease;
}

/* 320px */
@media screen and (min-width: 320px){
    .section-2 .tags-container {
        margin: 17px 0;
    }

    .section-2 .blog-header h1 span {
        top: 3px;
        margin-right: 0px;
        margin-left: 5px;
    }

    .section-2 .blog-header h1{
        font-size: 1.3rem;
    }
    .section-2 .blog-header .filter-type {
        font-size: 1.1rem;
    }

    .section-2 .search-container{
        max-width: 300px;
    }
}
/* 375px */
@media screen and (min-width: 375px){
    .section-2 .tags-container {
        margin: 30px 0;
    }

    .section-2 .blog-header h1{
        font-size: 1.6rem;
    }
    .section-2 .blog-header .filter-type {
        font-size: 1.3rem;
    }
    .section-2 .search-container{
        max-width: 350px;
    }
}
/* 425px */
@media screen and (min-width: 425px){
    .section-2 .tags-container {
        margin: 30px 0;
    }

    .section-2 .blog-header h1{
        font-size: 1.8rem;
    }
    .section-2 .blog-header .filter-type {
        font-size: 1.5rem;
    }
    .section-2 .search-container{
        max-width: 400px;
    }
}
/* 768px */
@media screen and (min-width: 768px){
    .section-2 .tags-container {
        margin: 30px 0;
    }

    .section-2 .blog-header h1{
        font-size: 2rem;
    }
    .section-2 .blog-header .filter-type {
        font-size: 1.7rem;
    }
    .section-2 .search-container{
        max-width: 500px;
    }
}
/* 1024px */
@media screen and (min-width: 1024px){
    .section-2 .tags-container {
        margin: 30px 0;
    }

    .section-2 .blog-header h1{
        font-size: 2.2rem;
    }
    .section-2 .blog-header .filter-type {
        font-size: 1.9rem;
    }
    .section-2 .search-container{
        max-width: 700px;
    }
}

.section-2 .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.section-2 .blog-tag {
    font-size: 12px;
    padding: 3px 8px;
    background-color: #f0f2f5;
    color: #666;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.section-2 .blog-tag:hover {
    background-color: #0047CC;
    color: white;
}