/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

/* Blog post container with fixed height */
.blog-post {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-top-left-radius: 80px 80px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-left-radius 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 600px; /* Set a fixed height for the card */
}

/* Image styling */
.blog-image {
    width: 100%;
    height: 300px; /* Fixed height for images */
    object-fit: cover; /* Ensure image covers the card */
}

/* Card body styling */
.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Card meta styling */
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #ff0000;
    /* margin-bottom: 10px; */
    text-transform: uppercase !important;
}

/* Title and content styling */
.card-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    /* margin-bottom: 10px; */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Handle overflow for long titles */
    text-transform: uppercase !important;
}


.card-content {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    font-size: 1em;
    line-height: 1.5;
    color: #666;
    overflow: hidden;
    /* text-overflow: ellipsis; /* Handle overflow for long content */
    text-transform: capitalize !important;
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5; /* Limit content to 3 lines */
    -webkit-box-orient: vertical;
}

.blog-stats {
    font-size: 1em;
    line-height: 0.5;
}


/* Hover effect */
.blog-post:hover {
    /* transform: scale(1.05); */
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    border-bottom: 1mm groove #fd645b;
    border-top-left-radius: 0;
    border-top-right-radius: 80px 80px;
    transition: border-top-left-radius 0.3s ease, border-top-right-radius 0.3s ease;
    background-color: rgb(255, 245, 237);
}

/* Define background color classes */
.bg-color-1 {
    background-color: #f8d7da; /* Light red */
}
.bg-color-2 {
    background-color: #d4edda; /* Light green */
}
.bg-color-3 {
    background-color: #d1ecf1; /* Light blue */
}
.bg-color-4 {
    background-color: #fff3cd; /* Light yellow */
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Add some space above pagination */
}

.pagination {
    list-style: none;
    display: flex;
    gap: 10px; /* Space between buttons */
    padding: 0;
}

.page-items {
    width: 40px; /* Set equal width and height for circular shape */
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Make border-radius 50% for circular shape */
    background-color: #fff; /* Background color for buttons */
    border: 2px solid #18a577; /* Border color */
    transition: background-color 0.3s; /* Smooth background transition */
}

.page-items a {
    text-decoration: none;
    border-radius: 50%;
    color: #18a577; /* Link color */
    display: flex; /* Use flex to center the text */
    justify-content: center;
    align-items: center;
    width: 100%; /* Full width for alignment */
    height: 100%; /* Full height for alignment */
}

.page-items.active {
    background-color: #18a577; /* Active button color */
    color: white; /* Active text color */
    border-radius: 50%;
}

.page-items.active a {
    color: white; /* Active link color */
}

.page-items:hover {
    cursor: pointer; /* Pointer cursor on hover */
    background-color: #18a577; /* Hover background color */
    color: white; /* Hover text color */
}

.page-items:hover a {
    color: #fff;
}
