/* journal_thumb.css - Beautiful card styling for journal thumbnails */

.card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
    border-radius: 22px;
    box-shadow: 0 6px 24px rgba(60, 72, 88, 0.16);
    padding: 28px 20px 22px 20px;
    margin: 22px 14px 22px 0;
    transition: box-shadow 0.3s, transform 0.3s;
    border: none;
    position: relative;
    overflow: hidden;
}

/* If cards are in a flex container, add gap for modern browsers */
.card-row, .card-container, .row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 18px;
}
.card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #4ecca3 0%, #3b82f6 80%, transparent 100%);
    opacity: 0.12;
    z-index: 0;
.card:hover {
    box-shadow: 0 8px 32px rgba(60, 72, 88, 0.18);
    transform: translateY(-4px) scale(1.03);
}
.card:hover {
    box-shadow: 0 8px 32px rgba(60, 72, 88, 0.18);
    transform: translateY(-4px) scale(1.03);
}
.card h5 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a2233;
    margin-bottom: 12px;
    letter-spacing: 0.7px;
    z-index: 1;
    position: relative;
}
.card strong {
    color: #3b5998;
    font-weight: 700;
    letter-spacing: 0.2px;
    z-index: 1;
    position: relative;
}
/* Beautiful animated button */
.card a.clm-btn.success {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 32px;
    background: linear-gradient(90deg, #4ecca3 0%, #3b82f6 100%);
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.08rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(76, 204, 163, 0.18);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.card a.clm-btn.success::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1), height 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 0;
}
.card a.clm-btn.success:hover {
    background: linear-gradient(90deg, #3b82f6 0%, #4ecca3 100%);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.22);
    transform: translateY(-2px) scale(1.04);
}
.card a.clm-btn.success:hover::after {
    width: 220px;
    height: 220px;
}
.card a.clm-btn.success span {
    position: relative;
    z-index: 1;
}
.card .col-md-12 {
    margin-bottom: 8px;
}

/* Responsive styles for mobile devices */
@media (max-width: 600px) {
    .card {
        padding: 14px 6px 10px 6px;
        border-radius: 14px;
        margin: 10px 0;
        box-shadow: 0 2px 8px rgba(60, 72, 88, 0.10);
    }
    .card h5 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    .card .col-md-12 {
        margin-bottom: 5px;
        padding: 0 1px;
    }
    .card a.clm-btn.success {
        width: 100%;
        padding: 12px 0;
        font-size: 1.01rem;
        text-align: center;
        border-radius: 22px;
    }
}
}