/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/
.es-events-wrap { margin-top: 20px; }

.es-event-featured{
  background:#eaf1ff;
  border-radius:12px;
  padding:18px;
  margin-bottom:22px;
}

.es-event-featured-inner{
  display:flex;
  gap:16px;
  align-items:flex-start;
}

.es-date-badge{
  width:62px;
  height:62px;
  border-radius:50%;
  background:#0b3f78;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 62px;
  font-weight:700;
}

.es-date-badge-day{ font-size:16px; line-height:1; text-align:center; }

.es-featured-main{ flex:1; }

.es-featured-date{ font-size:14px; opacity:.85; margin-bottom:6px; }
.es-featured-title{ margin:0 0 10px 0; font-size:22px; line-height:1.2; }
.es-featured-title a{ text-decoration:none; }

.es-featured-image img{
  width:100%;
  max-width:720px;
  height:auto;
  display:block;
  border-radius:10px;
  margin:8px 0 10px;
}

.es-featured-desc{ margin-top:8px; }

.es-featured-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.es-btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:8px;
  background:#0b3f78;
  color:#fff;
  text-decoration:none;
  font-weight:600;
}

.es-btn:hover{ opacity:.9; }

.es-btn-secondary{
  background:#ffffff;
  color:#0b3f78;
  border:2px solid #0b3f78;
}

/* mobiili */
@media (max-width: 640px){
  .es-event-featured-inner{ flex-direction:column; }
  .es-date-badge{ width:56px; height:56px; flex-basis:56px; }
}
.es-events-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:14px;
}

.es-event-row{
  display:flex;
  gap:14px;
  align-items:center;
  background:#eaf1ff;
  border-radius:12px;
  padding:14px 16px;
  text-decoration:none;
}

.es-event-row:hover{ opacity:.95; }

.es-date-badge--small{
  width:58px;
  height:58px;
  flex:0 0 58px;
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.es-date-badge-wd{
  font-size:14px;
  font-weight:700;
}

.es-date-badge-day{
  font-size:14px;
  font-weight:700;
}

.es-row-main{ flex:1; }

.es-row-date{
  font-size:14px;
  opacity:.85;
  margin-bottom:4px;
  color:inherit;
}

.es-row-title{
  font-size:20px;
  font-weight:700;
  color:inherit;
  text-decoration:underline; /* jos haluat saman fiiliksen kuin ennen */
}
