/* Overall Section Styling */
.mnm-hot-tips-section { background-color: #008577; padding: 60px 20px; color: #ffffff; font-family: Arial, sans-serif; text-align: center; border-radius: 15px; }
.mnm-section-header { max-width: 800px; margin: 0 auto 40px auto; }
.mnm-section-title { font-size: 2.8em; font-weight: bold; margin-bottom: 15px; color: #ffffff; }
.mnm-section-blurb { font-size: 1.1em; line-height: 1.6; color: #e0f2f1; }

/* Carousel Container */
.mnm-carousel-container { position: relative; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; }
.mnm-carousel-wrapper { flex-grow: 1; overflow: hidden !important; padding: 10px 0; cursor: grab; }
.mnm-carousel-wrapper.active { cursor: grabbing; user-select: none; }
.mnm-carousel-track { display: flex; gap: 30px; padding: 0 10px; will-change: transform; transition: transform 0.3s ease; }

/* Individual Cards */
.mnm-card { flex: 0 0 320px; background: #ffffff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; justify-content: space-between; text-align: left; position: relative; user-select: none; }
.mnm-card-content { padding: 15px 25px 20px 25px; position: relative; flex-grow: 1; } 
.mnm-card-content h4 { margin-top: 50px; font-size: 1.5em; font-weight: bold; color: #333333; margin-bottom: 15px; line-height: 1.3; }

/* --- **MODIFIED**: Card Text Scrolling and Gradient Overlay --- */
.mnm-card-text-wrapper {
    position: relative; /* This is the anchor for the gradient and arrow */
}
.mnm-card-text { 
    font-size: 1em; line-height: 1.6; color: #666666; 
    height: 120px; 
    overflow-y: auto; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
    padding-bottom: 30px;
}
.mnm-card-text::-webkit-scrollbar { display: none; }

/* The new gradient overlay, created with a pseudo-element */
.is-scrollable .mnm-card-text-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to top, rgba(255,255,255,1) 40%, rgba(255,255,255,0) 100%);
    pointer-events: none; /* Allows the mouse to scroll the text underneath */
    z-index: 2;
}

/* The scroll down arrow */
.mnm-scroll-indicator { 
    display: none; /* Hidden by default */
    position: absolute; 
    bottom: 0; /* Positioned at the bottom of the wrapper */
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%; 
    height: 30px; 
    text-align: center; 
    pointer-events: none;
    z-index: 3; /* Highest layer to be on top of the gradient */
}
.mnm-scroll-indicator::after { 
    content: '▼'; 
    font-size: 18px; 
    color: #008577; 
    animation: bounce 2s infinite; 
    cursor: pointer; 
    pointer-events: all; /* Make the arrow itself clickable */
}
.is-scrollable .mnm-scroll-indicator { display: block; } /* Show the arrow when needed */
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-4px); } }
/* --- End of Modified Section --- */


/* Card Footer with Feedback */
.mnm-card-footer { border-top: 1px solid #eeeeee; padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; }
.mnm-card-feedback-display { display: flex; gap: 20px; }
.mnm-vote-count { display: flex; align-items: center; font-size: 1em; color: #555555; }
.mnm-vote-count .icon { font-size: 1.1em; margin-right: 5px; }
.mnm-card-feedback-actions { display: flex; gap: 10px; margin-left: auto; }
.mnm-thumb-btn { background: #f0f0f0; border: none; border-radius: 50%; width: 38px; height: 38px; font-size: 1.1em; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; color: #555555; pointer-events: auto; }
.mnm-thumb-btn:hover:not(:disabled) { background-color: #e0e0e0; transform: translateY(-2px); }
.mnm-thumb-btn.voted-up { background-color: #008577; color: white; }
.mnm-thumb-btn.voted-down { background-color: #FF6801; color: white; }
.mnm-thumb-btn:disabled { cursor: not-allowed; opacity: 0.6; }

/* Hot Topic Badge & Nav Buttons */
.mnm-hot-topic-badge { position: absolute; top: 0px; left: 0px; background-color: #FF6801; color: #000000; padding: 8px 12px; border-radius: 12px 0 12px 0; font-size: 1em; font-weight: bold; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); z-index: 5; }
.mnm-carousel-nav { background: #ffffff; border: none; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); z-index: 10; transition: all 0.3s ease; color: #333; font-size: 1.5em; flex-shrink: 0; }
.mnm-carousel-nav:hover { background-color: #e0f2f1; color: #008577; transform: scale(1.05); }
.mnm-carousel-nav svg { width: 24px; height: 24px; stroke: currentColor; }
.mnm-carousel-prev { margin-right: -25px; }
.mnm-carousel-next { margin-left: -25px; }
.no-tips-message { font-size: 1.1em; color: #e0f2f1; text-align: center; width: 100%; margin-top: 20px; }