.brief::-webkit-scrollbar, .grid-description::-webkit-scrollbar {
    width: 10px;
  }

/* Track */
.brief::-webkit-scrollbar-track, .grid-description::-webkit-scrollbar-track {
    background: #e4e4e4; 
    border-radius: 5px;
    border: 1px solid #888;
}

/* Handle */
.brief::-webkit-scrollbar-thumb, .grid-description::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 5px;
}

/* Handle on hover */
.brief::-webkit-scrollbar-thumb:hover, .grid-description::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

.wholebody {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    margin-top: 150px;
    text-align: center;
    border-radius: 5px;
}

h1 {
    margin: 0;
}


article h2 {
    font-size: 20px;
}

.brief {
    margin: 0 8px 8px 8px;
    background-color: rgb(224, 221, 221);
    overflow-y: auto;
    border-radius: 5px;

}
article p {
    font-size: 16px;
}

main.blog-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.blog-post {
    border: 1px solid #aaa;
    background-color: #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
}

.blog-post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-post h2 {
    margin: 1rem;
}

.blog-post p {
    margin: 1rem;
    flex-grow: 1;
    height: 50px;
}

.blog-post a {
    color: #007BFF;
    text-decoration: none;
    align-self: flex-end;
    margin: 1rem;
}

.blog-post a:hover {
    text-decoration: underline;
}

.bann-con {
    padding: 1rem;
}

.banner {
    margin: 0 auto;
    width: 100%; /* Set the width of the container */
    overflow: hidden; /* Hide any overflow */
    border-radius: 5px;
    display: flex;
    align-items: center;
    text-align: center;
  }

  
  .banner img {
    width: 100%; /* Ensure the image fills the container horizontally */
    height: 100%; /* Ensure the image fills the container vertically */
    object-fit: cover; /* Scale the image while maintaining aspect ratio */
    border: 2px solid #eee;
  }

  .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.page-item {
    margin-right: 10px; /* Adjust spacing between page items */
}

.page-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #333; /* Text color */
    background-color: #eee; /* Background color */
    border: 1px solid #ccc; /* Border color */
    border-radius: 0.25rem; /* Border radius */
    transition: background-color 0.3s ease; /* Transition effect */
}

.page-link:hover {
    background-color: #bbb; /* Hover background color */
}

.page-item.active .page-link {
    z-index: 3;
    color: #eee; /* Active text color */
    background-color: #007bff; /* Active background color */
    border-color: #007bff; /* Active border color */
}

.page-item.disabled .page-link {
    color: #6c757d; /* Disabled text color */
    pointer-events: none; /* Disable click events */
    cursor: default; /* Change cursor style */
}

.page-link[aria-disabled="true"] {
    pointer-events: none; /* Disable click events */
    cursor: default; /* Change cursor style */
}


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

    h1 {
        font-size: 20px;
    }

    .blog-post img {
        height: 160px;
    }

    .blog-post h2 {
        margin: .5rem;
        font-size: 16px;
        width: 150px;
    }
    
    .blog-post p {
        margin: .5rem;
        font-size: 14px;
        height: 50px;
    }
    
    .blog-post a {
        margin:.5rem;
        font-size: 14px;
    }

    .banner {
        max-height: 120px;
    }
}