/* EVRS Events Integration Styles */

/* ========================================
   BUTTONS / CTA - Match "Become A Member" style
   ======================================== */
.evrs-featured-btn,
.evrs-btn {
    display: inline-block;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background: rgb(26, 54, 96);
    padding: 20px 40px;
    border-radius: 5px;
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.evrs-featured-btn:hover,
.evrs-btn:hover {
    background: rgb(20, 42, 75);
    color: #fff;
}

.evrs-btn-full {
    display: block;
    width: 100%;
}

/* ========================================
   GRID LAYOUT (upcoming/past events shortcode)
   ======================================== */
.evrs-events-grid {
    display: grid;
    gap: 24px;
    margin: 30px 0;
}

.evrs-columns-2 { grid-template-columns: repeat(2, 1fr) !important; }
.evrs-columns-3 { grid-template-columns: repeat(3, 1fr) !important; }
.evrs-columns-4 { grid-template-columns: repeat(4, 1fr) !important; }

@media (max-width: 768px) {
    .evrs-columns-2,
    .evrs-columns-3,
    .evrs-columns-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .evrs-columns-3,
    .evrs-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.evrs-event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.evrs-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.evrs-event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.evrs-event-content {
    padding: 20px;
}

.evrs-event-category {
    display: none;
}

.evrs-event-date {
    color: rgb(26, 54, 96);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.evrs-event-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.evrs-event-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.evrs-event-title a:hover {
    color: rgb(26, 54, 96);
}

.evrs-event-venue {
    font-size: 13px;
    color: #666;
}

.evrs-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* ========================================
   FEATURED EVENTS CARDS (Homepage)
   Fixed height images, flexbox for equal cards,
   buttons pinned to bottom
   ======================================== */
.evrs-featured-events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .evrs-featured-events {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .evrs-featured-events {
        grid-template-columns: repeat(2, 1fr);
    }
}

.evrs-featured-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.evrs-featured-card:hover {
    transform: translateY(-5px);
}

/* All images same height - forced */
.evrs-featured-image {
    position: relative;
    overflow: hidden;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    flex-shrink: 0;
}

.evrs-featured-image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block;
}

/* Hide badge */
.evrs-featured-badge {
    display: none;
}

/* FIXED: Flex content to push button to bottom */
.evrs-featured-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title takes available space */
.evrs-featured-title {
    font-family: Quicksand, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding-bottom: 20px;
    flex: 1;
}

.evrs-featured-title a {
    color: rgb(14, 32, 77);
    text-decoration: none;
}

.evrs-featured-title a:hover {
    color: rgb(26, 54, 96);
}

/* Date - more prominent */
.evrs-featured-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.evrs-featured-date {
    font-family: Roboto, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: rgb(26, 54, 96);
}

.evrs-featured-venue {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #555;
}

/* No emoji */
.evrs-featured-date::before,
.evrs-featured-venue::before {
    content: none;
}

/* Button full width, pinned to bottom */
.evrs-featured-content .evrs-featured-btn {
    flex-shrink: 0;
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* ========================================
   SPONSOR + CTA SECTION (Single Event Page)
   ======================================== */

/* Details box after image */
.evrs-event-details-box {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.evrs-event-details-box .evrs-detail-row {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    font-family: Roboto, sans-serif;
}

.evrs-event-details-box .evrs-detail-row:last-child {
    border-bottom: none;
}

.evrs-event-details-box .evrs-detail-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    width: 100px;
    flex-shrink: 0;
}

.evrs-event-details-box .evrs-detail-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Sponsor box - white with subtle border */
.evrs-event-sponsor-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
}

.evrs-event-sponsor-box .evrs-sponsor-label {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.evrs-event-sponsor-box .evrs-sponsor-logo {
    max-height: 50px;
    width: auto;
}

/* CTA full width */
.evrs-event-cta-full {
    margin: 20px 0;
}

.evrs-event-cta-full .evrs-btn {
    display: block;
    width: 100%;
}

/* Hide TEC default details section (we show our own) */
.tribe-events-single .tribe-events-meta-group-details {
    display: none;
}

/* Legacy extras container */
.evrs-event-extras {
    margin-top: 30px;
}

/* ========================================
   FEATURED SECTION HEADER & CAROUSEL
   ======================================== */

.evrs-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.evrs-featured-section-title {
    font-family: Quicksand, sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: rgb(14, 32, 77);
    margin: 0;
}

.evrs-featured-viewall {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgb(26, 54, 96);
    text-decoration: none;
    white-space: nowrap;
}

.evrs-featured-viewall:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .evrs-featured-header {
        flex-direction: column;
        gap: 10px;
    }
    .evrs-featured-section-title {
        font-size: 28px;
    }
}

/* Carousel */
.evrs-carousel-wrapper {
    position: relative;
}

.evrs-carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 10px 0;
}

.evrs-carousel-track::-webkit-scrollbar {
    display: none;
}

.evrs-carousel-track .evrs-featured-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    min-width: 300px;
}

@media (max-width: 768px) {
    .evrs-carousel-track .evrs-featured-card {
        flex: 0 0 85%;
        min-width: 280px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .evrs-carousel-track .evrs-featured-card {
        flex: 0 0 calc(50% - 15px);
    }
}

.evrs-carousel-prev,
.evrs-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(26, 54, 96);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}

.evrs-carousel-prev:hover,
.evrs-carousel-next:hover {
    background: rgb(20, 42, 75);
}

.evrs-carousel-prev { left: -24px; }
.evrs-carousel-next { right: -24px; }

@media (max-width: 768px) {
    .evrs-carousel-prev { left: -10px; }
    .evrs-carousel-next { right: -10px; }
    .evrs-carousel-prev,
    .evrs-carousel-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ========================================
   CUSTOM MENU - Modern clean style
   ======================================== */

/* Main nav links */
#mastmenu > li > a {
    font-family: Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    color: rgb(14, 32, 77) !important;
    text-transform: none !important;
    padding: 10px 16px !important;
    transition: color 0.2s ease !important;
    position: relative;
}

#mastmenu > li > a:hover,
#mastmenu > li.current-menu-item > a,
#mastmenu > li.current-menu-ancestor > a {
    color: rgb(26, 54, 96) !important;
}

/* Subtle underline on hover */
#mastmenu > li > a::after {
    content: "" !important;
    position: absolute !important;
    bottom: 2px !important;
    left: 16px !important;
    right: 16px !important;
    height: 2px !important;
    background: rgb(26, 54, 96) !important;
    transform: scaleX(0) !important;
    transition: transform 0.25s ease !important;
    transform-origin: center !important;
    width: auto !important;
    border-radius: 0 !important;
}

#mastmenu > li > a:hover::after,
#mastmenu > li.current-menu-item > a::after,
#mastmenu > li.current-menu-ancestor > a::after {
    transform: scaleX(1) !important;
}

/* Chevron down for items with children */
#mastmenu > li.menu-item-has-children > a::after {
    font-family: Material-Design-Iconic-Font !important;
    content: '\f2f9' !important;
    position: relative !important;
    padding-left: 7px !important;
    color: inherit !important;
    font-weight: bold !important;
    font-size: 16px !important;
    background: none !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    width: auto !important;
    display: inline !important;
}

/* First level dropdown */
#mastmenu .sub-menu {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(14, 32, 77, 0.12) !important;
    padding: 12px 0 !important;
    min-width: 240px !important;
    border: 1px solid rgba(14, 32, 77, 0.06) !important;
    animation: evrsMenuIn 0.2s ease !important;
}

@keyframes evrsMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown items */
#mastmenu .sub-menu > li > a {
    font-family: Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgb(51, 51, 51) !important;
    padding: 10px 24px !important;
    transition: all 0.15s ease !important;
    display: block !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-left: 3px solid transparent !important;
}

#mastmenu .sub-menu > li > a:hover {
    color: rgb(26, 54, 96) !important;
    background: rgba(26, 54, 96, 0.04) !important;
    border-left-color: rgb(26, 54, 96) !important;
}

/* Sub-items with children: arrow right */
#mastmenu .sub-menu > li.menu-item-has-children > a::after {
    content: "\203A" !important;
    float: right !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #aaa !important;
    position: static !important;
    transform: none !important;
    background: none !important;
    height: auto !important;
    width: auto !important;
    display: inline !important;
}

#mastmenu .sub-menu > li.menu-item-has-children:hover > a::after {
    color: rgb(26, 54, 96) !important;
}

/* Third-level fly-out */
#mastmenu .sub-menu .menu-item-has-children {
    position: relative;
}

#mastmenu .sub-menu .menu-item-has-children > .sub-menu {
    position: absolute !important;
    left: calc(100% + 4px) !important;
    top: -12px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    z-index: 9999;
}

#mastmenu .sub-menu .menu-item-has-children:hover > .sub-menu {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Bridge gap for hover */
#mastmenu .sub-menu .menu-item-has-children::after {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 12px;
    height: 100%;
}

/* Non-clickable parent label (Annual Meeting with #) */
#mastmenu .sub-menu > li.menu-item-has-children > a[href="#"] {
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: rgb(14, 32, 77) !important;
    cursor: default !important;
    border-left-color: transparent !important;
}

#mastmenu .sub-menu > li.menu-item-has-children > a[href="#"]:hover {
    background: transparent !important;
}

/* ========================================
   TEC FONT OVERRIDE
   ======================================== */

/* Base: Roboto */
.tribe-events,
.tribe-events *,
.tribe-common,
.tribe-common * {
    font-family: Roboto, sans-serif;
}

/* Headings: Quicksand */
.tribe-events .tribe-events-single-event-title,
.tribe-events-pg-template h1,
.tribe-events-pg-template h2,
.tribe-events-pg-template h3,
.tribe-events h1,
.tribe-events h2,
.tribe-events h3,
.tribe-common h1,
.tribe-common h2,
.tribe-common h3 {
    font-family: Quicksand, sans-serif;
}

/* Event titles in grids: Roboto */
.tribe-events .tribe-events-calendar-month__header-column-title,
.tribe-events .tribe-events-calendar-month__calendar-event-title,
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-day__event-title {
    font-family: Roboto, sans-serif;
}

/* FIXED: April 2026 - target button AND all children */
.tribe-events .tribe-events-c-top-bar__datepicker-button,
.tribe-common .tribe-events-c-top-bar__datepicker-button,
.tribe-events .tribe-events-c-top-bar__datepicker-button *,
.tribe-common .tribe-events-c-top-bar__datepicker-button * {
    font-family: Quicksand, sans-serif !important;
    font-weight: 700 !important;
    font-size: 40px !important;
    color: rgb(14, 32, 77) !important;
}

/* Event titles in grids */
.tribe-events-calendar-month__calendar-event-title a,
.tribe-events-calendar-month__calendar-event-tooltip-title,
.tribe-events-calendar-list__event-title a {
    font-family: Roboto, sans-serif;
    font-weight: 500;
}

/* Search bar */
.tribe-events .tribe-events-c-search__input,
.tribe-common .tribe-common-form-control-text__input.tribe-events-c-search__input {
    font-family: Roboto, sans-serif !important;
}

/* View tabs */
.tribe-events .tribe-events-c-view-selector__list-item-text {
    font-family: Roboto, sans-serif;
    font-weight: 500;
}

/* Day numbers */
.tribe-events-calendar-month__day-date-daynum {
    font-family: Roboto, sans-serif;
}

/* TEC Buttons */
.tribe-events .tribe-events-c-search__button,
.tribe-events .tribe-common-c-btn,
.tribe-common .tribe-common-c-btn {
    font-family: Roboto, sans-serif !important;
    font-weight: 500;
    background: rgb(26, 54, 96) !important;
    border-radius: 5px;
}

.tribe-events .tribe-events-c-search__button:hover,
.tribe-common .tribe-common-c-btn:hover {
    background: rgb(20, 42, 75) !important;
}

/* ========================================
   SINGLE EVENT PAGE
   ======================================== */

.tribe-events-single-event-title {
    font-family: Quicksand, sans-serif !important;
    font-weight: 700;
    font-size: 36px;
    color: rgb(14, 32, 77);
    margin-bottom: 10px;
}

/* Hide Homepage category link */
.tribe-events-event-categories a[href*="homepage"] {
    display: none;
}

.tribe-events-single {
    max-width: 900px;
    margin: 0 auto;
}

.tribe-events-single .tribe-events-event-image img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.tribe-events-schedule {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    color: #555;
    padding: 12px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

/* Single event meta group styling */
.tribe-events-single .tribe-events-meta-group {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.tribe-events-single .tribe-events-meta-group .tribe-events-single-section-title {
    font-family: Quicksand, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: rgb(14, 32, 77);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgb(26, 54, 96);
}

.tribe-events-meta-group dt {
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.tribe-events-meta-group dd {
    font-family: Roboto, sans-serif;
    font-size: 15px;
    color: #333;
    margin-bottom: 16px;
}

/* Navigation */
.tribe-events-back a,
.tribe-events-nav-pagination a {
    font-family: Roboto, sans-serif;
    font-weight: 500;
    color: rgb(26, 54, 96);
    text-decoration: none;
}

.tribe-events-back a:hover,
.tribe-events-nav-pagination a:hover {
    text-decoration: underline;
}

/* Event URL link as button */
.tribe-events-event-url a {
    display: inline-block;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff !important;
    background: rgb(26, 54, 96);
    padding: 20px 40px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tribe-events-event-url a:hover {
    background: rgb(20, 42, 75);
}

/* Subscribe dropdown */
.tribe-events .tribe-events-c-subscribe-dropdown__button {
    font-family: Roboto, sans-serif !important;
    font-weight: 500;
    border: 2px solid rgb(26, 54, 96);
    color: rgb(26, 54, 96);
    border-radius: 5px;
    background: transparent;
}

.tribe-events .tribe-events-c-subscribe-dropdown__button:hover {
    background: rgb(26, 54, 96);
    color: #fff;
}

.tribe-events-cal-links a {
    font-family: Roboto, sans-serif;
    font-weight: 500;
    color: rgb(26, 54, 96);
}

/* ========================================
   LIST VIEW
   ======================================== */

/* Event titles in list view: Quicksand */
.tribe-events-calendar-list__event-title {
    font-family: Quicksand, sans-serif !important;
}

.tribe-events-calendar-list__event-title a {
    font-family: Quicksand, sans-serif !important;
    font-weight: 700 !important;
    color: rgb(14, 32, 77);
}

/* Date tag: weekday (SAT) in Quicksand */
.tribe-events-calendar-list__event-date-tag-weekday {
    font-family: Quicksand, sans-serif !important;
    font-weight: 700 !important;
    color: rgb(14, 32, 77) !important;
}

/* Date tag: day number (4) - big Quicksand */
.tribe-events-calendar-list__event-date-tag-daynum {
    font-family: Quicksand, sans-serif !important;
    font-weight: 700 !important;
    font-size: 40px !important;
    color: rgb(14, 32, 77) !important;
    line-height: 1 !important;
}

/* Date tag datetime container */
.tribe-events-calendar-list__event-date-tag-datetime,
.tribe-events-calendar-list__event-date-tag-datetime * {
    font-family: Quicksand, sans-serif !important;
}

/* Event datetime (April 4 @ 3:00 pm - 5:00 pm) - more prominent */
.tribe-events-calendar-list__event-datetime,
.tribe-events-calendar-list__event-datetime * {
    font-family: Roboto, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: rgb(26, 54, 96) !important;
}

/* Month separator (April 2026) - Quicksand */
.tribe-events-calendar-list__month-separator-text {
    font-family: Quicksand, sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    color: rgb(14, 32, 77) !important;
}
