.visu-wrapper{
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
    overflow:hidden;
}


/* ================= MAIN CONTAINER ================= */
.visu-container-fluid{
    max-width:1200px;
    width:100%;
    margin:0 auto;
    box-sizing:border-box;
}


/* ================= INNER CONTENT WRAPPER ================= */
.visu-inner-container{
    width:100%;
    max-width:100%;
    margin:0 auto;
    padding:0;
}


/* SEARCH + FILTER CARD */
.visu-controls {
    width: 100% !important;
    max-width: 100% !important;
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    margin: 0 auto 40px auto !important;
    border: 1px solid #DEE6ED;
    box-sizing: border-box;
    display: block;
}

/* SEARCH */
.visu-search-wrap {
    position: relative;
    margin-bottom: 24px;
    width: 100% !important;
}
.visu-search-wrap i {
    position: absolute;
    left: 18px;
    top: 52%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}
.visu-search {
    width: 100% !important;
    padding: 18px 22px 18px 48px;
    border-radius: 18px;
    border: 1px solid #EFF7FF;
    font-size: 15px;
    background: #f8fbff;
    box-sizing: border-box;
    display: block;
}

/* FILTER ROW */
.visu-filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100% !important;
    box-sizing: border-box;
}
.visu-filter-row label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Plus Jakarta Sans';
    font-size: 14px;
    font-weight: 400;          
    line-height: 120%;         
    color: #000000;
}

.visu-filter-row select, #visu-clear {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px;
    background: #EFF7FF;
    color: #1B2232;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0 14px;
    cursor: pointer;
    box-sizing: border-box;
    display: block;
}
#visu-clear {
    background: #f8fbff;
}

/* CLEAR BUTTON */
.visu-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #f8fbff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #475569;
    transition: .25s;
    width: 100% !important;
    box-sizing: border-box;
}
.visu-clear-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

/* GRID CONTAINER */
.visu-grid-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    display: block;
}

/* GRID */
.visu-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

/* CARD */
.visu-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 420px;
    background: #ffffff;
    border: 1px solid #DEE6ED;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    transition: .3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    margin: 0 !important;
}
.visu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
}

/* THUMB */
.visu-thumb {
    height: 192px;
    background: #f4f7ff;
    position: relative;
    overflow: hidden;
}
.visu-thumb img, .visu-thumb video {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}


/* SUBJECT ICON */
.visu-subject-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px; 
    opacity: .35;
    pointer-events: none;
    width: 60px; 
    height: 60px; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.2); 
}

/* BADGES */
.visu-badges {
    position: absolute;
    top: 12px;
    left: 12px; 
    right: 12px; 
    display: flex;
    justify-content: space-between;
}
.visu-badge {
    font-family: 'Plus Jakarta Sans';
    padding: 2px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid; /* border color = text color */
}

/* CONTENT */
.visu-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.visu-title {
    font-family: 'Space Grotesk'; 
    font-size: 20px;
    font-weight: 700;           
    line-height: 120%;         
    color: #000000;             
    margin-bottom: 8px !important;
    text-decoration: none !important;      
}
.visu-desc {
    font-family: 'Plus Jakarta Sans'; 
    font-size: 14px;
    font-weight: 400;         
    line-height: 120%;         
    color: #525F7A;            
    margin-bottom: 16px;
}
.visu-stats {
    display: flex;
    gap: 16px;                     
    font-family: 'Plus Jakarta Sans'; 
    font-size: 14px;               
    font-weight: 400;              
    line-height: 120%;             
    color: #525F7A;                
    margin-bottom: 16px;
}
.visu-category {
    padding-right: 20px;
}


/* FOOTER */
.visu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 16px;
}
.visu-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif; 
    font-size: 14px;               
    font-weight: 400;              
    line-height: 120%;             
    color: #525F7A;                
    margin-top: 25px;
    margin-bottom: 9px;
}

.visu-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.visu-follow {
    background: #5b7cfa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 16px;
    font-weight:700;
    font-family: 'Plus Jakarta Sans';
    margin-top:10px !important;
}

/* Remove underline from all card text and links */
.visu-card, .visu-card *, .visu-title, .visu-title a, .visu-author, .visu-author a, .visu-desc, .visu-stats, .visu-badge {
    text-decoration: none !important;
}

/* ================= RESPONSIVE UPDATES ================= */

/* Tablet */
@media (max-width:1024px){
    .visu-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

/* Mobile */
@media (max-width:767px){
    .visu-container-fluid{
        padding:30px 16px;
    }
    .visu-filter-row {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    width: 100% !important;
    box-sizing: border-box;
}
    .visu-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .visu-card{
        height:auto;
        min-height:unset;
    }
}