/* Container for posts */
.custom-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px;
}

/* Individual post card */
.custom-post-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px; /* Fixed height to ensure uniformity */
    overflow: hidden;
}

/* Post thumbnail */
.custom-post-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height */
    overflow: hidden;
    border-radius: 8px;
}

.custom-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fully fills the space */
    display: block;
}

/* Post title */
.custom-post-item h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

/* Post excerpt */
.custom-post-item p {
    font-size: 14px;
    color: #666;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits text to 3 lines */
    -webkit-box-orient: vertical;
}

/* Read More button */
.read-more-button {
    display: inline-block;
    padding: 8px 12px;
    background: #c80d00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: auto; /* Keeps button aligned at the bottom */
}

/* Form styling */
.custom-profile-form {
    max-width: 600px;
    margin: auto;
    padding: 25px;
    border-radius: 10px;
   
}

.custom-profile-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.custom-profile-form input,
.custom-profile-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.custom-profile-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #c80d00;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .custom-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .custom-posts {
        grid-template-columns: 1fr;
    }
}