
body {
    margin-left:2em;
    margin-right:2em;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: 'Anton', Helvetica, Arial, Lucida, sans-serif;
}

body p {
        font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
}
.oeh-event-archive h1 {
    text-align: center;
}

.oeh-layout-toggle {
    text-align: center;
    margin: 2rem 0;
}

.oeh-layout-toggle a {
    margin: 0 1rem;
    font-weight: bold;
    text-decoration: none;
    color: #0056b3 !important;
    font-size: 1.1rem;
}

.oeh-layout-toggle a i {
    margin-right: 0.5rem;
    color: #0056b3 !important;
}

.oeh-layout-toggle a:hover {
    color: #000;
}

.oeh-layout-toggle a:hover i {
    color: #000;
}


.oeh-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center; /* ensures items center when < 3 */
    box-sizing: border-box;
}

.oeh-event-card {
    max-width: 360px; /* Optional: prevents giant stretching */
    width: 100%;
    border-radius: 25px;
    border: 1px solid black;
    margin: 0 auto; /* optional for older browser flex/grid quirks */

}

.oeh-event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.oeh-grid-container a {
    text-decoration: none;
}

.oeh-event-cta-wrapper-grid {
    display: flex;
    justify-content: center;
}
.oeh-event-cta-grid {
    display: block;
    width: 80%;
    padding: 0.5rem 1rem;
    margin-bottom: 15px;
    background: #0073aa;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.3s ease;
    font-weight: bold;
}
.oeh-event-cta-grid:hover {
    background: #005c8e;
}

.oeh-event-info-grid {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.oeh-event-info-grid h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #20409a;
}

.oeh-event-summary-grid {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0;
}

.oeh-event-date-grid {
    color: #096d37;
    font-size: 1.25rem;
}

.oeh-event-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px 22px 0 0;
}

.oeh-event-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oeh-event-info h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #20409a;
    font-weight: bold;
}

.oeh-event-summary {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0;
}

.oeh-event-date {
    font-weight: bold;
    color: #096d37;
    font-size: 1.25rem;
    padding-bottom: 5px;
}

/*Single Event Page*/
.oeh-single-event {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.oeh-single-event a {
    color: #20409a !important;
    font-weight: bold;
}

.oeh-single-event .event-featured-image {
    width: 100%;
    height: auto;
    margin-bottom: 3rem;
}

.oeh-single-columns {
  display: flex;
  flex-wrap: nowrap; /* <- forces side-by-side unless screen is too narrow */
    margin-top: 50px;
  gap: 2.5rem;
}

.single-left-col {
  flex: 2 1 0%;
}

.single-right-col {
  flex: 1 1 0%;
}

.oeh-single-view-label {
    color: #096d37;
    font-weight: bold;
    font-size: 1.2rem;
} 

.oeh-single-event h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #20409a;
}

.event-datetime {
    color: #333;    
}

.oeh-event-short-description h2 {
    font-size: 1.2rem;
    margin-top: 0.5em;
    margin-bottom: 2rem;
    color: #333;
}

.oeh-single-event h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    color: #20409a;
}

.oeh-event-meta{
    margin-bottom: 1.5rem;
}

.oeh-event-description {
    margin-top: 0.5em;
    margin-bottom: 2rem;
    color: #333 !important;
}

.oeh-single-event p {
    margin: 0.5rem 0;
}

.oeh-social-share {
    margin-top: 2rem;
}

.oeh-share-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-weight: bold;
}

.oeh-share-links li a {
    text-decoration: none;
    color: #0056b3 !important;
    font-weight: 600;
}
.oeh-share-links li span {
    color: #777;
    font-style: italic;
}
.oeh-social-invite-link {
    margin-top: 20px;
}

.oeh-add-to-calendar-buttons i {
    margin-right: 0.5em;
    color: #0056b3; /* optional: blue tint like links */
}

.map-embed iframe {
    width: 100%;
    height: 300px;
    border: none;
    margin-top: 1rem;
}

.oeh-add-to-calendar-buttons {
    margin-top: 1em;
    font-size: 0.95rem;
}

.oeh-add-to-calendar-buttons a {
    text-decoration: underline;
    margin-right: 10px;
    color: #0056b3 !important;
    font-weight: bold;
}

.oeh-event-header-back{
    margin-bottom: 0;
    margin-top: 0;
}

.back-link-top a {
    font-weight: bold;
    color: #20409a !important;
    margin-bottom: 10px;
}


.back-link {
    margin-top: 2rem;
    font-weight: bold;
    padding-top: 50px;
    color: #20409a !important;
}

.event-category, .event-tags, .event-id {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
select[multiple][size] {
  min-height: 100px; /* matches size="4" in most systems */
}

.category-label {
    background-color: #eee;
    border-radius: 4px;
    padding: 0.25em 0.5em;
    margin-right: 0.25em;
}

.event-map {
  margin: 2rem 0;
  max-width: 100%;
}

.event-map iframe {
  width: 100%;
  height: 300px;
  border: 1;
  border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);

}

.oeh-event-list-view {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.oeh-event-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    margin: .5rem auto;
    background: #fff;
    border-radius: 8px;
    border: 1px solid black;
    min-width: 90%;
    max-width: 1000px;
}

.oeh-event-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/*Show More Button*/
#oeh-show-more {
    display: block;
    margin: 20px auto 50px auto;
    padding: 0.5rem 1rem;
    width: 90%;
    max-width: 300px;
    background: #0073aa;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#oeh-show-more:hover {
    background: #005c8e;
}


.oeh-event-thumb {
    flex: 0 0 250px;
    padding-right: 50px;
}
.oeh-event-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.oeh-event-content {
    flex: 1;
}

.oeh-event-title {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.oeh-event-title a {
    text-decoration: none;
    color: #20409a;
}


.oeh-event-category {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.2rem;
    padding-top: 10px;
}

.oeh-event-desc {
    margin-bottom: 1rem;
}

.oeh-event-cta-wrapper {
    flex: 0 0 auto;
    margin-left: auto;
}

.oeh-event-cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.3s ease;
}
.oeh-event-cta:hover {
    background: #005c8e;
}


.oeh-calendar-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    Padding-bottom: 100px;
}

.oeh-calendar-header h2 {
    margin-bottom: 1rem;
}

.oeh-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ccc;
}

.oeh-calendar-day-label,
.oeh-calendar-cell {
    background: #fff;
    padding: 0.5rem;
    min-height: 100px;
    border: 1px solid #ddd;
    position: relative;
}

.oeh-calendar-day-label {
    background: #f7f7f7;
    font-weight: bold;
}

.oeh-calendar-date {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.oeh-calendar-event a {
    display: block;
    font-size: 0.85rem;
    color: #0066cc !important;
    text-decoration: none;
    margin: 0.2rem 0;
    line-height: .95rem;
}

.oeh-calendar-event a:hover {
    text-decoration: underline;
}

.more-events-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
}

.more-events-link:hover {
    text-decoration: underline;
    color: #0073aa;
}


.oeh-calendar-cell.empty {
    background: #f1f1f1;
}

.oeh-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.oeh-calendar-nav-link {
    color: #0073aa !important;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.oeh-calendar-nav-link:hover {
    text-decoration: underline;
}

.oeh-pagination {
    margin-top: 2rem;
    text-align: center;
}

.oeh-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #eee;
    border-radius: 5px;
    text-decoration: none;
}

.oeh-pagination .current {
    background: #333;
    color: #fff;
}

.oeh-event-filters-block {
  transition: all 0.6s ease-in-out;
}

.oeh-event-filters-block.active {
  display: block;
}

/* FILTERS BAR CONTAINER */
.oeh-event-filters {
  background-color: #eee;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* FILTER GRID ROW */
.oeh-filter-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}


.oeh-filter {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

/* Force consistent label alignment */
.oeh-filter label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #333;
  min-height: 1.2rem; /* Consistent label height */
}


/* INPUTS AND SELECTS */
.oeh-filter input,
.oeh-filter select {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.oeh-filter input:focus,
.oeh-filter select:focus {
  border-color: #007bff;
  outline: none;
}

.oeh-multiselect-wrapper {
  display: flex;
  flex-direction: column;
}


/* BUTTONS */
.oeh-button {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  border: none;
  color: white !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.oeh-button:hover {
  background-color: #0056b3;
}

.oeh-social-invite-link .oeh-button {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  border: none;
  color: white !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.oeh-social-invite-link .oeh-button:hover {
  background-color: #0056b3;
}


/* CLEAR & RESET FILTER BUTTON */
.oeh-submit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.oeh-reset-filters {
  margin-top: 0.25rem;
  text-align: right;
  width: 100%;
}

.oeh-reset-filters a {
  display: inline-block;
  font-size: 0.85rem;
  color: #000 !important;
  font-weight: bold;
  text-decoration: underline;
}


.oeh-clear-filter {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  text-align: right;
}

.oeh-clear-filter a {
    font-size: 0.85rem;
    color: #fff;
    text-decoration: underline;
}

.oeh-submit-wrapper .oeh-button {
    width: 100%;
}

.oeh-submit-event-wrap {
    margin: 20px 0;
    text-align: right;
}

.oeh-submit-event-btn {
    display: inline-block;
    padding: 10px 16px;
    background: #1e73be;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.oeh-submit-event-btn:hover {
    background: #155a8a;
    color: #fff;
}




/*cancelled events*/
.oeh-cancelled-pill {
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .8em;
    margin-top: 10px;
    margin-bottom: 5px;
    margin-right: 10px;
}
.oeh-cancelled-pill .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}


.oeh-calendar-cell a.oeh-cancelled-link {
  color: #cc0000;
  text-decoration: line-through;
}

.oeh-cancelled-link {
    color: #cc0000;
    font-weight: bold;
}
.oeh-cancelled-link del {
    text-decoration: line-through;
}

@media (max-width: 768px){
    .oeh-layout-toggle a {
    margin: 0 1rem;
     font-size: .95rem;
}
    
}

/* Custom Event Header - for archive & single pages */
.oeh-custom-header h1,
.oeh-custom-header h2 {
font-family: 'Anton', Helvetica, Arial, Lucida, sans-serif;  /* other heading styles */
}

.oeh-custom-header p,
.oeh-custom-header .some-body-text {
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
}

/* Wrapper for alignment */
.oeh-custom-header .oeh-header-inner {
    max-width: 1200px; /* or the max width your calendar container uses */
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
    text-align: left;
}

.oeh-custom-header {
    background-color: #051656;
    border-bottom: 2px solid #ffffff;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.54);
    padding: 30px 20px;
    margin-bottom: 30px;
}

.oeh-custom-header h1 {
    color: #faa619 !important;
    text-shadow: 0em 0.1em 0.1em rgba(0, 0, 0, 0.4);
    margin: 0 0 10px 0;
    text-align: left;

}

.oeh-custom-header h2 {
    font-family: 'Anton', Helvetica, Arial, Lucida, sans-serif;
    font-size: 26px;
    text-align: left;
    text-shadow: 0em 0.1em 0.1em rgba(0, 0, 0, 0.4);
    margin: 0;
    color: white;
}

.oeh-event-disclaimer {
    margin-top: 2em;
    padding: 1em;
    font-size: 1.2em;
    color: #555;
    border-top: 1px solid #ddd;
}
.oeh-event-disclaimer a {
font-weight:bold;
    
}


@media (max-width: 768px) {
.oeh-event-list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
  }

div.oeh-event-thumb {
    flex: 0;
    padding-right: 0;
  }

.oeh-event-thumb {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding-bottom: 0;
    display: block;
  }
    
.oeh-event-content {
    text-align: center;
    margin-top: 0;
  }
.oeh-event-cta-wrapper {
    margin: 0.75rem 0 0;
    width: 100%;
    text-align: center;
  }

.oeh-cancelled-pill {
    margin-bottom: .5rem;
  }
    
.oeh-event-cta {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Search Filters Toggle Button Style */
.oeh-mobile-filter-toggle {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: #004165;
  color: white;
  font-weight: bold;
  border: none;
  text-align: center;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* Only show toggle button on mobile */
@media (min-width: 769px) {
  .oeh-mobile-filter-toggle {
    display: none;
  }
}

/* Mobile default state: hidden */
@media (max-width: 768px) {
  .oeh-event-filters-block {
    display: none;
  }

  .oeh-event-filters-block.oeh-filters-visible {
    display: block;
  }
}


@media (max-width: 600px) {
  .oeh-grid-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.25rem;
  }

  .oeh-event-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .oeh-event-filters {
    padding: 1rem;
  }

  .oeh-reset-filters {
    align-self: flex-start;
  }
 
}

@media (max-width: 768px) {
  .oeh-calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.7rem;
  }


  .oeh-calendar-cell {
    padding: 0.35rem;
    min-height: 75px;
  }
 
  .oeh-calendar-date {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }

  .oeh-calendar-event a {
    font-size: 0.7rem;
    line-height: 1;
    color: #000 !important;

  }

  .more-events-link {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: block;
    color: #000 !important;
  }

  .oeh-calendar-day-label {
    font-size: 0.75rem;
    padding: 0.25rem;
  }
 /* If you want to adjust prev  and back links
  .oeh-calendar-nav {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  */
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 768px) {
  .oeh-single-columns {
    flex-direction: column;
  }

  .single-left-col,
  .single-right-col {
    flex: 1 1 100%;
  }
}

/* Center text on small screens */
@media (max-width: 768px) {
    .oeh-custom-header .oeh-header-inner {
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .oeh-custom-header h1,
    .oeh-custom-header h2 {
        text-align: center;
    }
}

@media (min-width: 981px) {
    body.post-type-archive-oeh_event .et_pb_section {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Remove excess Divi padding on Events archive – mobile & tablet */
@media (max-width: 980px) {
    body.post-type-archive-oeh_event .et_pb_section {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

