.widget-gallery {
    margin: 15px 0;
}

.widget-gallery.horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.widget-gallery.horizontal .widget-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #2a2a2a;
    transition: transform 0.3s ease;
}

.widget-gallery.horizontal .widget-item:hover {
    transform: translateY(-5px);
}

.widget-gallery.horizontal .widget-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.widget-info {
    padding: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
}

.widget-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 4px;
}

.widget-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-meta i {
    font-size: 12px;
}

.widget-meta .fa-heart { color: #ff6b6b; }
.widget-meta .fa-comment { color: #4a90e2; }
.widget-meta .fa-eye { color: #8bc34a; }

.widget-author {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-gallery.vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-gallery.vertical .widget-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-gallery.vertical .widget-item:hover {
    background: #333;
    transform: translateX(5px);
    border-color: #4a90e2;
}

.widget-gallery.vertical .widget-item img {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.widget-gallery.vertical .widget-info {
    position: static;
    background: transparent;
    padding: 0;
    flex: 1;
}

.widget-gallery.vertical .widget-title {
    font-size: 14px;
    margin-bottom: 6px;
    color: #fff;
}

.widget-gallery.vertical .widget-meta {
    margin-bottom: 4px;
}

.widget-gallery.vertical .widget-author {
    font-size: 11px;
}

.widget-footer {
    margin-top: 20px;
    text-align: right;
}

.widget-footer a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.widget-footer a:hover {
    transform: translateX(5px);
}

.widget-footer a:after {

    transition: transform 0.3s ease;
}

.widget-footer a:hover:after {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .widget-gallery.horizontal {
        grid-template-columns: 1fr;
    }
}
.widget-footer {
    margin-top: 20px;
    text-align: center;
}

.widget-footer .btn-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4a90e2, #5c9ce6);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.widget-footer .btn-all i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.widget-footer .btn-all:hover {
    background: linear-gradient(135deg, #5c9ce6, #6aa9f0);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.5);
}

.widget-footer .btn-all:hover i {
    transform: translateX(5px);
}

.widget-footer .btn-all:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .widget-footer .btn-all {
        max-width: 100%;
        padding: 10px 20px;
    }
}