body {
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    font-family: "Exo", serif;
    font-optical-sizing: auto;
}

.container {
    z-index: 1;
}


.card {
    background: #ffffff;
    width: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.image-container {
    position: relative;
}

.image-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.title {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    padding: 0 5px;
}

.description {
    font-size: 10px;
    color: grey;
    padding: 0 5px;
}

@media screen and (min-width: 600px) {
    .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px; 
        padding: 0 15px;
    }

    .card {
        border-radius: 8px;
    }
}

.meta {
    display: flex;
    margin: 4px 4px;
    align-items: center;

}

.avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.username, .views, .date {
    font-size: 12px;
    color: #878787;
    margin: 0 5px;
}

.date {
    margin-left: auto;
}

header {
    background: #f9f9f9;
    position: sticky;
    top: 0;
    width: 100%;
    height: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    transition: all 0.3s ease-in-out;
}

.catagory-tags {
    background: #f9f9f9;
    position: sticky;
    top: 40px;
    z-index: 1;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    transition: all 0.5s ease-in-out;
    padding: 10px 10px;
    gap: 10px;
}


.tag {
    background: linear-gradient(145deg,#e6e6e6,#fff);
    box-shadow:  0 5px 15px rgba(0, 0, 0, 0.1);
    padding:  5px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    text-transform: capitalize;
}

.skelton-tag {
    background: #e6e6e6;
    padding:  5px 15px;
    border-radius: 25px;
    height: 15px;

}

.tag:hover {
    background: #007bff;  /* Blue hover effect */
    color: #ffffff;  /* White text on hover */
    transform: translateY(-2px);  /* Subtle lift effect */
}

.tag.active {
    background: #007bff;  /* Blue hover effect */
    color: #ffffff;  /* White text on hover */
    transform: translateY(0);  /* Reset transform on click */
}

.catagory-tags::-webkit-scrollbar {
    width: 8px; 
    height: 8px; 
}

.catagory-tags::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px; 
}

.catagory-tags::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 10px; 
    border: 2px solid #f9f9f9; 
}

.catagory-tags::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

.logo {
    font-size: 20px;
    font-weight: bolder;
    padding: 0 5px;
}


nav ul {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 14px;
    padding: 0 10px;

}

header nav ul li {
    display: inline-block;
    position: relative;
}

header nav ul li a{
    text-decoration: none;
    color: inherit;
}

header nav ul li a::before {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    bottom: 0;
    background: #000;
    transform: scale(0);
    transition: transform 0.6s ease;

}

header nav ul li a:hover::before {
    transform: scale(1);
}

header nav ul li a:hover {
    color: rgb(4, 118, 118);
}

.hamburgger {
    display: none;
}

@media screen and (max-width: 600px) {
    nav {
        display: none;
    }

    .catagory-tags::-webkit-scrollbar {
        display: none;
    }

    .hamburgger {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 0 10px;
        cursor: pointer;
        
    
    }

    .hamburgger span {
        width: 25px;
        height: 2px;
        background: #000;
        margin: 2px 0;
    }

    .hamburgger.sidemenu{
        opacity: 0;
    
    }
    
}

.side-menu {
    position: fixed;
    top: 10px;
    background: #000;
    width: 40px;
    height: 40px;
    z-index: 5;
    display: flex;
    justify-content: center;
    right: 10px;
    align-items: center;
    transform: scale(1);
    color: #ffffff;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.side-menu.open {
    visibility: visible;
    opacity: 1;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    transform: scale(1);

}

.side-menu ul {
    margin: 0;
    padding: 0;
    text-align: center;
    list-style: none;
    opacity: 0;
    transform: translateY(20%);
    transition: all 0.7s ease-in-out;
}

.side-menu.open ul {
    opacity: 1;
    transform: translateX(0);

}

.side-menu ul li:hover {
    background: #878787;
}

.side-menu ul li {
    margin: 25px 0;
    padding: 10px;
}

.side-menu ul li a {
    text-decoration: none;
    color: inherit;
    font-size: 20px;
    font-weight: 700;
}

.close {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 15px;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.7s ease-in-out;
}

.side-menu.open .close {
    opacity: 1;
    visibility: visible;
}

.bar {
    position: absolute;
    width: 25px;
    height: 1px;
    background: #f9f9f9;
    display: block;
    cursor: pointer;
}

.bar:nth-child(1) {
    transform: rotate(45deg);
}

.bar:nth-child(2) {
    transform: rotate(-45deg);
}

.skeleton {
    display: block;
    align-items: center;
}

.skeleton-image {
    width: 100%;
    height: 180px;
    background: #e6e6e6;
}

.skeleton-title {
    width: 95%;
    height: 10px;
    background: silver;
    margin: 10px 5px;
    box-sizing: border-box;

}

.skeleton-description {
    width: 95%;
    height: 30px;
    background: silver;
    margin: 10px 5px;
    box-sizing: border-box;

}

.skeleton-meta {
    display: flex;
    align-items: center;
    margin: 5px 5px;
}

.skeleton-avatar {
    background: #e6e6e6;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
}

.skeleton-username, .skeleton-views, .skeleton-date {
    background: #e6e6e6;
    width: 40px;
    height: 10px;
    margin-right: 10px;
}

.skeleton-date {
    margin-left: auto;
    margin-right: 0;
    width: 50px;
}