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

body {
    font-family: 'Montserrat', sans-serif;
}

.addblog-page {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    color: #333;
}

/* Ensure the background image covers the area responsively */
.addblog-image {
    position: absolute;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 70%, rgb(0, 0, 0) 100%), 
    url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732514118/IMG_1883_i9hhqx.jpg');
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}


.blog-form {
    position: relative;
    max-width: 600px;
    margin: 10%;
    background: white;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #5a5245;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="file"] {
    padding: 10px;
    font-size: 16px;
}

button {
    background-color: #DA7B29;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d88a00;
}

@media (max-width: 600px) {
    .blog-form {
        padding: 15px;
    }

    button {
        width: 100%;
    }
}

.blog-section {
    width: 90%;
    margin: auto;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: space-between;
    gap: 2rem;
}

.blog-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    width: 100%; /* Changed to 100% for responsiveness */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s; /* Added hover effect */
}

.blog-card:hover {
    transform: translateY(-5px); /* Slightly lift the card on hover */
}

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

.blog-content {
    padding: 1rem;
}

.blog-content .date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 500;
}

.blog-content h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.blog-content p {
    font-size: 1.2rem;
    color: #555;
}

.read-all {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-size: 1rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.read-all:hover {
    color: burlywood;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-content h3 {
        font-size: 1.5rem; /* Adjusting font size for smaller screens */
    }

    .blog-content h5 {
        font-size: 1rem; /* Adjusting font size for smaller screens */
    }

    .blog-content p {
        font-size: 1rem; /* Adjusting font size for smaller screens */
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 0.5rem; /* Reducing padding for mobile */
    }

    .blog-content h3 {
        font-size: 1.3rem; /* Further adjusting font size for smaller screens */
    }

    .blog-content h5 {
        font-size: 0.9rem; /* Further adjusting font size for smaller screens */
    }

    .blog-content p {
        font-size: 0.9rem; /* Further adjusting font size for smaller screens */
    }

    .read-all {
        font-size: 0.9rem; /* Adjusting font size for smaller screens */
    }
}
