/**
 * @package     CiviCSES
 * @author      Adam Wood
 * @copyright   Adapted from iCagenda 'Rounded' theme by Lyr!C (JoomliC).
 */

/* Basic layout and styling */

.crm-event-list .event {
  margin: 2% 0;
  padding: 0.5%;
  border-radius: 6px;
}

.crm-event-list .event.odd-row {
  background: #f8f8f8;
}

.crm-event-list .event.even-row {
  background: #fcfcfc;
}

.crm-event-list .image {
  width: 18%;
  height: 80px;
  padding: 3%;
  padding-top: 25px;
  margin: 0.5%;
  float: left;
  text-align: center;
  text-shadow: #000000 2px 2px 10px;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  border: #dddddd solid 1px;
  border-radius: 4px;
  background-color: #dddddd;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.crm-event-list .date-day {
  line-height: 40px;
  font-size: 40px;
  font-weight: bold;
  margin: 0 -6%;
}

.crm-event-list .date-month {
  line-height: 24px;
  font-size: 24px;
  letter-spacing: 0;
  margin-left: 0;
  font-weight: normal;
}

.crm-event-list .date-year {
  line-height: 17px;
  font-size: 15px;
  letter-spacing: 2px;
  margin-left: 3px;
  font-weight: bold;
}

.crm-event-list .info {
  width: 72%;
  margin: 1%;
  float: left;
}

.crm-event-list .category {
  float: right;
  margin: 0 0 0 1em;
  font-size: 13px;
  line-height: 20px;
  font-weight: bold;
  text-align: right;
}

.crm-event-list .title {
  border-bottom: 1px solid #cccccc;
  margin: 0 0 5px 0;
  padding-bottom: 5px;
  font-size: 20px;
  line-height: 24px;
  font-weight: bold;
}

.crm-event-list .datetime {
  margin: 5px 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 24px;
}

.crm-event-list .location {
  margin: 5px 0;
  font-size: 14px;
}

.crm-event-list .summary {
  margin: 5px 0;
  font-size: 12px;
}

.crm-event-list .location + .summary {
  border-top: 1px solid #cccccc;
  padding-top: 5px;
}

.crm-event-list .registration-link {
  margin: 5px 0;
}



/* Mini-list styling (overrides) */

.crm-event-list .event {
  margin: 0 0 4px 0;
  padding: 0;
}

.crm-event-list.mini .image {
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 4px 6px 4px 4px;
}

.crm-event-list.mini .date-day {
  margin-top: 2px;
  line-height: 18px;
  font-size: 16px;
}

.crm-event-list.mini .date-month {
  line-height: 12px;
  font-size: 12px;
}

.crm-event-list.mini .title {
  line-height: 15px;
  font-size: 13px;
  padding: 0;
  border: none;
}

.crm-event-list.mini .title a {
  color: #000000;
}

.crm-event-list.mini .datetime,
.crm-event-list.mini .location,
.crm-event-list.mini .link-all {
  line-height: 15px;
  font-size: 12px;
  font-weight: normal;
}

.crm-event-list.mini .datetime + .location {
  margin-top: -3px;
}


/* Event info page styling (overrides) to match listing pages */

#crm-main-content-wrapper .event-info > .crm-section:not(.event_description-section):not(.event_summary-section)
{
  background: #f8f8f8;
  border: #dddddd solid 1px;
  border-radius: 4px;
  padding: 5px;
  margin: 5px 0;
}

#crm-main-content-wrapper .event-info .crm-section .label
{
  font-weight: bold;
}

#crm-main-content-wrapper .event-info .crm-section.event_summary-section
{
  margin-bottom: 20px;
  font-size: 120%;
  line-height: 120%;
}

/* Not needed when access CiviEvent permission not granted to front-end
#crm-participant-links
{
  display: none;
}
*/


/* Category-specific styling */

.crm-event-list .event-type-for-everyone .category {
  color: #128410;
}

.crm-event-list .event-type-for-industry .category {
  color: #007e87;
}

.crm-event-list .event-type-school-family .category {
  color: #8c56cf;
}

.crm-event-list .event-type-social .category {
  color: #926b00;
}
