/* --- 1. MAIN CARD STYLES --- */
.resumo-post {
    width: 100%;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
    border-radius: 0.5rem;
    padding: 0;
    background-color: white;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resumo-post:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
}


/* --- 2. CARD IMAGE STYLES --- */
.resumo-post .post-img-container {
    position: relative;
    width: 100%;
    border-radius: 7px;
    border: 4px solid black;
    margin: 0;
    padding: 0;
}

.post-img-container:after {
    content: "";
    display: block;
    padding-bottom: 100%; /* Creates a square aspect ratio */
}

.resumo-post img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* --- 3. CARD TEXT STYLES --- */
.resumo-post .post-resumo-texto {
    position: relative;
    padding: 15px; /* Added a bit more padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures text box fills space */
    overflow: hidden; /* Added to help with truncation */
}

/* --- NEW: Make Title Smaller --- */
.resumo-post .post-resumo-texto h4 {
    font-size: 1.15rem; /* Smaller than default h4 */
    font-weight: 600;
    margin-bottom: 10px;
}

/* --- NEW: Truncate Description --- */
.resumo-post .post-resumo-texto p {
    font-size: 0.95rem;
    color: #4a4a4a;
    margin-bottom: 0; /* Remove default paragraph margin */
    
    /* This is the text-truncation magic: */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Show a maximum of 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.resumo-post a { /* Likely refers to the button link */
    display: block;
    margin-top: auto;
    bottom: 0;
}


/* --- 4. BUTTON STYLES --- */
/* Note: This might be unused if buttons are styled by Bootstrap */
.btn-saiba-mais {
    display: inline-block;
    margin-top: auto;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-saiba-mais:hover {
    background-color: #0056b3;
    color: white;
}
