* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mySlides {
    display: block;
    width: 100%;
    height: 90px;
    position: relative;
    background: linear-gradient(135deg, #0a3a0a 0%, #1a5e1a 100%);
    
    overflow: hidden;
    margin: 0px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mySlides:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

.card {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 15px;
}

img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mySlides:hover img {
    transform: scale(1.05);
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.title-block {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-block {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.btn {
    padding: 8px 20px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #0a3a0a;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(255, 215, 0, 0.5);
}

.btn:active {
    transform: scale(0.95);
}

.info {
    position: relative;
    overflow: hidden;
}

.info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.info:hover::before {
    width: 60px;
    height: 60px;
}

/* Background pattern */
.mySlides::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mySlides {
        height: 50px;
        margin: 0;
        overflow:hidden;
    }
    
    .card {
        padding: 0 15px;
        gap: 12px;
    }
    
    img {
        width: 50px;
        height: 50px;
    }
    
    .title-block {
        font-size: 1.1rem;
    }
    
    .text-block {
        font-size: 0.8rem;
        max-width: 150px;
    }
    
    .btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .mySlides {
        height: 50px;
    }
    
    .card {
        padding: 0 12px;
        gap: 10px;
    }
    
    .title-block {
        font-size: 1rem;
    }
    
    .text-block {
        font-size: 0.75rem;
        max-width: 120px;
    }
    
    .btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

/* Animation for card appearance */
.w3-animate-right {
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Card shadow enhancement */
.w3-card-4 {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}