/*
Theme Name: Beaver Builder Child Theme
Theme URI: https://www.wpbeaverbuilder.com
Version: 1.0.4
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: https://www.fastlinemedia.com
template: bb-theme
*/

/*
 * Perfect Duluth Day 2026 — Child Theme Stylesheet
 * Theme: Beaver Builder Child Theme
 *
 * IMPORTANT: This file replaces Customizer → Additional CSS entirely.
 * All PDD custom styles live here. Do not add styles to Customizer.
 *
 * v1.0.4 cleanup:
 *  - Removed superseded legacy single-event draft rules (consolidated below)
 *  - Removed verbatim duplicate of the events search-bar block
 *  - Consolidated tribe-events container / events-bar radius rules
 *  - Added Iframely (if-cdn.com) double-wrapper fix + embed corner radius
 */


/* =========================================================
   Single Event — legacy support rules (still referenced
   by single-event.php: back link, meta row, TEC native
   meta block, map, prev/next nav, cal-btn fallback)
   ========================================================= */

/* Back link */
.pdd-event-back {
  margin-bottom: 12px;
}
.pdd-event-back a {
  color: #8B2020;
  font-size: 13px;
  text-decoration: none;
}
.pdd-event-back a:hover {
  text-decoration: underline;
}

/* Meta row (date, time, venue) */
.pdd-event-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;
}
.pdd-event-meta-row i {
  margin-right: 5px;
  color: #8B2020;
}

/* Calendar button — base fallback (fully overridden inside
   .pdd-event-single-actions by the SINGLE EVENT section below;
   kept in case a .pdd-cal-btn ever renders outside that container) */
.pdd-cal-btn {
  display: inline-block;
  background: #333 !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
}
.pdd-cal-btn:hover {
  background: #8B2020 !important;
  color: #fff !important;
}

/* Cost badge — red pill (verify: template may use
   .pdd-event-single-cost instead; remove if unused in markup) */
.pdd-event-cost-badge {
  display: inline-block !important;
  background: #8B2020 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 14px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-top: 6px !important;
}

/* TEC native meta block (Details/Organizer/Venue/Map) */
.pdd-event-single-wrap .tribe-events-single-section {
  background: #f9f9f9 !important;
  border-radius: 6px !important;
  padding: 20px !important;
  margin-top: 0 !important;
  border: none !important;
}
.pdd-event-single-wrap .tribe-events-single-section h3 {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #999 !important;
  margin-bottom: 12px !important;
}
.pdd-event-single-wrap .tribe-events-event-meta dt {
  font-weight: 700 !important;
  color: #333 !important;
  font-size: 13px !important;
}
.pdd-event-single-wrap .tribe-events-event-meta dd {
  color: #555 !important;
  font-size: 13px !important;
  margin-left: 0 !important;
  margin-bottom: 8px !important;
}
.pdd-event-single-wrap .tribe-events-event-meta a {
  color: #8B2020 !important;
  text-decoration: none !important;
}

/* Map */
.pdd-event-single-wrap .tribe-events-venue-map {
  border-radius: 6px !important;
  overflow: hidden !important;
}

/* Prev/Next nav */
.pdd-event-single-wrap .tribe-events-nav-pagination {
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid #eee !important;
  display: flex !important;
  justify-content: space-between !important;
}
.pdd-event-single-wrap .tribe-events-nav-pagination a {
  color: #8B2020 !important;
  font-size: 13px !important;
  text-decoration: none !important;
}


/* =========================================================
   Archive Title Sizing
   ========================================================= */
.archive .fl-post-title {
  font-size: 32px;
  line-height: 1.2;
}
@media (max-width: 1024px) {
  .archive .fl-post-title { font-size: 26px; }
}
@media (max-width: 768px) {
  .archive .fl-post-title {
    font-size: 22px;
    line-height: 1.3;
  }
}


/* =========================================================
   Rounded Corners — AdRotate Blocks
   (NOTE: widget-block IDs will change if sidebar widgets
   are recreated — update these selectors if corners vanish)
   ========================================================= */
#block-14 img,
#block-15 img {
  border-radius: 10px;
  overflow: hidden;
}


/* =========================================================
   Themer Archive Feed — Remove Extra Border
   ========================================================= */
.fl-theme-builder-archive .fl-post-feed-post {
  border-bottom: 0 !important;
}


/* =========================================================
   PDD Post Meta (Custom HTML meta row)
   ========================================================= */
.pdd-post-meta {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 1.2;
  margin: 6px 0 14px;
}
.pdd-post-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a7a7a;
}
.pdd-post-meta a {
  color: inherit;
  text-decoration: none;
}
.pdd-post-meta i {
  font-size: 16px;
  line-height: 1;
  color: #9a9a9a;
}
.pdd-post-meta a:hover,
.pdd-post-meta .meta-item:hover,
.pdd-post-meta .meta-item:hover a {
  color: #af002e;
}
.pdd-post-meta .meta-item:hover i {
  color: #af002e;
}


/* =========================================================
   Beaver Builder Post Info — Match PDD Meta Styling
   ========================================================= */
.fl-module-fl-post-info .fl-module-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  row-gap: 8px;
  font-size: 15px;
  line-height: 1.2;
  color: #7a7a7a;
  margin: 6px 0 14px;
}
.fl-module-fl-post-info .fl-post-info-sep { display: none; }
.fl-module-fl-post-info .fl-post-info-date,
.fl-module-fl-post-info .fl-post-info-author,
.fl-module-fl-post-info .fl-post-info-comments,
.fl-module-fl-post-info .fl-post-info-terms {
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.fl-module-fl-post-info a {
  color: inherit;
  text-decoration: none;
}
.fl-module-fl-post-info a:hover {
  color: #af002e;
}

/* Hide post meta on Pages only */
body.page .fl-module-fl-post-info {
  display: none !important;
}


/* =========================================================
   PDD Rotating Banner
   ========================================================= */
#pdd-rotate {
  border-radius: 10px;
  overflow: hidden;
}
#pdd-rotate .img-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
#pdd-rotate .img-list li {
  position: relative;
  width: 100%;
}
#pdd-rotate .text-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
#pdd-rotate .img-list li:hover .text-content {
  opacity: 1;
}


/* =========================================================
   Header Shadow
   ========================================================= */
.fl-page-header-wrap {
  position: relative;
  z-index: 0;
}
.fl-page-header-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0));
  pointer-events: none;
}


/* =========================================================
   Snow Overlay Canvas
   ========================================================= */
#pdd-snow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
  display: none;
}
.fl-page-header-logo a {
  position: relative;
}


/* =========================================================
   PDD Link Card — Editorial / Native Style
   ========================================================= */
.pdd-link-card {
  display: block;
  text-decoration: none !important;
  margin: 22px 0 26px;
  background: transparent;
  border: 0;
}
.pdd-link-card__media {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}
.pdd-link-card__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.pdd-link-card__body { display: block; }
.pdd-link-card__title {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
}
.pdd-link-card__desc {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin: 0 0 6px;
}
.pdd-link-card__url {
  display: block;
  font-size: 13px;
  color: #888;
}
.pdd-link-card:hover .pdd-link-card__title {
  text-decoration: underline;
}


/* =========================================================
   Single Post — Embeds / iframes
   ========================================================= */
.single .fl-post-content figure.wp-block-embed,
.single .fl-post-content .wp-block-embed__wrapper,
.single .fl-post-content blockquote.wp-embedded-content,
.single .fl-post-content iframe {
  max-width: 100%;
}
.single .fl-post-content figure.wp-block-embed,
.single .fl-post-content .wp-block-embed__wrapper {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.single .fl-post-content figure.wp-block-embed {
  margin: 18px 0;
}


/* =========================================================
   Sidebar — Categories + Tag Cloud Pill Buttons
   ========================================================= */
aside.widget_categories ul.wp-block-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
aside.widget_categories ul.wp-block-categories-list > li {
  display: inline-block;
  margin: 0 8px 10px 0;
  padding: 0;
}
aside.widget_categories ul.wp-block-categories-list > li > a {
  display: inline-block;
  padding: 6px 14px;
  background: #e6e6e6;
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
aside.widget_categories ul.wp-block-categories-list > li > a:hover {
  background: #af002e;
  color: #ffffff;
}
aside.widget_categories .current-cat > a {
  background: #b23b2e;
  color: #fff;
}
aside.widget_categories a { text-decoration: none !important; }

aside.widget_tag_cloud .wp-block-tag-cloud {
  margin: 0;
  padding: 0;
  line-height: 1;
}
aside.widget_tag_cloud .wp-block-tag-cloud a {
  display: inline-block;
  margin: 0 8px 10px 0;
  padding: 6px 14px;
  background: #e6e6e6;
  color: #555;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  transition: background-color .15s ease, color .15s ease;
}
aside.widget_tag_cloud .wp-block-tag-cloud a:hover {
  background: #af002e;
  color: #ffffff;
}
aside.widget_categories,
aside.widget_tag_cloud {
  margin-bottom: 28px;
}


/* =========================================================
   Normalize Blockquotes
   ========================================================= */
.fl-page blockquote,
.fl-page blockquote p {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}


/* =========================================================
   Video Embeds — FitVids / iframes
   ========================================================= */
.fluid-width-video-wrapper {
  border-radius: 10px !important;
  overflow: hidden !important;
  margin: 24px 0;
}
.fluid-width-video-wrapper iframe,
.fl-module-fl-post-content iframe,
.fl-post-content iframe {
  border: 0 !important;
  outline: 0 !important;
  display: block !important;
}

/* Legacy double-wrapper fix (inline "padding:" shorthand variant) */
.fl-module-fl-post-content div[style*="padding:"][style*="%"][style*="position:relative"] > .fluid-width-video-wrapper,
.fl-module-fl-post-content div[style*="padding:"][style*="%"][style*="position: relative"] > .fluid-width-video-wrapper {
  padding-top: 0 !important;
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}
.fl-module-fl-post-content div[style*="padding:"][style*="%"][style*="position:relative"] > .fluid-width-video-wrapper > iframe,
.fl-module-fl-post-content div[style*="padding:"][style*="%"][style*="position: relative"] > .fluid-width-video-wrapper > iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Iframely double-wrapper fix (inline "padding-bottom" variant).
   Iframely outputs: div[position:relative; padding-bottom:56.25%; height:0]
   > iframe[position:absolute]. FitVids then injects its own
   .fluid-width-video-wrapper between them, adding a second aspect-ratio
   spacer — embeds stack/overlap. This collapses the FitVids layer. */
.fl-module-fl-post-content div[style*="padding-bottom"][style*="position:relative"] > .fluid-width-video-wrapper,
.fl-module-fl-post-content div[style*="padding-bottom"][style*="position: relative"] > .fluid-width-video-wrapper,
.fl-post-content div[style*="padding-bottom"][style*="position:relative"] > .fluid-width-video-wrapper,
.fl-post-content div[style*="padding-bottom"][style*="position: relative"] > .fluid-width-video-wrapper {
  padding-top: 0 !important;
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}
.fl-module-fl-post-content div[style*="padding-bottom"][style*="position:relative"] > .fluid-width-video-wrapper > iframe,
.fl-module-fl-post-content div[style*="padding-bottom"][style*="position: relative"] > .fluid-width-video-wrapper > iframe,
.fl-post-content div[style*="padding-bottom"][style*="position:relative"] > .fluid-width-video-wrapper > iframe,
.fl-post-content div[style*="padding-bottom"][style*="position: relative"] > .fluid-width-video-wrapper > iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* YouTube + Iframely iframes — rounded corners */
.fl-module-fl-post-content iframe[src*="youtube.com"],
.fl-module-fl-post-content iframe[src*="youtu.be"],
.fl-module-fl-post-content iframe[src*="if-cdn.com"],
.fl-post-content iframe[src*="youtube.com"],
.fl-post-content iframe[src*="youtu.be"],
.fl-post-content iframe[src*="if-cdn.com"] {
  border-radius: 10px !important;
}

/* Bandcamp embeds */
.fl-post-content iframe[src*="bandcamp.com"],
.single-post .fl-module-content iframe[src*="bandcamp.com"] {
  display: block !important;
  width: 100% !important;
  margin: 0 0 20px 0 !important;
}
.fl-post-content iframe[src*="bandcamp.com"] + p,
.single-post .fl-module-content iframe[src*="bandcamp.com"] + p {
  margin-top: 20px !important;
}

/* SoundCloud embeds */
.fl-post-content iframe[src*="soundcloud.com"] + p,
.fl-post-content .soundcloud-embed + p {
  margin-top: 14px !important;
}

/* Single posts: remove FitVids spacing */
.single .fl-builder-content .fluid-width-video-wrapper {
  margin: 0 !important;
  margin-bottom: 16px !important;
}


/* Iframely outer wrapper: spacing + corner clipping
   (the double-wrapper fix zeroes the inner wrapper's margin,
   so the gap and radius must live on the outer div) */
.fl-module-fl-post-content div[style*="padding-bottom"][style*="position:relative"],
.fl-module-fl-post-content div[style*="padding-bottom"][style*="position: relative"],
.fl-post-content div[style*="padding-bottom"][style*="position:relative"],
.fl-post-content div[style*="padding-bottom"][style*="position: relative"] {
  margin: 0 0 20px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}



/* =========================================================
   MORE LINK Button Styling
   ========================================================= */
a.more-link,
.fl-post-text a.more-link,
.fl-post-content a.more-link,
.entry-content a.more-link,
.fl-module-post-grid a.more-link,
.fl-module-post-list a.more-link,
.fl-post-module a.more-link,
.fl-post-feed a.more-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #a5332a;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: none !important;
  border: 0 !important;
}
a.more-link:hover,
a.more-link:focus {
  filter: brightness(0.92);
  text-decoration: none !important;
}
a.more-link span,
a.more-link span[aria-label] {
  display: none !important;
}
a.more-link::after {
  content: "READ MORE";
  display: inline-block;
}
a.more-link::before { content: "" !important; }

.fl-post-text p a.more-link,
.fl-module-post-grid p a.more-link,
.fl-module-post-list p a.more-link,
.fl-post-content p a.more-link,
.entry-content p a.more-link {
  display: block !important;
  width: fit-content !important;
  margin: 14px 0 0 0 !important;
  float: none !important;
  clear: both !important;
}


/* =========================================================
   Builder Wrapper Cleanup for Custom Cards
   ========================================================= */
.fl-builder-content div:has(> .pdd-event-card),
.fl-builder-content div:has(> .pdd-event-single-wrap) {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   CONSOLIDATED CARD SYSTEM (Posts + Event Cards)
   ========================================================= */
.fl-post-text,
.pdd-event-card,
.pdd-event-single-wrap {
  background: #fff !important;
  border-radius: 14px !important;
  overflow: visible !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.06) !important;
}

/* NOTE: overflow must be visible (not hidden) so share dropdown works */
.fl-post-text {
  padding: 20px 50px 50px 50px !important;
}
.pdd-event-card {
  position: relative !important;
  padding: 30px 40px 40px 40px !important;
  overflow: hidden !important; /* OK on event card — no dropdowns */
}
.pdd-event-single-wrap {
  position: relative !important;
  padding: 30px 40px 40px 40px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

.pdd-event-title a,
.pdd-event-single-title a {
  color: #3c3c3c !important;
  text-decoration: none !important;
}
.pdd-event-title a:hover,
.pdd-event-single-title a:hover {
  color: #af002e !important;
  text-decoration: none !important;
}

.pdd-event-thumb img,
.pdd-event-single-featured img {
  border-radius: 10px !important;
}

@media (max-width: 768px) {
  .fl-post-text { padding: 18px !important; }
  .pdd-event-card,
  .pdd-event-single-wrap { padding: 18px !important; }
}


/* =========================================================
   PDD EVENT CARD (Archive / List)
   ========================================================= */
.pdd-event-head {
  margin: 0 0 16px !important;
  padding-right: 120px;
}
.pdd-event-title {
  margin: 0 0 6px !important;
  line-height: 1.25;
}
.pdd-event-meta {
  font-size: 15px;
  color: #777;
}
.pdd-event-datetime { white-space: normal; }
.pdd-event-datetime a {
  color: #777 !important;
  text-decoration: none !important;
}
.pdd-event-datetime a:hover { color: #af002e !important; }

.pdd-event-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.pdd-event-media { flex: 0 0 200px; }
.pdd-event-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.pdd-event-body { flex: 1; }
.pdd-event-excerpt {
  font-size: 16px;
  line-height: 1.55;
  color: #444;
  margin: 0 0 10px;
}

/* Cost badge */
.pdd-event-cost {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(0,0,0,.15);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  border-radius: 10px;
  line-height: 1;
  z-index: 5;
  outline: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* Find out more link — matches READ MORE button */
.pdd-event-more {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  margin-top: 4px !important;
  padding: 10px 18px !important;
  border-radius: 4px !important;
  background: #a5332a !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  letter-spacing: .5px !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pdd-event-more:hover {
  filter: brightness(0.92);
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .pdd-event-media { display: none !important; }
  .pdd-event-row { display: block !important; }
  .pdd-event-cost {
    position: static !important;
    float: right !important;
    margin: 2px 0 10px 12px !important;
    font-size: 13px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
  }
  .pdd-event-head {
    padding-right: 0 !important;
    margin: 0 0 12px !important;
  }
  .pdd-event-meta { clear: both !important; }
  .pdd-event-title { margin: 0 0 10px !important; }
  .pdd-event-meta,
  .pdd-event-datetime {
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-style: italic !important;
    color: #8a8a8a !important;
    margin: 0 0 12px !important;
    white-space: normal !important;
  }
  .pdd-event-excerpt {
    font-size: 15px !important;
    line-height: 1.45 !important;
    color: #666 !important;
    margin: 0 0 12px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
  }
  .pdd-event-more { font-size: 12px !important; }
}


/* =========================================================
   SINGLE EVENT
   ========================================================= */
.pdd-event-single-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 0 10px !important;
}
.pdd-event-single-title {
  font-family: "Roboto Slab", serif !important;
  font-weight: 500 !important;
  font-size: 26px !important;
  line-height: 1.4 !important;
  color: #3c3c3c !important;
  margin: 15px 0 4px !important;
}
.pdd-event-single-cost {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  background: #fff !important;
  border-radius: 14px !important;
  padding: 10px 16px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: inherit !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-top: 2px !important;
}
.pdd-event-single-cost:empty { display: none !important; }

.pdd-event-single-meta {
  margin: -12px 0 18px 0 !important;
  padding: 0 !important;
}
.pdd-event-single-meta .fl-module-content {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  color: #7a7a7a !important;
}
.pdd-event-single-featured {
  margin: 0 0 28px !important;
}
.pdd-event-single-featured img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
}
.pdd-event-single-content {
  font-size: 16px;
  line-height: 1.65;
  color: #333;
  margin: 0 0 22px !important;
}

/* Calendar buttons */
.pdd-event-single-actions {
  display: flex !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin: 0 0 28px !important;
}
.pdd-event-single-actions a,
.pdd-event-single-actions .pdd-cal-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #555 !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 16px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border: 0 !important;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.25) !important;
}
.pdd-event-single-actions a:hover,
.pdd-event-single-actions a:focus {
  background: #444 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.pdd-event-single-actions a:active { transform: translateY(1px); }

/* Details block */
.pdd-event-details-block {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 24px;
}
.pdd-event-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}
.pdd-details-col {
  flex: 1;
  min-width: 180px;
}
.pdd-details-heading {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #999 !important;
  margin: 0 0 12px !important;
}
.pdd-details-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 14px;
  color: #444;
}
.pdd-details-list dt {
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}
.pdd-details-list dd { margin: 0; color: #555; }
.pdd-details-list a { color: #af002e; text-decoration: none; }
.pdd-details-list a:hover { text-decoration: underline; }

/* Venue block */
.pdd-venue-block {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 24px;
}
.pdd-venue-info { flex: 0 0 220px; }
.pdd-venue-map { flex: 1; min-width: 200px; }
.pdd-venue-map iframe {
  border-radius: 8px !important;
  display: block;
  width: 100%;
}

/* Remove double border between event card and details */
.pdd-event-single-wrap .pdd-event-meta-row {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.tribe-events-single-section.tribe-events-event-meta,
.tribe-events-single .tribe-events-event-meta {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-top: 1px solid rgba(0,0,0,.06) !important;
  margin-top: 0 !important;
  background: #f9f9f9 !important;
  padding: 20px 40px !important;
}

@media (max-width: 768px) {
  .pdd-event-single-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
  }
  .pdd-event-single-cost {
    font-size: 16px !important;
    padding: 9px 14px !important;
    margin-top: 0 !important;
  }
  .pdd-event-details-grid {
    flex-direction: column;
    gap: 20px;
  }
  .pdd-venue-block { flex-direction: column; }
  .pdd-venue-info { flex: 0 0 auto; }
}


/* =========================================================
   SINGLE POST — IMAGE HANDLING (consolidated, no conflicts)
   ========================================================= */

/*
 * Rules in order of specificity / application:
 * 1. Clearfix
 * 2. Base image styles (rounded corners)
 * 3. alignleft — float at natural/capped size
 * 4. alignright — mirror
 * 5. Standalone full-width images (not floated)
 * 6. Side-by-side image pairs (alignnone)
 */

/* 1. Clearfix */
.fl-rich-text p::after,
.single .fl-module-fl-post-content .fl-module-content::after {
  content: "";
  display: block;
  clear: both;
}

/* 2. Base: all images in post content */
.single .fl-module-fl-post-content .fl-module-content img {
  border-radius: 10px;
  height: auto;
  max-width: 100%;
}

/* 3. alignleft — float, capped at 200px, text wraps */
.single .fl-module-fl-post-content .fl-module-content a:has(> img.alignleft) {
  float: left !important;
  display: block !important;
  width: auto !important;
  max-width: 200px !important;
  margin: 4px 20px 16px 0 !important;
}
.single .fl-module-fl-post-content .fl-module-content a:has(> img.alignleft) > img {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block !important;
}
/* Direct img.alignleft (not wrapped in anchor) */
.single .fl-module-fl-post-content .fl-module-content img.alignleft {
  float: left !important;
  width: auto !important;
  max-width: 200px !important;
  height: auto !important;
  margin: 4px 20px 16px 0 !important;
}
/* Paragraph containing floated image must be block */
.single .fl-module-fl-post-content .fl-module-content p:has(> a > img.alignleft),
.single .fl-module-fl-post-content .fl-module-content p:has(> img.alignleft) {
  display: block !important;
  overflow: visible !important;
}

/* 4. alignright — mirror */
.single .fl-module-fl-post-content .fl-module-content a:has(> img.alignright) {
  float: right !important;
  display: block !important;
  width: auto !important;
  max-width: 200px !important;
  margin: 4px 0 16px 20px !important;
}
.single .fl-module-fl-post-content .fl-module-content a:has(> img.alignright) > img {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block !important;
}
.single .fl-module-fl-post-content .fl-module-content img.alignright {
  float: right !important;
  width: auto !important;
  max-width: 200px !important;
  height: auto !important;
  margin: 4px 0 16px 20px !important;
}
.single .fl-module-fl-post-content .fl-module-content p:has(> a > img.alignright),
.single .fl-module-fl-post-content .fl-module-content p:has(> img.alignright) {
  display: block !important;
  overflow: visible !important;
}

/* 5. Standalone image — only child in paragraph, not floated: full width */
.single .fl-module-fl-post-content .fl-module-content p > a:only-child:has(> img):not(:has(> img.alignleft)):not(:has(> img.alignright)) {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.single .fl-module-fl-post-content .fl-module-content p > a:only-child:has(> img):not(:has(> img.alignleft)):not(:has(> img.alignright)) > img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
}

/* 6. Side-by-side image pairs (alignnone in same paragraph) */
.single .fl-module-fl-post-content .fl-module-content p:has(> a > img.alignnone + a > img.alignnone),
.fl-post-text .fl-post-content p:has(> a > img.alignnone + a > img.alignnone) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
.single .fl-module-fl-post-content .fl-module-content p:has(> a > img.alignnone + a > img.alignnone) > a,
.fl-post-text .fl-post-content p:has(> a > img.alignnone + a > img.alignnone) > a {
  display: block !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}
.single .fl-module-fl-post-content .fl-module-content p:has(> a > img.alignnone + a > img.alignnone) > a > img,
.fl-post-text .fl-post-content p:has(> a > img.alignnone + a > img.alignnone) > a > img {
  display: block !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: 12px !important;
}


/* =========================================================
   ARCHIVE / FEED CARDS — Image Handling
   ========================================================= */

/* All images in feed cards get rounded corners */
.fl-post-text .fl-post-content img {
  border-radius: 12px !important;
}

/* alignleft float in feed excerpts */
.fl-post-text .fl-post-content img.alignleft,
.fl-post-content img.alignleft {
  float: left !important;
  clear: left !important;
  width: auto !important;
  max-width: 200px !important;
  height: auto !important;
  margin: 0 1.5em 10px 0 !important;
  border-radius: 10px !important;
}

/* Clearfix for feed cards */
.fl-post-feed .fl-post-text .fl-post-content::after {
  content: "";
  display: block;
  clear: both;
}

/* Allow multiple alignnone images side-by-side in feed cards */
.fl-post-text .fl-post-content p > a > img.alignnone {
  display: inline-block !important;
  vertical-align: top;
  margin-right: 10px;
}

/* Side-by-side pairs in archive feed */
.fl-post-text .fl-post-content p:has(> a > img.alignnone + a > img.alignnone) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.fl-post-text .fl-post-content p:has(> a > img.alignnone + a > img.alignnone) > a {
  display: block !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}
.fl-post-text .fl-post-content p:has(> a > img.alignnone + a > img.alignnone) > a > img.alignnone {
  display: block !important;
  height: auto !important;
  border-radius: 12px !important;
  clip-path: inset(0 round 12px) !important;
}

/* pd-clearfix utility */
.pd-clearfix {
  display: block;
  clear: both;
  height: 0;
}


/* =========================================================
   Magnific Popup
   ========================================================= */
.mfp-bg { background: rgba(0,0,0,0.88) !important; }
.mfp-img { border-radius: 10px !important; }
.mfp-close {
  color: #fff !important;
  opacity: 1 !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  right: 14px !important;
  top: 14px !important;
}
.mfp-close:hover { color: #fff !important; opacity: 0.8 !important; }
.mfp-arrow { opacity: 1 !important; }
.mfp-arrow:hover { opacity: 0.8 !important; }
.mfp-counter { color: rgba(255,255,255,0.85) !important; }


/* =========================================================
   PDD Post Terms (Categories + Tags at bottom of card)
   ========================================================= */
.pdd-post-terms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  font-size: 14px;
  color: #7a7a7a;
}
.pdd-terms-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin-right: 16px !important;
}
.pdd-terms-item i {
  font-size: 14px;
  color: #9a9a9a;
  margin-right: 6px !important;
  flex-shrink: 0 !important;
}
.pdd-terms-item a {
  color: #7a7a7a;
  text-decoration: none;
}
.pdd-terms-item a:hover { color: #af002e; }


/* =========================================================
   PDD Share Dropdown
   ========================================================= */
.pdd-share-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pdd-share-dropdown {
  display: none;
  position: absolute;
  top: 28px !important;
  bottom: auto !important;
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 8px 0;
  min-width: 160px;
}
.pdd-share-wrap.open .pdd-share-dropdown { display: block; }
.pdd-share-dropdown a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 14px;
  color: #333 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
}
.pdd-share-dropdown a:hover {
  background: #f5f5f5;
  color: #af002e !important;
}
.pdd-share-dropdown i {
  width: 16px;
  text-align: center;
  color: #777;
  flex-shrink: 0;
}
.pdd-fb-icon {
  width: 16px !important;
  height: 16px !important;
  fill: #1877f2 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
.pdd-share-fb:hover .pdd-fb-icon { fill: #af002e !important; }
.pdd-x-icon {
  width: 16px !important;
  height: 16px !important;
  fill: #000 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
.pdd-share-x:hover .pdd-x-icon { fill: #af002e !important; }


/* =========================================================
   PDD Recent Comments Widget
   ========================================================= */
.pdd-recent-comments { display: grid; gap: 20px; }
.pdd-comment {
  padding: 20px;
  background: #f7f7f7;
  border-radius: 12px;
}
.pdd-comment-title { margin: 0 0 10px; }
.pdd-comment-excerpt { margin-bottom: 10px; }


/* =========================================================
   Sidebar Widget Spacing
   ========================================================= */
.fl-module-sidebar .fl-widget {
  margin-bottom: -10px !important;
  margin-top: 11px !important;
}
.fl-module-sidebar .fl-widget:last-child { margin-bottom: 23px !important; }

/* Hide AdRotate examples box */
#adrotate_bannercode + td,
td[rowspan="2"] { display: none !important; }


/* =========================================================
   Prevent Horizontal Overflow
   ========================================================= */
html,
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
.fl-page,
.fl-page-content,
.fl-builder-content,
.fl-post-text,
.pdd-mobile-infeed-ad,
.pdd-mobile-infeed-ad .g {
  max-width: 100% !important;
  box-sizing: border-box !important;
}


/* =========================================================
   PDD Mobile In-Feed Ad Block
   ========================================================= */
.pdd-mobile-infeed-ad { display: none; }

@media (max-width: 768px) {
  .pdd-mobile-infeed-ad {
    display: block;
    margin: 40px 0 0 0 !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    box-sizing: border-box !important;
  }
  .pdd-mobile-infeed-ad .g {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 0 !important;
  }
  .pdd-mobile-infeed-ad .g-col,
  .pdd-mobile-infeed-ad .g.g-4 .g-col,
  .pdd-mobile-infeed-ad .g-col.b-4,
  .pdd-mobile-infeed-ad .g-col.a-11,
  .pdd-mobile-infeed-ad .g-col.a-18 {
    flex: 0 0 calc((100% - 20px) / 2) !important;
    width: calc((100% - 20px) / 2) !important;
    max-width: calc((100% - 20px) / 2) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 0 !important;
  }
  .pdd-mobile-infeed-ad .g-col a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 0 !important;
    text-decoration: none !important;
  }
  .pdd-mobile-infeed-ad .g-col img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    vertical-align: top !important;
    box-shadow: none !important;
  }
}


/* =========================================================
   TEC EVENTS — Search Bar
   ========================================================= */
.tribe-events-c-events-bar__search-container,
.tribe-events-c-events-bar__search,
.tribe-events-c-search {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}
.tribe-events-c-search {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 16px 20px !important;
}
.tribe-events-c-search__input-group { width: 100% !important; }
.tribe-common-form-control-text {
  position: relative !important;
  background: #f5f5f5 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
}
.tribe-common-form-control-text__label { display: none !important; }
.tribe-events-c-search__input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  color: #333 !important;
  padding: 10px 4px !important;
  width: 100% !important;
  outline: none !important;
}
.tribe-events-c-search__input::placeholder { color: #999 !important; }
.tribe-events-c-search__input-control-icon-svg {
  width: 16px !important;
  height: 16px !important;
  fill: #999 !important;
  flex-shrink: 0 !important;
  margin-right: 6px !important;
}

/* Search icon positioning */
.tribe-events .tribe-events-c-search__input-control { position: relative !important; }
.tribe-events .tribe-events-c-search__input-control svg.tribe-events-c-search__input-control-icon-svg {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3 !important;
  pointer-events: none !important;
}
.tribe-events #tribe-events-events-bar-keyword.tribe-events-c-search__input {
  padding-left: 52px !important;
  text-indent: 0 !important;
}
.tribe-events .tribe-events-c-search__input-control input {
  position: relative !important;
  z-index: 2 !important;
}
.tribe-events .tribe-events-c-search__input-control--keyword { margin-right: 20px !important; }

/* Find Events button */
.tribe-events-c-search__button,
.tribe-events .tribe-events-c-search__button,
.tribe-events button[name="submit-bar"] {
  width: 100% !important;
  background: #8B2020 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 11px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  height: 46px !important;
}
.tribe-events-c-search__button:hover,
.tribe-events .tribe-events-c-search__button:hover {
  background: #6e1818 !important;
  filter: none !important;
}

/* Nav bar */
.tribe-events .tribe-events-c-top-bar,
.tribe-events .tribe-events-header__top-bar--secondary {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.tribe-events .tribe-events-c-nav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
}

/* Force nav elements visible (overrides a11y-hidden) */
.tribe-events-c-top-bar__nav.tribe-common-a11y-hidden,
.tribe-events-c-top-bar__today-button.tribe-common-a11y-hidden,
.tribe-events-c-top-bar__actions.tribe-common-a11y-hidden {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.tribe-events-c-top-bar__nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Prev/Next buttons */
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next,
.tribe-events-c-top-bar__nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  color: #333 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.tribe-events .tribe-events-c-nav__prev:hover,
.tribe-events .tribe-events-c-nav__next:hover {
  background: #f4f4f4 !important;
  color: #8B2020 !important;
  border-color: #8B2020 !important;
}
.tribe-events-c-top-bar__nav-link svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
}

/* Today button */
.tribe-events .tribe-events-c-nav__today {
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  color: #333 !important;
  background: #fff !important;
}

/* Upcoming dropdown */
.tribe-events .tribe-events-c-top-bar__datepicker-button {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #222 !important;
  background: transparent !important;
  border: none !important;
  white-space: nowrap !important;
}

/* Month separator */
.tribe-events-calendar-list__month-separator-text {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #666 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

/* Event list cards */
.tribe-events .tribe-events-calendar-list__event,
.tribe-events .tribe-events-calendar-list__event-row,
.tribe-events-calendar-list__event-article {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
  padding: 20px !important;
}
.tribe-events .tribe-events-calendar-list__event {
  margin: 0 0 26px !important;
  padding: 26px 28px !important;
}
.tribe-events-calendar-list__event-title a {
  color: #222 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.tribe-events-calendar-list__event-title a:hover { color: #8B2020 !important; }
.tribe-events-calendar-list__event-datetime {
  color: #555 !important;
  font-size: 14px !important;
}

/* Cost pill */
.tribe-events .pdd-event-cost,
.tribe-events .tribe-events-calendar-list__event-cost,
.tribe-events .tribe-events-calendar-list__event-cost span,
.tribe-formatted-price {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border: 1px solid rgba(0,0,0,.20) !important;
  border-radius: 12px !important;
  padding: 7px 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #666 !important;
  line-height: 1 !important;
}

/* Images in list cards */
.tribe-events .tribe-events-calendar-list__event-featured-image,
.tribe-events .tribe-events-calendar-list__event-featured-image-wrapper img {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* Find out more button */
.tribe-events-calendar-list__event-description .tribe-events-calendar-list__event-featured-image-link,
.tribe-event-url,
a.tribe-event-url {
  display: inline-block !important;
  background: #8B2020 !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  margin-top: 10px !important;
}
a.tribe-event-url:hover { background: #6e1818 !important; }

/* Venue in list cards */
.tribe-events-calendar-list__event-venue { display: block !important; font-size: 14px !important; color: #777 !important; }
.tribe-events-calendar-list__event-venue a { color: #777 !important; text-decoration: none !important; }
.tribe-events-calendar-list__event-venue a:hover { color: #af002e !important; }
.pdd-event-venue-link { color: #777 !important; text-decoration: none !important; }
.pdd-event-venue-link:hover { color: #af002e !important; }

/* Fix filter bar expanding over content */
.tribe-events .tribe-events-header__top-bar,
.tribe-events .tribe-events-c-search__input-field-wrapper,
.tribe-events .tribe-events-c-search__input-wrapper,
.tribe-events .tribe-search-form { position: relative !important; }
.tribe-events .tribe-events-header { position: relative !important; overflow: visible !important; z-index: auto !important; }
.tribe-events .tribe-events-c-search__input-field-wrapper--opened,
.tribe-events .tribe-events-c-search--opened {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .tribe-events .tribe-events-header__events-bar,
  .tribe-events .tribe-events-c-events-bar { padding: 14px !important; }
  .tribe-events .tribe-events-calendar-list__event { padding: 18px !important; }
}


/* =========================================================
   TEC Venue Page
   ========================================================= */
.tribe-venue-location,
.tribe-events-single.tribe-venue {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 30px 40px;
  margin-bottom: 24px;
}
.tribe-venue h1.tribe-events-single-event-title {
  font-family: "Roboto Slab", serif !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  color: #3c3c3c !important;
  margin-bottom: 16px !important;
}
.tribe-venue .tribe-events-back a { color: #af002e !important; font-size: 13px !important; text-decoration: none !important; }
.tribe-venue-location address,
.tribe-venue-location .tribe-address { font-size: 14px !important; color: #444 !important; line-height: 1.6 !important; }
.tribe-venue-location a { color: #af002e !important; text-decoration: none !important; }
.tribe-venue-location a:hover { text-decoration: underline !important; }
.tribe-venue-location .tribe-events-venue-map iframe { border-radius: 10px !important; display: block !important; }
.tribe-venue-list-title,
.tribe-venue h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #3c3c3c !important;
  margin: 28px 0 16px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;
}
.tribe-venue .tribe-events-c-nav__prev,
.tribe-venue .tribe-events-c-nav__next { background: #fff !important; border: 1px solid #ddd !important; border-radius: 6px !important; }
.tribe-venue .tribe-events-c-nav__today { border: 1px solid #ddd !important; border-radius: 6px !important; font-size: 13px !important; }
.tribe-venue .tribe-events-calendar-list__event-article {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 20px 24px !important;
  margin-bottom: 16px !important;
}
.tribe-venue .tribe-events-calendar-list__event-title a { font-family: "Roboto Slab", serif !important; color: #3c3c3c !important; text-decoration: none !important; }
.tribe-venue .tribe-events-calendar-list__event-title a:hover { color: #af002e !important; }
.tribe-venue .tribe-events-calendar-list__event-cost span {
  border: 1px solid rgba(0,0,0,.15) !important;
  border-radius: 12px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background: #fff !important;
}
.tribe-venue a.tribe-event-url {
  background: #a5332a !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  text-decoration: none !important;
  display: inline-block !important;
  margin-top: 10px !important;
}

/* Venue detail page */
.pdd-venue-detail-wrap { margin-top: 20px; }
.pdd-venue-detail-grid { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.pdd-venue-detail-info { flex: 0 0 220px; font-size: 14px; color: #444; line-height: 1.7; }
.pdd-venue-detail-info i { color: #af002e; margin-right: 6px; }
.pdd-venue-detail-info a { color: #af002e; text-decoration: none; }
.pdd-venue-detail-info a:hover { text-decoration: underline; }
.pdd-venue-address { margin-bottom: 8px; }
.pdd-venue-detail-map { flex: 1; min-width: 200px; }
.pdd-venue-detail-map iframe { border-radius: 10px !important; display: block; width: 100%; }
.pdd-venue-events-heading {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #3c3c3c !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;
  margin-bottom: 16px !important;
}

@media (max-width: 768px) {
  .tribe-venue-location,
  .tribe-events-single.tribe-venue { padding: 18px !important; }
  .pdd-venue-detail-grid { flex-direction: column; }
  .pdd-venue-detail-info { flex: 0 0 auto; }
}

body.page .pdd-post-meta,
body.page .fl-module-fl-post-info,
body.page .entry-meta,
body.page .post-meta,
body.page .fl-post-info,
body.page .comment-count {
  display: none !important;
}

/* One-off: donation/product modal button spacing
   (hardcoded product ID — verify still in use, remove when obsolete) */
.wpec-modal-open-product-2334848 {
    margin: 16px 0 !important;
    display: inline-block !important;
}

/* Catch-all image radius for images outside the specific
   post/feed rules above (those win where they apply) */
.fl-post-content img,
.fl-module-content img {
    border-radius: 8px;
}


/* =========================================================
   TEC EVENTS — Layout Containers (consolidated)
   ========================================================= */
.tribe-events .tribe-events-l-container.tribe-common-l-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.tribe-events .tribe-common-l-container,
.tribe-events-view .tribe-common-l-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}
.tribe-events .tribe-events-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Search bar padding and font */
.tribe-events-c-search__input-control--keyword {
    padding: 4px 12px !important;
}
.tribe-events-c-search__input {
    font-size: 16px !important;
    padding: 12px 8px 12px 40px !important;
}

/* Mobile */
@media (max-width: 768px) {
    .tribe-events-c-search {
        padding: 12px !important;
    }
    .tribe-events-c-search__input {
        font-size: 16px !important;
    }
    .tribe-filter-bar__filters-slider-container {
        padding: 8px 12px !important;
    }
    .tribe-filter-bar-c-pill__pill {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
}

/* Match sitewide card corner radius on events search bar */
.tribe-events-c-events-bar.tribe-events-c-events-bar--border {
    border-radius: 14px !important;
    overflow: visible !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.06) !important;
}
.tribe-events .tribe-events-header__events-bar {
    border-radius: 14px !important;
    overflow: hidden !important;
}


/* =========================================================
   WP Caption — remove grey box, round image corners
   ========================================================= */
.wp-caption {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.wp-caption img {
  border-radius: 12px !important;
  display: block;
  width: 100%;
  height: auto;
}
.wp-caption .wp-caption-text {
  text-align: center;
  font-size: 14px;
  color: #7a7a7a;
  padding: 8px 10px 0;
  margin: 0;
}


/* =========================================================
   Event card head: title first on desktop,
   datetime + venue on one row below
   ========================================================= */
.pdd-event-head {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 16px;
}
.pdd-event-head .pdd-event-title {
  grid-row: 1;
  grid-column: 1 / -1;
}
.pdd-event-head .pdd-event-datetime { grid-row: 2; grid-column: 1; }
.pdd-event-head .pdd-event-venue    { grid-row: 2; grid-column: 2; }

.pdd-event-venue a {
  color: #af002e !important;
  text-decoration: none !important;
  font-style: italic;
}

/* Mobile: match live — datetime, title, venue stacked in that order */
@media (max-width: 768px) {
  .pdd-event-head { display: block !important; }
  .pdd-event-head .pdd-event-title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 4px 0 6px !important;
  }
  .pdd-event-datetime {
    font-style: italic;
    color: #8a8a8a;
  }
  .pdd-event-venue {
    font-style: italic;
    font-size: 15px;
  }
}


/* =========================================================
   PDD Login Form
   ========================================================= */
.pdd-login-form-wrap {
  max-width: 360px;
}
.pdd-login-form-wrap input[type="text"],
.pdd-login-form-wrap input[type="password"] {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 12px;
}
.pdd-login-form-wrap input[type="submit"] {
  background: #8B2020;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 10px 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .05em;
  cursor: pointer;
}
.pdd-login-form-wrap input[type="submit"]:hover { background: #6e1818; }
.pdd-login-links { margin-top: 8px; font-size: 13px; }


@media (max-width: 768px) {
  .pdd-event-card {
    display: grid !important;
    grid-template-columns: 64px 1fr !important;
    column-gap: 12px !important;
  }
  .pdd-event-head,
  .pdd-event-meta,
  .pdd-event-row {
    display: contents !important;
  }

  /* Row 1: date, full width, clears the cost pill */
  .pdd-event-datetime {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    padding-right: 70px !important;
    margin: 0 0 10px !important;
  }

  /* Row 2: thumb | title */
  .pdd-event-media {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center;
  }
  .pdd-event-thumb img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin: 0 !important;
  }
  .pdd-event-head .pdd-event-title {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center;
    margin: 0 !important;
  }

  /* Row 3: venue / Row 4: excerpt + button */
  .pdd-event-venue {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    margin: 8px 0 10px !important;
  }
  .pdd-event-body {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
  }

  /* Cost pill pinned to card corner, out of flow */
  .pdd-event-cost {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    float: none !important;
    margin: 0 !important;
    font-size: 12px !important;
    padding: 6px 9px !important;
  }

  /* Events without a thumbnail: collapse to one column */
  .pdd-event-card:not(:has(.pdd-event-thumb img)) {
    grid-template-columns: 1fr !important;
  }
  .pdd-event-card:not(:has(.pdd-event-thumb img)) .pdd-event-title,
  .pdd-event-card:not(:has(.pdd-event-thumb img)) .pdd-event-datetime,
  .pdd-event-card:not(:has(.pdd-event-thumb img)) .pdd-event-venue,
  .pdd-event-card:not(:has(.pdd-event-thumb img)) .pdd-event-body {
    grid-column: 1 !important;
  }
}