/* ========================================
   Home Page Events Widget Styles
   Based on DCA Template Design
   ======================================== */

.ue-section{
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    color:#1e293b;
}

.ue-section a{text-decoration:none}

.ue-section .ue-wrap{
    background:linear-gradient(180deg,#E9E6DE,#f4f2ec 60%,#efece6);
    padding:36px 44px;
    box-shadow:0 4px 18px rgba(0,0,0,.06);
    width:100%;
}

.ue-section .ue-head{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:16px;
    margin-bottom:20px;
}

.ue-section .ue-head h2{
    grid-column:2;
    margin:0;
    font-size:34px;
    line-height:1.2;
    font-weight:800;
    color:#1e293b;
    text-align:center;
    position:relative;
}

.ue-section .ue-head h2::before,
.ue-section .ue-head h2::after{
    content:"";
    display:inline-block;
    width:56px;
    height:4px;
    border-radius:999px;
    background:#6C4A31;
    vertical-align:middle;
    margin:0 10px;
}

.ue-section .ue-accent{color:#C7362D}

.ue-section .ue-viewall{
    display:inline-block;
    padding:10px 16px;
    border:2px solid #6C4A31;
    color:#6C4A31;
    border-radius:999px;
    font-weight:700;
    justify-self:end;
}
.ue-section .ue-viewall:hover{
    background:#6C4A31;
    color:#fff;
}

.ue-section .ue-grid{
    display:grid;
    gap:18px;
    grid-template-columns:1fr;
}
@media (min-width:768px){
    .ue-section .ue-grid{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1100px){
    .ue-section .ue-grid{grid-template-columns:repeat(3,1fr)}
}

.ue-section .ue-card{
    position:relative;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 8px 22px rgba(0,0,0,.08);
    display:flex;
    flex-direction:column;
    height:100%;
}

.ue-section .ue-img img{
    width:100% !important;
    height:240px !important;
    object-fit:contain !important;
    display:block;
    background:#fff;
}

.ue-section .ue-date-stub{
    position:absolute;
    top:14px;
    left:14px;
    display:flex;
    align-items:center;
    gap:10px;
    background:linear-gradient(90deg,#6C4A31,#7a573d);
    color:#fff;
    border-radius:999px;
    box-shadow:0 6px 14px rgba(0,0,0,.15);
    padding:8px 12px;
    white-space:nowrap;
}

.ue-section .ue-badge{
    position:absolute;
    top:14px;
    right:14px;
    background:#C7362D;
    color:#fff;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    box-shadow:0 6px 14px rgba(0,0,0,.15);
}
.ue-section .ue-badge-weekly{background:#C7362D}

.ue-section .ue-date-day{font-size:20px;font-weight:800}
.ue-section .ue-date-month{font-size:12px;font-weight:700;text-transform:uppercase}

.ue-section .ue-date-stub::after{
    content:"";
    position:absolute;
    right:-8px;
    top:50%;
    transform:translateY(-50%);
    width:16px;
    height:16px;
    border-radius:50%;
    background:#efece6;
    box-shadow:0 0 0 6px #6C4A31;
}

.ue-section .ue-content{
    padding:14px 14px 16px;
    display:flex;
    flex-direction:column;
    gap:8px;
    flex:1;
}

.ue-section .ue-title{margin:0;font-size:20px;font-weight:800}
.ue-section .ue-title a{color:#1e293b}
.ue-section .ue-title a:hover{color:#6C4A31}

.ue-section .ue-meta{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
    font-size:13px;
    color:#475569;
}
.ue-section .ue-meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:#f4f2ec;
    border:1px solid #e5dfd4;
    border-radius:999px;
    padding:6px 10px;
}
.ue-section .ue-meta span:nth-child(1)::before{content:"📅"}
.ue-section .ue-meta span:nth-child(2)::before{content:"⏰"}
.ue-section .ue-meta span:nth-child(3)::before{content:"📍"}

.ue-section .ue-btn{
    margin-top:10px;
    display:inline-block;
    align-self:flex-start;
    padding:10px 16px;
    background:#6C4A31;
    color:#fff;
    border-radius:10px;
    font-weight:700;
    transition:transform .15s ease,box-shadow .15s ease;
}
.ue-section .ue-btn:hover{
    background:#1f1712;
    transform:translateY(-1px);
    box-shadow:0 10px 16px rgba(0,0,0,.12);
}

.ue-section .ue-no-events {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #475569;
}

/* Remove bottom border for events without time */
.ue-card.ue-no-time,
.ue-card.ue-no-time .ue-content,
.ue-card.ue-no-time a {
    border-bottom: none !important;
    border-color: transparent !important;
}

/* Tablet Responsive Styles */
@media (max-width:768px){
    .ue-section .ue-wrap{padding:32px 24px}
    
    .ue-section .ue-head{
        grid-template-columns:1fr;
        gap:16px;
    }
    
    .ue-section .ue-head h2{
        grid-column:1;
        font-size:30px;
    }
    
    .ue-section .ue-head h2::before{display:none}
    .ue-section .ue-head h2::after{
        display:block;
        width:52px;
        height:3px;
        background:#6C4A31;
        margin:10px auto 0;
    }
    
    .ue-section .ue-viewall{
        justify-self:center;
        width:100%;
        max-width:200px;
        text-align:center;
    }
}

/* Mobile Responsive Styles */
@media (max-width:480px){

    .ue-section .ue-wrap{padding:24px 16px}

    .ue-section .ue-head{
        grid-template-columns:1fr;
        gap:14px;
    }

    .ue-section .ue-head h2{
        grid-column:1;
        font-size:24px;
        line-height:1.3;
    }

    .ue-section .ue-head h2::before{display:none}
    .ue-section .ue-head h2::after{
        display:block;
        width:44px;
        height:3px;
        background:#6C4A31;
        margin:8px auto 0;
    }

    .ue-section .ue-viewall{
        justify-self:center;
        width:100%;
        padding:12px 20px;
        font-size:14px;
    }

    .ue-section .ue-img img{
        height:auto !important;
        max-height: 260px;
        object-fit:contain !important;
        object-position:Center !important;
        background:#fff;  
    }

    .ue-section .ue-date-stub{padding:6px 10px}
    .ue-section .ue-date-day{font-size:18px}
    .ue-section .ue-date-month{font-size:11px}
    
    .ue-section .ue-title{font-size:18px}
    .ue-section .ue-meta{font-size:13px}
    .ue-section .ue-btn{padding:9px 14px;font-size:14px}
}
