/* Reset default margins and paddings, and apply border-box model to all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling: Remove margins, paddings, set font, and background color */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Play", sans-serif;
    background-color: #e4e3e3;
}

/* ------------------------------------------------ */
/* Main content box styling: Set display as flex with a white background */
.main-box {
    display: flex;
    background-color: white;
    margin-top: 80px; /* Add margin to prevent content overlap with fixed navbar */
}


/* ----------------------------------- */
/* Blog container styling: Flex container with column wrapping and reverse order */
#blog-container {
    display: flex;
    flex-wrap: wrap;
    /* flex-direction: column-reverse; */
    flex-direction: row;
    /* columns: 4;  */
    justify-content:space-around;
    column-gap: 10px; 
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-top: -10px;
    overflow: hidden;
    vertical-align: middle;
}

/* Blog card styling: Block display, set dimensions, border, and shadow */
.blog-card {
    display: flex; /* Change to block to allow full control over content width */
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* overflow: hidden; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    vertical-align: middle;
    /* height: 500px; */
    /* word-wrap: break-word; */
    /* overflow-wrap:break-word ; */
    /* max-width: 100%; Prevent overflow on smaller screens */

}

/* Blog card image styling: Set maximum width and maintain aspect ratio */
.blog-card img {
    max-width: 600px; /* Set the maximum width of the image */
    width: 100%; /* Image takes full width of the card */
     height: auto; /*Maintain aspect ratio */
    /* display: block; */
}

/* Blog card text elements (h2, p, h5) styling: Set margins and text color */
.blog-card h2, .blog-card p, .blog-card h5 {
    margin: 15px;
    color: #333;
    width: 500px; 
}

/* Blog card title styling: Set font size */
.blog-card h2 {
    /* width: fit-content; */
    font-size: 20px;
    /* word-wrap: break-word; */
}

/* Blog card description styling: Set font size and color */
.blog-card p {
    font-size: 1em;
    color: #666;
    /* width: 90%; */
    /* text-wrap: wrap; */
    overflow-wrap:break-word ;
    word-wrap: break-word;
}

/* Blog card author name styling: Set font size, color, and text alignment */
.blog-card h5 {
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* Media query for smaller screens (max-width 768px): Adjust blog card width */
/* @media (max-width: 768px) {
    .blog-card {
        width: 100%; /* Full-width on smaller screens */
    /* }
}  */
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .blog-card {
        max-width: 90%; /* Adjust card width for smaller screens */
        
    }

    .blog-card h2 {
        font-size: 1.2em; /* Adjust font size for titles */
    }

    .blog-card p {
        font-size: 0.9em; /* Adjust font size for descriptions */
    }
}

@media (max-width: 480px) {
    .blog-card h2 {
        font-size: 1em; /* Further adjust font size for very small screens */
    }

    .blog-card p {
        font-size: 0.8em; /* Further adjust font size for very small screens */
    }
}
/* --------------------------------------------------------------------------------- */

/* Footer styling: Set background color, bottom alignment, and width */
.footer-box {
    background-color: #000000;
    /* position:fixed; */
    bottom: 0;
    max-height: 200px;
    margin-bottom: auto;
    width: 100%;
}

/* Footer text styling: Set font size and color */
.footer-box p {
    font-size: 15px;
    color: grey;
}

/* ---------------main content------------------------------ */

/* Button styling: Set background color, padding, border-radius, and cursor */
button {
    background-color: #ff0000;
    color: white;
    padding: 7px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 130px;
    margin-top: 7px;
    font-weight: bold;
    margin-left: 10px;
}

/* Button hover effect: Darken the background color on hover */
button:hover {
    background-color: #cd0000;
}

/* Upload button styling: Set background color, border-radius, height, and width */
.upload {
    background-color: #000000;
    color: white;
    border-radius: 10px;
    height: 45px;
    width: 150px;
    justify-content: center;
    margin-top: 3px;
    margin-left: 100px;
}



