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

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

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

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

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

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

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

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

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

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

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

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

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