/* Pagination   The MAIN PAGE USES THIS This is the optimized CSS */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-item .page-link {
    color: #343a40; /* Dark gray text */
    background-color: #e9ecef; /* Light gray background */
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination .page-item.active .page-link {
    background-color:#98c29c;
    color: white;
    font-weight: bold;
}

.pagination .page-item .page-link:hover {
    background-color: #d4edda;
    color: #155724;
}

/* Body */
body {
    background-color: #faf8f9;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5em;
}

.nav-link {
    color: #a1a7ad !important;
}

/* Custom Button */
.btn-custom {
    background-color: #0062cc;
    border-color: #0056b3;
}

.btn-custom:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Category Buttons */
.category-btn {
    margin: 0.5em;
    padding: 10px 20px;
    background-color: #d8b0d8;
    color: #000000;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background-color: #98c29c;
    color: #ffffff;
}

/* Cards */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Post Content */
.post-content {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Content Container */
.content-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    background-color: #fff;
}

/* Post Image Rectangle */
.post-image-rectangle {
    width: 100%; /* Ensure the image spans the container width */
    height: 420px; /* Set rectangle height */
    object-fit: cover; /* Crop the image to fit the dimensions */
    display: block; /* Ensure it behaves as a block element */
    margin: 10px auto; /* Center the image */
    border-radius: 8px; /* Optional: Add rounded corners */
    overflow: hidden; /* Hide overflowed parts of the image */
}

/* Hover Summary Feature */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between cards */
}

.card-with-summary {
    position: relative;
    width: 300px; /* Adjust as needed */
    height: 200px; /* Adjust as needed */
    overflow: hidden;
    border-radius: 8px; /* Optional: Rounded corners */
    transition: box-shadow 0.3s ease-in-out;
    border: 1px solid #ddd; /* Match the light theme */
}

.card-with-summary:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image fits well */
    border-radius: 8px; /* Match container rounding */
}

.card-hover-summary {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9); /* Light background with transparency */
    color: #000; /* Text color */
    padding: 15px;
    display: none; /* Initially hidden */
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.card-hover-summary {
    display: none !important;
}
.card-with-summary:hover .card-hover-summary {
    display: block !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .col-md-3 {
        display: none;
    }

    .col-md-9 {
        width: 100%;
    }

    .col-md-6,
    .col-lg-4,
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 0.9em;
    }

    .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

    .card-img-top {
        height: 120px;
    }
}
/* Hover Summary with Buttons */
.card-with-summary {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    transition: box-shadow 0.3s ease-in-out;
    border: 1px solid #ddd;
}

.image-container {
    position: relative;
    width: 100%;
    height: 200px; /* Adjust as needed */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Summary and Buttons Hover Effect */
.card-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9); /* Light background with transparency */
    color: #000;
    padding: 12px;
    display: none;
    text-align: center;
    font-size: 0.7rem; /* Smaller font size */
    line-height: 1.5;
}

/* Ensure the summary and buttons show together when hovering */
.image-container:hover .card-hover-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Button Container */
.button-container {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Button Styling */
.button-container .btn {
    flex-grow: 1;
    max-width: 70px; /* Adjust button width */
    font-size: 11px; /* Reduce button size */
    padding: 2px 3px;
}

/* Decrease the font size of the post title */
.card-title {
    font-size: 0.9rem; /* Adjust as needed */
    font-weight: bold;
    color: #333; /* Ensures readability */
}
