/**
 * Test Block 1 Styles
 * 
 * Custom styles for Test Block 1
 * Uses Tailwind CSS classes with additional custom CSS
 */

/* Custom styles for Show Post By Category Block */
.vortex-show-post-by-category {
    /* Base styles */
    position: relative;
    overflow: hidden;
}

/* Custom animations */
.vortex-show-post-by-category {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.vortex-show-post-by-category:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease-in-out;
}

/* Custom button styles */
.vortex-show-post-by-category .inline-block {
    position: relative;
    overflow: hidden;
    width: 1.31rem;
}

.vortex-show-post-by-category .inline-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.vortex-show-post-by-category .inline-block:hover::before {
    left: 100%;
}

/* Print styles */
@media print {
    .vortex-show-post-by-category {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
}

.desktop-category {
    display: none;
}
.mobile-category {
    display: flex;
}  

  @media (min-width: 768px) {
    .desktop-category {
      display: flex;
    }
    .mobile-category {
        display: none;
      }
}


  
.vortex-show-post-by-category .desktop-category .category-item {
    border-radius: 1.9375rem;
    box-shadow: 0 0 0.75rem 0 rgba(0, 0, 0, 0.15);
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #002856;
    background: #fff;
    transition: background 0.15s ease, color 0.1s ease, box-shadow 0.3s, border 0.3s;
    text-transform: uppercase;
}
.vortex-show-post-by-category .desktop-category .category-item svg {
width: 20px;
    height: 20px;
}
.vortex-show-post-by-category .desktop-category .category-item a{
    color: #002856;
}
.vortex-show-post-by-category .desktop-category .category-item:hover {
    background: #52CEE6;   
}
.vortex-show-post-by-category .desktop-category .category-item.active {
    background: #002856;
    border-color: #002856;
    box-shadow: 0px 2px 16px 0px rgba(0, 40, 86, 0.18);
	color: #fff;
}
.vortex-show-post-by-category .desktop-category .category-item.active svg, .vortex-show-post-by-category .desktop-category .category-item.active svg path{
	stroke: #ffffff;
}
.vortex-show-post-by-category .desktop-category .category-item.active .icon {
    filter: invert(1);
}

.vortex-show-post-by-category .desktop-category .category-item.active a{
    color: #fff;
}

/* ================= MOBILE CATEGORY DROPDOWN ================= */
.mobile-category {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
    z-index: 10;
}
#mobileDropdownToggle {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #F5F5F5;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s, color 0.1s, box-shadow 0.3s, border 0.3s;
}
#mobileDropdownCaret {
    transition: transform 0.3s;
}

.mobile-dropdown-menu {
    position: absolute;
    top: 200%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #F5F5F5;
    border-radius: 16px;
    box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.15);
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s, visibility 0.3s;
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    list-style: none;
}
.mobile-dropdown-menu.closed {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
.mobile-dropdown-menu.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
.mobile-dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    transition: background 0.15s;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}
.mobile-dropdown-option:last-child {
    border-bottom: none;
}
.mobile-dropdown-option:hover,
.mobile-dropdown-option.active {
    background: #f5f5f5;
}
@media (min-width: 768px) {
    .mobile-category {
        display: none;
    }
}
/* ================= END MOBILE CATEGORY DROPDOWN ================= */

#posts-group-content a{    
    border: 1px solid #52CEE6;
}