/* ==========================================================
   DC Events & Blog Listing — Frontend Styles
   ========================================================== */

.dcel-wrap{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:#f7f8fb;
  padding: 50px 4% 70px;
  box-sizing: border-box;
}
.dcel-wrap *{ box-sizing: border-box; }

.dcel-container{
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
}

/* ================= SIDEBAR ================= */

.dcel-sidebar{
  background:#ffffff;
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 6px 20px rgba(20,22,28,0.05);
  position: sticky;
  top: 20px;
}

.dcel-filter-heading{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color:#14161c;
  margin-bottom: 24px;
}
.dcel-filter-heading svg{ width: 18px; height: 18px; }

.dcel-filter-group{
  margin-bottom: 26px;
}

.dcel-filter-label{
  font-size: 13.5px;
  font-weight: 700;
  color:#14161c;
  margin-bottom: 14px;
}

.dcel-checkbox{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 14px;
  color:#3d4457;
  margin-bottom: 12px;
  cursor:pointer;
}
.dcel-checkbox input[type="checkbox"]{
  width: 17px;
  height: 17px;
  accent-color: #c99a3c;
  cursor:pointer;
}

.dcel-date-range{
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid #e4e6ee !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color:#14161c !important;
  background:#fff !important;
  box-shadow: none !important;
  cursor:pointer;
  height: auto !important;
  min-height: 0 !important;
}
.dcel-date-range:focus{
  outline: none !important;
  border-color: #c99a3c !important;
  box-shadow: none !important;
}

.dcel-pill-group{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dcel-pill{
  position: relative;
  cursor:pointer;
}
.dcel-pill input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.dcel-pill span{
  display:inline-block;
  padding: 9px 16px;
  border-radius: 20px;
  border: 1.5px solid #e4e6ee;
  font-size: 13px;
  font-weight: 600;
  color:#3d4457;
  transition: all 0.18s ease;
}
.dcel-pill input:checked + span{
  border-color:#c99a3c;
  color:#c99a3c;
  background: rgba(201,154,60,0.08);
}

.dcel-apply-btn{
  width: 100%;
  background:#14162b;
  color:#ffffff;
  border:none;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 700;
  cursor:pointer;
  transition: background 0.2s ease;
  margin-bottom: 26px;
}
.dcel-apply-btn:hover{
  background:#292c4d;
}

.dcel-perks-box{
  background:#14162b;
  border-radius: 12px;
  padding: 22px 20px;
  color:#ffffff;
}
.dcel-perks-box h4{
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}
.dcel-perks-box p{
  font-size: 13px;
  line-height: 1.7;
  color:#c7cbe0;
  margin: 0 0 12px;
}
.dcel-perks-box a{
  font-size: 13px;
  font-weight: 700;
  color:#e0b559;
  text-decoration: underline;
}

/* ================= MAIN CONTENT ================= */

.dcel-top-bar{
  display:flex;
  align-items:center;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.dcel-wrap .dcel-search-wrap{
  flex: 1;
  min-width: 220px;
  position: relative;
  background:#ffffff !important;
  border-radius: 50px !important;
  border: 1.5px solid #e4e6ee !important;
  box-shadow: none !important;
  padding: 4px 20px !important;
  display:flex !important;
  align-items:center;
  gap: 10px;
}
.dcel-wrap .dcel-search-wrap svg{ width: 18px; height: 18px; flex-shrink:0; }

.dcel-wrap .dcel-search-input{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  margin: 0 !important;
  flex:1;
  width: 100%;
  font-size: 14.5px !important;
  color:#14161c !important;
  font-family: inherit !important;
  height: auto !important;
  min-height: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  line-height: normal !important;
}
.dcel-wrap .dcel-search-input::placeholder{ color:#8a8f9c !important; opacity: 1; }
.dcel-wrap .dcel-search-input:focus{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ---- Active date filter banner (shown after clicking a calendar day) ---- */
.dcel-active-date-filter{
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef1fb;
  border: 1px solid #d7deee;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  grid-column: 1 / -1;
}
.dcel-active-date-text{
  font-size: 13.5px;
  font-weight: 700;
  color: #14161c;
}
.dcel-clear-date-filter{
  background: #14162b !important;
  color: #ffffff !important;
  border: none !important;
  padding: 7px 14px !important;
  border-radius: 20px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.dcel-clear-date-filter:hover{
  background: #292c4d !important;
}

.dcel-view-toggle{
  display:flex !important;
  background: #eef1fb !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 4px !important;
  gap: 4px;
  flex-shrink: 0;
}

.dcel-view-btn{
  display:flex !important;
  align-items:center !important;
  justify-content: center;
  gap: 7px;
  border:none !important;
  background:transparent !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color:#565b6b !important;
  cursor:pointer;
  transition: all 0.18s ease;
  box-shadow: none !important;
}
.dcel-view-btn svg{ width: 15px; height: 15px; }
.dcel-view-btn.active{
  background:#ffffff !important;
  color:#14162b !important;
  box-shadow: 0 2px 8px rgba(20,22,28,0.10) !important;
}

/* ---- Events grid / cards ---- */

.dcel-events-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dcel-card{
  background:#ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(20,22,28,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dcel-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20,22,28,0.10);
}

.dcel-card-media{
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background:#dfe3ee;
}
.dcel-card-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.dcel-card-media-fallback{
  width:100%;
  height:100%;
  background: linear-gradient(135deg, #dfe3ee, #c9cde3);
}

.dcel-date-badge{
  position:absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(20,22,28,0.72);
  color:#ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
}

.dcel-card-body{
  padding: 22px 22px 24px;
}

.dcel-card-title{
  font-size: 17px;
  font-weight: 700;
  color:#14161c;
  margin: 0 0 8px;
  line-height: 1.4;
}

.dcel-card-location{
  display:flex;
  align-items:center;
  gap: 7px;
  font-size: 13px;
  color:#565b6b;
  margin-bottom: 14px;
}
.dcel-card-location svg{ width:14px; height:14px; flex-shrink:0; }

.dcel-card-desc{
  font-size: 13.5px;
  line-height: 1.7;
  color:#565b6b;
  margin: 0 0 18px;
}

.dcel-readmore-btn{
  display:inline-block !important;
  border: 1.5px solid #14162b !important;
  color:#14162b !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.dcel-readmore-btn,
.dcel-readmore-btn:link,
.dcel-readmore-btn:visited,
.dcel-readmore-btn:hover,
.dcel-readmore-btn:active,
.dcel-readmore-btn:focus{
  text-decoration: none !important;
  text-decoration-line: none !important;
  box-shadow: none !important;
}
.dcel-readmore-btn:hover{
  background:#14162b !important;
  color:#ffffff !important;
}

.dcel-empty-state,
.dcel-no-results{
  text-align:center;
  padding: 50px 20px;
  color:#565b6b;
  font-size: 14.5px;
  grid-column: 1 / -1;
}

/* ---- Calendar view ---- */

.dcel-calendar-view{
  background:#ffffff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(20,22,28,0.05);
}

.dcel-calendar-header{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 24px;
  margin-bottom: 20px;
  font-weight: 700;
  color:#14161c;
  font-size: 16px;
}

.dcel-cal-nav{
  background:#f2f3f8;
  border:none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor:pointer;
  color:#14161c;
}
.dcel-cal-nav:hover{ background:#e4e6ee; }

.dcel-calendar-grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.dcel-cal-dow{
  text-align:center;
  font-size: 12px;
  font-weight: 700;
  color:#8a8f9c;
  padding: 8px 0;
}

.dcel-cal-cell{
  min-height: 78px;
  border-radius: 8px;
  background:#f7f8fb;
  padding: 8px;
  font-size: 12.5px;
  color:#565b6b;
  position: relative;
}
.dcel-cal-cell.dcel-cal-empty{
  background: transparent;
}
.dcel-cal-cell.dcel-cal-has-events{
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}
.dcel-cal-cell.dcel-cal-has-events:hover{
  background: #eef1fb;
  border-color: #c99a3c;
}
.dcel-cal-cell .dcel-cal-daynum{
  font-weight: 700;
  color:#14161c;
  display:block;
  margin-bottom: 4px;
}
.dcel-cal-cell .dcel-cal-event-dot{
  display:block;
  font-size: 11px;
  background: #c99a3c;
  color:#ffffff;
  border-radius: 4px;
  padding: 2px 5px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= UTILITY ================= */

.dcel-hidden{
  display: none !important;
}

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

@media (max-width: 1024px){
  .dcel-container{
    grid-template-columns: 260px 1fr;
    gap: 22px;
  }
  .dcel-events-grid{ gap: 18px; }
}

@media (max-width: 860px){
  .dcel-container{
    grid-template-columns: 1fr;
  }
  .dcel-sidebar{
    position: relative;
    top: 0;
  }
  .dcel-events-grid{
    grid-template-columns: 1fr;
  }
  .dcel-calendar-grid{
    grid-template-columns: repeat(7, minmax(0,1fr));
  }
  .dcel-cal-cell{
    min-height: 60px;
    padding: 5px;
    font-size: 11px;
  }
}

@media (max-width: 560px){
  .dcel-wrap{ padding: 34px 4% 50px; }
  .dcel-sidebar{ padding: 20px 18px; }
  .dcel-top-bar{
    flex-direction: column;
    align-items: stretch;
  }
  .dcel-view-toggle{
    justify-content: center;
  }
  .dcel-card-media{ height: 180px; }
  .dcel-cal-cell .dcel-cal-event-dot{
    font-size: 9px;
    padding: 1px 3px;
  }
}
