.card-course-title {
    display: block; 
    line-height: 1.2em; 
    min-height: 2.4em; 
    white-space: pre-wrap; 
}
.category-card {
    position: relative;
    height: 210px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: white;
    font-weight: bold;
    padding: 15px;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}



.cta-card-modern {
    background: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    color: #1d2b50; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-card-modern::before {
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: linear-gradient(135deg, #ffffff 0%, #e9f2ff 100%);
    opacity:0.7;
    z-index:0;
}

.cta-icon {
    width:70px;
    height:70px;
    border-radius:50%;
    background:rgb(255, 201, 27);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:28px;
    margin:0 auto 20px;
    box-shadow:0 4px 10px rgba(0,0,0,0.25);
    z-index:2;
    position:relative;
}

.cta-title {
    font-weight:700;
    font-size:1.6rem;
    margin-bottom:12px;
    position:relative;
    z-index:2;
    color:#0f1d40;
}

.cta-desc {
    font-size:15px;
    color:#344767;
    margin-bottom:25px;
    line-height:1.65;
    position:relative;
    z-index:2;
}

.cta-btn {
    padding:12px 36px;
    font-weight:600;
    z-index:2;
    position:relative;
}

.cta-btn {
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2.5s infinite;
}

.cta-btn {
    background: linear-gradient(90deg, #1e3c72, #2a5298, #1e3c72);
    background-size: 200%;
    animation: gradientMove 3s infinite;
}

@keyframes gradientMove {
    0% { background-position: 0%; }
    50% { background-position: 100%; }
    100% { background-position: 0%; }
}

.card-course-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;       
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    line-height: 1.3em;
    min-height: 3.9em;         
}

.badge-berita-baru {
    background: linear-gradient(135deg, #0d6efd, #4da3ff);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;

    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.35);
    animation: beritaBadgeGlow 2.8s infinite ease-in-out;
}

@keyframes beritaBadgeGlow {
    0%   { box-shadow: 0 0 0px rgba(13,110,253,0.3); }
    50%  { box-shadow: 0 0 12px rgba(13,110,253,0.8); }
    100% { box-shadow: 0 0 0px rgba(13,110,253,0.3); }
}

