/*
1 images
2 title and cta
3 details
4 description
*/

.page-event {
  #m2event {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;

    h2,
    h3,
    a,
    div {
      font-family: 'Inter', sans-serif;
    }
  }
  .images img {
    max-height: 410px;
  }
  .title-and-cta {
    /* margin-bottom: 30px; */
    grid-row: 2
  }
  .title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 8px;
  }
  .subtitle {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 20px;
  }
  .details {
    background: #18599A;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    grid-row: 3;

    h2,
    h3,
    a,
    div {
      color: #fff;
    }

    h2 {
      font-size: 22px;
      line-height: 28px;
      margin-bottom: 25px;
    }
    h3 {
      font-size: 18px;
      line-height: 28px;
    }
    h2,
    h3,
    > div {
      margin: 0 0 10px 0;
    }
    img {
      border: 0;
    }
  }

  .ctas {
    display: flex;
    gap: 20px;
    font-size: 15px;
    line-height: 19px;
    font-weight: 400;
    margin-bottom: 20px;

    a {
      align-items: center;
      border-radius: 4px;
      border: 1px solid;
      display: flex;
      justify-content: center;
      padding: 12px;
      text-align: center;
    }
    .phone {
      border-color: #398339;
    }
    .phone:hover {
      background-color: #e2f2e2;
    }
    .phone img {
      height: 20px;
      width: 20px;
    }
    .website {
      background-color: #AF3535;
      border-color: #AF3535;
      color: #fff;
    }
    .website:hover {
      background-color: #882929;
      border-color: #882929;
    }
    .tickets {
      background-color: #0369CD;
      border-color: #0369CD;
      color: #fff;
    }
    .tickets:hover {
      background-color: #024f9b;
      border-color: #024f9b;
    }
    .cta {
      background-color: #398339;
      border-color: #398339;
      color: #fff;
    }
    .cta:hover {
      background-color: #2a5f2a;
      border-color: #2a5f2a;
    }
  }

  .ctas-1 {
    justify-content: center;
  }
  .ctas-2 {
    display: grid;
    grid-template-columns: repeat(2, calc(50% - 10px));
  }
  .ctas-3 {
    display: grid;
    grid-template-columns: repeat(3, calc(33.333% - 10px));
  }
  .ctas-4 {
    display: grid;
    grid-template-columns: calc(20% - 10px) calc(40% - 10px) calc(40% - 20px);
    .cta {
      grid-column: span 3;
    }
  }
  .details-section {
    display: grid;
    grid-template-columns: 40px auto;
    gap: 12px;
    line-height: 28px;
  }
  .detail-text {
    line-height: 20px;
  }
  .detail-icon {
    background-color: #227dd7;
    border-radius: 10px;
    height: 43px;
    line-height: 20px;
    padding: 10px;
    text-align: center;
    width: 43px;
  }
  .driving-directions {
    margin-top: 5px;

    img {
      margin-right: 12px;
    }
  }
  .details-and-description {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;

      .images {
        width: 305px;
        margin: 0 auto;
        grid-row: 1;
      }
  }
  .description {
    background-color: #fff;
    font-size: 16px;
    overflow-wrap: break-word;
    grid-row: 4;

    h2.about-this-event {
      margin-top: 0;
      font-weight: 500;
      font-size: 18px;
      line-height: 24px;
      margin-bottom: 24px;
    }
    p {
      margin-bottom: 30px;
    }
  }

  .event-detail-ads ins {
    display: block;
    height: 250px;
    margin: 20px auto;
    width: 300px;
  }
  #section-related h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 34px;
    margin-bottom: 20px;
    color: #222;
  }
  .related {
    .event {
      background: #FFFFFF;
      border-radius: 16px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      box-sizing: border-box;
      color: #000;
      display: block;
      margin-bottom: 20px;
      overflow: hidden;
    }

    .event:hover {
      box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.16);
    }
    .is-sponsored > .sponsored {
      display: none;
    }
    .sponsored-and-dates {
      display: flex;
      flex-direction: row;
      margin-bottom: 20px;
      text-transform: uppercase;
    }
    .sponsored {
      flex: 0 120px;
      display: flex;
      background: #24364E;
      color: #fff;
      border-radius: 40px;
      font-weight: 700;
      font-size: 14px;
      line-height: 20px;
      align-items: center;
      justify-content: center;
      height: 28px;
      margin-right: 16px;
    }
    .dates {
      flex: 1;
      color: #215C8C;
      font-weight: 700;
      font-size: 12px;
      line-height: 20px;
      height: 28px;
      display: flex;
      align-items: center;
    }
    .detail {
      padding: 30px 16px;
    }
    .image {
      width: 100%;

      img {
        width: 100%;
      }
    }
    .title {
      font-weight: 700;
      font-size: 18px;
      line-height: 24px;
      margin: 16px 0 8px 0;
    }
    .description {
      border: 0;
      margin-bottom: 20px;
      padding: 0;
      grid-row: unset;

      h2.about-this-event {
        font-size: 18px;
        line-height: 24px;
      }
    }
    .location {
      padding-left: 25px;
      background: url('https://cdn.securem2.com/commonimages/icons/map-marker.svg') no-repeat left 1px top 3px;
      background-size: 20px;
    }
  }
  .event-add-to-calendar {
    margin-top: 2em;
    margin-bottom: 2em;
    text-align: center;
  }
  .event-add-to-calendar  {
    .add-to-my-calendar {
      width: 90%;
    }
    .add-to-my-calendar:hover {
      text-decoration: underline;
    }
    .dropdown-menu {
      margin-left: 5%;
      width: 90%;
    }
  }
  .incorrect-event-info {
    margin-top: 2em;
    margin-bottom: 2em;
  }
  .driving {
    text-decoration: underline;
  }
  .driving:hover {
    text-decoration: none;
  }
  .btn-read-more {
    background-color: #2a5f2a;
    border-color: #2a5f2a;
    border-radius: 40px;
    color: #fff;
    margin-top: 10px;
  }
  .btn-read-more:hover {
    border-color: #24364E;
    background-color: #24364E;
  }

  @media (min-width: 768px) {
    .ctas {
      margin-bottom: 20px;

      a {
        margin-bottom: 0;
      }
    }
  }
  @media (min-width: 992px) {
    .ctas {
      display: flex;
    }
    .btn-read-more {
      margin-top: 0;
    }
  }
  @media (min-width: 1200px) {
    #main-content {
      background-color: #f6fafd;
    }
    .title-and-cta {
      background-color: #fff;
      /* margin-bottom: 20px; */
      padding: 16px;
    }
    .subtitle-and-ctas {
      display: grid;
      grid-template-columns: auto auto;
    }
    .title {
      font-size: 24px;
      line-height: 28px;
      margin-bottom: 20px;
      margin-top: 10px;
    }
    .subtitle {
      margin-bottom: 0;
      margin-right: 15px;
    }
    .ctas {
      display: flex;
      align-items: center;
      height: auto;
      margin-bottom: 0;
      margin-right: 16px;
      font-size: 18px;
      line-height: 22px;
      gap: 9px;
      justify-content: end;

      .phone img {
        height: 25px;
        width: 25px;
      }
      a {
        padding: 18px;
      }
    }

    .details-and-description {
      grid-template-columns: 300px 1fr;

      .title-and-cta,
      &> div:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: unset;
      }

      .details {
        flex: 0 285px;
        grid-row: unset;
      }
      .images {
        width: 750px;
        grid-row: unset;
        text-align: center;
      }
      .description {
        flex: 1;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        padding: 20px;
        grid-row: unset;
      }
    }

    .detail-icon {
      height: 36px;
      width: 36px;
      line-height: 10px;
    }
    #section-related h2 {
      font-size: 36px;
      line-height: 44px;
      margin-bottom: 40px;
      margin-top: 40px;
      font-weight: 700;
    }
    #section-related .event {
      cursor: pointer;
    }
    #section-related .event:hover {
      box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.16);
    }
    .event-detail-ads {
      margin: 70px 0;
    }
    .related,
    .event-detail-ads {
      display: grid;
      grid-template-columns: 33% 33% 33%;
      grid-gap: 20px;
    }
    .open > .dropdown-toggle.btn-default {
      background-color: transparent;
    }
    .event-add-to-calendar {
      margin-top: 0;
      margin-bottom: 0;
      text-align: left;
    }
    .event-add-to-calendar .add-to-my-calendar {
      width: auto;
    }
    .event-add-to-calendar .dropdown-menu {
      margin-left: 0;
      width: auto;
    }
  }
}
