.blog-container{
    display: flex;
    width: 80%;
    margin-left: 9%;
    margin-top: 5%;

}
.blog-card{
    height: 500px;
    width: 33% ;
    border: 2px solid black;
    border-radius: 5%;
    margin-left: 20px;

}
.blog-card img{
    height: 200px;
    width: 90%;
    justify-content: center;
    margin-left: 5%;
    margin-top: 5%;
    border-radius: 5%;
}

.blog-description{
    line-height: 1.1;
    color: black;
    text-align: center;
    margin-top: 10%;
    font-size: 30px;
    text-align: left;
    margin-left: 5%;
}
.read-more-button{
    border: 2px solid black;
    height: 50px;
    border-radius: 100px;
    width: 30%;
    margin-left: 5%;
    margin-top: 6%;
    background-color: white;
}
.blog-info {
    display: flex; /* Align items horizontally */
    justify-content: space-between; /* Add space between button and date */
    align-items: center; /* Center vertically */
    width: 90%; /* Match the width of the card */
    margin: 10px auto; /* Center the info block */
}
.blog-info button{
    border: 2px solid black;
    height: 50px;
    border-radius: 100px;
    width: 30%;
    background-color: white;
}
.blog-info button:hover,
.read-more-button:hover {
    background-color: #BFF747;
    border: none;
    transition: background-color 0.7s ease, border 0.3s ease; /* Transition for background color and border */
}

.search input{
    height: 50px;   
    width: 190%;
    margin-left: 20px;
    border-radius: 20px;
    text-align: left;
    border: 2px solid black;
}
.categories {
    border: 2px solid black; 
    height: 430px;
    width: 190%; /* This will make it wider than the container; may need to adjust depending on layout */
    margin-left: 20px; /* Spacing on the left side */
    margin-top: 10%; /* Margin from the top */
    border-radius: 20px; /* Rounded corners */
    line-height: 3; /* Adjust line height for spacing between lines */
    font-size: 20px; /* Larger font size */
    padding: 20px; /* Add padding to the inside of the box */
    overflow-y: auto; /* Adds scroll if content overflows */
}

/* Styling for each list item */
.categories ul {
    list-style-type: none;
    padding: 0;
}

.categories li {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
    cursor: pointer;
}

.categories li:hover {
    color: #000; /* Highlight text on hover */
}
@media (max-width: 768px) {
    /* Blog container stacks cards and other content vertically */
    .blog-container {
        flex-direction: column; /* Stack cards vertically */
        width: 80%; /* Full width for better layout on smaller screens */
        margin: 20px auto; /* Center the container with some space */
    }

    /* Blog cards take full width and adjust margin */
    .blog-card {
        width: 100%; /* Full-width for smaller screens */
        margin-top: 10%; /* Adds top margin for spacing */
        margin-left: 0; /* Removes left margin */
    }

    /* Adjusting the search input box for smaller screens */
    .search input {
        width: 100%; /* Full width for better responsiveness */
        margin-left: 0; /* No extra margin */
        margin-top: 10px; /* Add a top margin for spacing */
        border-radius: 10px; /* Slightly round corners */
        padding: 15px; /* Add padding for better visibility */
        font-size: 16px; /* Slightly smaller font size */
    }

    /* Categories section becomes full-width and adjusted for better visibility */
    .categories {
        width: 100%; /* Full width for the categories container */
        margin-left: 0; /* Remove left margin */
        margin-top: 10px; /* Add space above */
        border-radius: 10px; /* Round corners */
        padding: 15px; /* Add padding inside the categories box */
        height: 450px;
    }

    /* Adjust category list styling for smaller screens */
    .categories ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .categories li {
        margin-bottom: 12px; /* Add space between items */
        font-size: 18px; /* Slightly smaller font size for readability */
    }

}
.recent-post {
    border: 2px solid black; 
    height: 500px; /* Adjust height based on content */
    width: 104%; /* Full width for responsiveness */
    margin-left: 20px; /* Align properly in the layout */
    border-radius: 20px; /* Rounded corners */
    line-height: 1.5; /* Better spacing between lines */
    font-size: 18px; /* Adjusted font size for readability */
    padding: 20px; /* Padding inside the box */
    overflow-y: auto; /* Adds vertical scroll if content overflows */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for a better look */
}

.recent-post-item {
    display: flex; /* Align image and text horizontally */
    padding: 10px 0; /* Adds vertical spacing between items */
    border-bottom: 1px solid #ddd; /* Add a divider between items */
    align-items: center; /* Center image and text vertically */
    margin-bottom: 20px; /* Same vertical gap as other sections */
    margin-top: 6%;
}

.recent-post-item img {
    height: 50px; /* Consistent size for the image */
    width: 50px;  /* Makes it a perfect square */
    border-radius: 10px; /* Rounded corners */
    object-fit: cover; /* Ensures image content fits nicely */
    flex-shrink: 0; /* Prevents image from shrinking */
}

.post-info {
    display: flex;
    flex-direction: column; /* Stack the title and date vertically */
    justify-content: center; /* Vertically align content */
}

.post-info .post-date {
    font-size: 12px; /* Smaller size for the date */
    color: #888; /* Subtle color for date */
    margin-bottom: 5px; /* Space below the date */
    margin-left: 10px;
}

.post-info .post-title {
    font-size: 16px; /* Size for better readability */
    font-weight: bold; /* Bold title */
    color: #333; /* Darker text color */
    line-height: 1.4; /* Improve spacing between lines */
    margin-top: 5%;
}

.recent-post-item:hover {
    background-color: #f9f9f9; /* Light gray background on hover */
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
    transform: scale(1.02); /* Slight scaling on hover */
}
@media (max-width: 768px) {
    .recent-post {
        border: 2px solid black; 
        height: auto; /* Adjust height to fit content */
        width: 100%; /* Full width for small screens */
        margin: 20px auto; /* Center align in the layout */
        border-radius: 15px; /* Slightly round corners */
        line-height: 1.5; /* Proper line spacing for readability */
        font-size: 16px; /* Adjust font size for smaller screens */
        padding: 15px; /* Consistent padding */
        overflow-y: auto; /* Adds scroll for overflow */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    }

    .recent-post-item {
        display: flex; /* Align image and text horizontally */
        padding: 10px 0; /* Space between items */
        border-bottom: 1px solid #ddd; /* Divider for better separation */
        align-items: center; /* Vertically center align content */
        margin-bottom: 10px; /* Uniform spacing */
    }

    .recent-post-item img {
        height: 40px; /* Smaller image size for small screens */
        width: 40px; /* Perfect square */
        border-radius: 8px; /* Smooth edges */
        object-fit: cover; /* Fit image within the box */
        flex-shrink: 0; /* Prevent shrinking */
        margin-right: 10px; /* Space between image and text */
    }

    .post-info {
        display: flex;
        flex-direction: column; /* Stack title and date */
        justify-content: center; /* Vertically center align */
    }

    .post-info .post-date {
        font-size: 12px; /* Smaller font size for date */
        color: #aaa; /* Subtle color for the date */
        margin-bottom: 2px; /* Minimal space below date */
    }

    .post-info .post-title {
        font-size: 14px; /* Smaller title font size for small screens */
        font-weight: bold; /* Highlight the title */
        color: #444; /* Slightly lighter text color */
        line-height: 1.3; /* Compact spacing between lines */
    }

    .recent-post-item:hover {
        background-color: #f0f0f0; /* Light background on hover */
        cursor: pointer; /* Pointer cursor for interactivity */
        transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
        transform: scale(1.02); /* Subtle scaling on hover */
    }
}




.blog-content {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin-left: 10%;
}

.blog-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.blog-content h3 {
    font-size: 20px;
    margin-top: 20px;
    color: #333;
}

.blog-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.blog-content blockquote {
    font-style: italic;
    font-size: 18px;
    color: white    ;
    margin: 20px 0;
    padding: 10px 15px;
    border-left: 10px solid rgb(33, 29, 29);
    background-color: #000;
}

.tags {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.comments-section {
    margin-top: 30px;
}

.comments-section .comment {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.leave-comment {
    margin-top: 30px;
}

.leave-comment form {
    display: flex;
    flex-direction: column;
}

.leave-comment label {
    font-size: 14px;
    margin-bottom: 5px;
}

.leave-comment input,
.leave-comment textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.leave-comment button {
    width: 150px;
    padding: 10px;
    font-size: 14px;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-start;
}

.leave-comment button:hover {
    background-color: #555;
}
