:root {
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --large-desktop: 1200px;
}

/* ================= WRAPPER ================= */
.visu-wrapper{
    max-width:100%;
    width:100%;
    margin:auto;
    font-family:'Space Grotesk';
    padding:0 15px;
    box-sizing:border-box;
}

/* ================= SEARCH ================= */
.visu-search{
    width:100%;
    padding:16px 20px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    font-size:15px;
    margin-bottom:25px;
    background:#fff;
    box-sizing:border-box;
    transition: all 0.3s ease;
}

.visu-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.visu-search::placeholder {
    color: #9ca3af;
}
 
/* ================= FILTERS ================= */
.visu-filters{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    margin-bottom:35px;
}
 
.visu-filter-group {
    display:flex;
    flex-direction:column;
    gap:8px;
}
 
.visu-filters select{
    width:100%;
    border-radius:10px;
    border:1px solid #e5e7eb;
    background:#fff;
    font-size:14px;
    cursor:pointer;
    box-sizing:border-box;
    transition: all 0.3s ease;
}
 
.visu-filters select:focus{
    outline:none;
    border-color:#3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
 
/* ================= GRID ================= */
.visu-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
    gap:28px;
}
 
/* ================= CARD ================= */
.visu-card{
    background:#fff;
    border-radius:10px;
    height:702px; 
    overflow:hidden;
    box-shadow:0 18px 50px rgba(0,0,0,.08);
    display:flex;
    flex-direction:column;
    transition:.25s ease;
    cursor:pointer;
    text-decoration:none;
    color:inherit;
    padding:20px 17px 20px 17px;
    box-sizing:border-box;
}
 
.visu-card:hover{
    transform:translateY(-6px);
    box-shadow:0 25px 60px rgba(0,0,0,.12);
}
 
/* ================= IMAGE ================= */
.visu-thumb{
    width:100%;
    height:210px;
    object-fit:cover;
    border-radius: 8px;
}
 
/* ================= CONTENT ================= */
.visu-content{
    padding:22px 10px 20px 10px;
    flex:1;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
}
 
/* ================= SUBJECT BADGE ================= */
.visu-subject{
    display:inline-block;
    background:none;
    color:#2563eb;
    font-size:13px;
    font-weight:600;
}
 
.visu-title{
    font-size:19px;
    font-weight:700;
    margin:0 0 10px;
    font-family: 'Space Grotesk';
    text-decoration:none !important;
    line-height:1.3;
    color: #1f2937;
}
 
.visu-excerpt{
    font-size:14px;
    color:#555;
    line-height:1.5;
    font-family: 'Plus Jakarta Sans';
    margin-bottom:18px;
    text-decoration:none !important;
}
 
/* ================= ORGANIZER SECTION ================= */
.visu-organizer-section {
    margin-bottom:18px;
    text-decoration:none !important;
    position:relative;
}
 
.visu-organizer-content {
    display:flex;
    align-items:center;
    gap:10px;
}
 
.visu-organizer-icon {
    width:36px;
    height:36px;
    border-radius:30px;
    background-color:rgba(152, 211, 251, 0.5);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#3b82f6;
    font-size:16px;
    border:1px solid #e2e8f0;
    text-decoration:none !important;
    flex-shrink:0;
    overflow: hidden;
}
 
.visu-organizer-info {
    flex:1;
    min-width:0;
}
 
.visu-organizer-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    text-decoration: none !important;
    line-height: 1.3;
    
    /* Control line breaking at approximately 20 characters */
    max-width: 180px; /* This creates ~20 character limit per line for 14px font */
    
    /* Allow natural wrapping */
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    
    /* Ensure it doesn't overflow */
    overflow: hidden;
    display: block;
}

/* For longer organizer names - ensure they stay within 2 lines */
.visu-organizer-section {
    position: relative;
    padding-right: 100px; 
    min-height: 50px; 
}

.visu-price-tag {
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
    white-space: nowrap;
    text-align: center;
    border: 1px solid transparent;
}
 
.visu-organizer-label {
    font-size:11px;
    color:#6b7280;
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:0.5px;
    text-decoration:none !important;
}
/* ================= PRICE TAG ================= */
.visu-price-tag {
    position:absolute;
    right:0;
    top:0;
    padding:5px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    z-index:1;
    white-space:nowrap;
    text-align:center;
    border:1px solid transparent;
}

.visu-price-tag.color-green {
    background:rgba(34, 195, 93, 0.1); 
    color:#22C35D; 
    border-color:#22C35D; 
}

.visu-price-tag.color-orange {
    background:rgba(244, 157, 37, 0.1); 
    color:#F49D25; 
    border-color:#F49D25; 
}

.visu-price-tag.free-price {
    background:rgba(16, 185, 129, 0.1); 
    color:#10b981; 
    border-color:#10b981; 
}

.visu-price-tag.sold-out {
    background:rgba(107, 114, 128, 0.1); 
    color:#6b7280; 
    border-color:#6b7280; 
}
/* ================= META ================= */
.visu-meta{
    font-size:13px;
    color:#444;
    text-decoration:none !important;
}
 
.visu-meta div{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
    text-decoration:none !important;
}
 
.visu-meta i{
    color:#6b7280;
    width:16px;
    text-align:center;
    flex-shrink:0;
}

/* ================= TARGET & AGE IN ONE ROW ================= */
.visu-target-age-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.visu-target-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.visu-age-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.visu-target-group i.fa-users,
.visu-age-group i.fa-circle {
    color: #6b7280;
    width: 16px;
    text-align: center;
    font-size: 12px;
    flex-shrink:0;
}

.visu-age-group i.fa-circle {
    font-size: 4px !important;
    vertical-align: middle;
    margin-top:5px;
}

.visu-target-text,
.visu-age-text {
    font-size: 13px;
    color: #444;
    white-space: nowrap;
}
 
/* ================= BUTTON (NOW INSIDE CONTENT) ================= */
.visu-btn-container {
    margin-top:auto;
    padding:0px;
}
 
.visu-btn{
    width:100%;
    background:#97D0FA;
    color:#fff;
    padding:12px 22px;
    border-radius:14px;
    font-size:14px;
    font-weight:600;
    text-decoration:none !important;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-sizing:border-box;
    border:none;
    cursor:pointer;
    transition: all 0.3s ease;
}
 
.visu-btn:hover{
    background:#60a5fa;
}
 
/* ================= LOADING SPINNER ================= */
.visu-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px 20px;
}

.visu-loading i {
    font-size: 32px;
    color: #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= NO EVENTS ================= */
.visu-no-events{
    grid-column:1/-1;
    text-align:center;
    padding:60px 20px;
    color:#6b7280;
    font-size:16px;
}
 
.visu-no-events i{
    font-size:48px;
    margin-bottom:20px;
    color:#d1d5db;
}
 
/* REMOVE ALL TEXT DECORATION FROM CARD ELEMENTS */
.visu-card,
.visu-card * {
    text-decoration:none !important;
}
 img.visu-thumb {
    height: 250px;
}
/* ================= RESPONSIVE MEDIA QUERIES ================= */

/* Very Large Desktop (1300px and above) */
@media (min-width: 1300px) {
    .visu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

/* Desktop (1024px to 1299px)*/
@media (min-width: 1024px) and (max-width: 1299px) {
    .visu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .visu-card {
        height: auto;
        min-height: 690px;
    }
    
    .visu-thumb {
        height: 200px;
    }
    
    .visu-content {
        padding: 20px 10px 20px 10px;
    }
    
    .visu-title {
        font-size: 18px;
    }
    
    .visu-excerpt {
        font-size: 13.5px;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .visu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .visu-card {
        height: auto;
        min-height: 680px;
    }
    
    .visu-filters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .visu-thumb {
        height: 190px;
    }
    
    .visu-title {
        font-size: 17px;
    }
    
    .visu-excerpt {
        font-size: 13px;
    }
    
    .visu-organizer-section {
        padding-right: 100px;
    }
    
    .visu-price-tag {
        font-size: 11px;
        padding: 3px 9px;
    }
}

/* Mobile (350px to 767px) */
@media (max-width: 767px) {
    .visu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .visu-card {
        height: auto;
        min-height: 650px;
        padding: 15px;
        margin: 0;
    }
    
    .visu-filters {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .visu-thumb {
        height: 170px;
    }
    
    .visu-content {
        padding: 15px 8px 15px 8px;
    }
    
    .visu-title {
        font-size: 16px;
    }
    
    .visu-excerpt {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .visu-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .visu-organizer-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .visu-organizer-name {
        font-size: 13px;
    }
    
    .visu-organizer-label {
        font-size: 10px;
    }
    
    .visu-organizer-section {
        padding-right: 80px;
        margin-bottom: 15px;
    }
    
    .visu-price-tag {
        font-size: 10px;
        padding: 2px 7px;
    }
    
    .visu-target-age-container {
        gap: 8px;
    }
    
    .visu-target-text,
    .visu-age-text {
        font-size: 12px;
    }
    
    .visu-meta div {
        font-size: 12px;
    }
    
    .visu-search {
        padding: 14px 16px;
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .visu-wrapper {
        padding: 0 10px;
    }
}

/* Very small mobile (349px and below) */
@media (max-width: 349px) {
    .visu-card {
        min-height: 600px;
        padding: 12px;
    }
    
    .visu-thumb {
        height: 140px;
    }
    
    .visu-title {
        font-size: 15px;
    }
    
    .visu-excerpt {
        font-size: 12px;
    }
    
    .visu-btn {
        padding: 9px 14px;
        font-size: 12px;
    }
    
    .visu-organizer-section {
        padding-right: 70px;
    }
    
    .visu-price-tag {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .visu-target-age-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .visu-wrapper {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .visu-grid {
        gap: 30px;
    }
}

/* Medium Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .visu-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
}