
/* ==========================================================
   TN EVENT SYSTEM 5.1 CLEAN FINAL UI
========================================================== */


/* ==========================================================
   GRID SYSTEM (ALL VIEWS SAME)
========================================================== */

.tn-event-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;

    width:100%;
    max-width:1400px;
    margin:30px auto;
    padding:0 20px;
}

@media (max-width:1200px){
    .tn-event-grid{ grid-template-columns:repeat(3, 1fr); }
}

@media (max-width:900px){
    .tn-event-grid{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width:600px){
    .tn-event-grid{ grid-template-columns:1fr; max-width:500px; }
}


/* ==========================================================
   CARD SYSTEM (UNIFIED)
========================================================== */

.tn-event-card{
    display:flex;
    flex-direction:row;
    align-items:stretch;

    width:100%;
    min-height:110px;

    background:#fff;
    border-radius:12px;
    overflow:hidden;

    text-decoration:none;
    color:#222;

    box-shadow:0 3px 10px rgba(0,0,0,.08);
    transition:0.2s ease;
}

.tn-event-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 25px rgba(0,0,0,.12);
}


/* IMAGE */

.tn-event-image{
    width:110px;
    min-width:110px;
    flex-shrink:0;
}

.tn-event-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}


/* CONTENT */

.tn-event-content{
    flex:1;
    padding:10px 12px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
}


/* ==========================================================
   TYPOGRAPHY (DESKTOP DEFAULT)
========================================================== */

.tn-event-content h3{
    margin:0;
    font-size:18px;
    font-weight:700;
    line-height:1.25;
}

.tn-meta{
    font-size:15px;
    color:#666;
    line-height:1.3;
}


/* ==========================================================
   DASHBOARD LAYOUT
========================================================== */

.tn-dashboard{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;

    width:100%;
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
}

@media(max-width:1000px){
    .tn-dashboard{ grid-template-columns:1fr; }
}

/* Dashboard lists must be vertical */
.tn-dashboard .tn-event-grid{
    display:flex !important;
    flex-direction:column !important;
    gap:12px;
    margin:0;
    padding:0;
}


/* Dashboard slightly compact (BUT NO NEW FONT SIZE HERE) */
.tn-dashboard .tn-event-card{
    min-height:95px;
}


/* ==========================================================
   MOBILE TYPOGRAPHY (FINAL OVERRIDE)
========================================================== */

@media (max-width:700px){

    .tn-event-content h3{
        font-size:13px;
    }

    .tn-meta{
        font-size:11px;
    }

    .tn-dashboard-heading{
        font-size:18px;
    }

    .tn-event-content{
        padding:8px 10px;
    }

    .tn-event-card{
        min-height:90px;
    }
}