/* =========================================
   FIRST PROMISE – THE EVENTS CALENDAR
========================================= */

/* Find Events button */
.post-type-archive-tribe_events
.tribe-events .tribe-events-c-search__button {
    background: #0A93C7 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.post-type-archive-tribe_events
.tribe-events .tribe-events-c-search__button:hover {
    background: #087EAA !important;
}

/* List view event title */
.post-type-archive-tribe_events
.tribe-events-calendar-list__event-title-link {
    color: #123F52 !important;
}

.post-type-archive-tribe_events
.tribe-events-calendar-list__event-title-link:hover {
    color: #0A93C7 !important;
}

/* List view featured image */
.post-type-archive-tribe_events
.tribe-events-calendar-list__event-featured-image {
    border-radius: 12px !important;
}

/* Active List / Month / Day view */
.post-type-archive-tribe_events
.tribe-events-c-view-selector__list-item--active
.tribe-events-c-view-selector__list-item-link {
    color: #0A93C7 !important;
    border-bottom-color: #0A93C7 !important;
}

/* Subscribe to calendar */
.post-type-archive-tribe_events
.tribe-events-c-subscribe-dropdown__button {
    border-color: #0A93C7 !important;
    color: #0A93C7 !important;
    border-radius: 8px !important;
}

.post-type-archive-tribe_events
.tribe-events-c-subscribe-dropdown__button:hover {
    background: #EAF7FB !important;
    color: #087EAA !important;
}

/* Search / filter bar */
.post-type-archive-tribe_events
.tribe-events-header__events-bar {
    border-radius: 8px !important;
}


/* =========================================
   FIRST PROMISE – SINGLE EVENT
========================================= */

.single-tribe_events .tribe-events-single {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Back to events */
.single-tribe_events .tribe-events-back a {
    color: #0A93C7 !important;
    font-weight: 600;
    text-decoration: none;
}

.single-tribe_events .tribe-events-back a:hover {
    color: #087EAA !important;
}

/* Event title */
.single-tribe_events .tribe-events-single-event-title {
    color: #123F52 !important;
    line-height: 1.15;
}

/* Date and time */
.single-tribe_events .tribe-events-schedule {
    color: #435761 !important;
}

/* Featured image */
.single-tribe_events .tribe-events-event-image {
    margin-top: 28px;
    margin-bottom: 28px;
}

.single-tribe_events .tribe-events-event-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
}

/* Main event description */
.single-tribe_events .tribe-events-single-event-description {
    color: #435761;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Add to Calendar button */
.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
    border-color: #0A93C7 !important;
    color: #0A93C7 !important;
    border-radius: 8px !important;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover {
    background: #EAF7FB !important;
    color: #087EAA !important;
}

/* Event information card */
.single-tribe_events .tribe-events-event-meta {
    width: 100%;
    max-width: 620px;
    background: #F4FAFB;
    border: 1px solid #D6E2E7;
    border-radius: 16px;
    padding: 28px;
    margin-top: 28px;
}

.single-tribe_events .tribe-events-meta-group {
    padding: 0 20px 0 0;
}

.single-tribe_events .tribe-events-single-section-title {
    color: #123F52 !important;
    font-size: 16px;
    font-weight: 700;
}

/* Meta links */
.single-tribe_events .tribe-events-event-meta a {
    color: #0A93C7 !important;
}


/* =========================================
   FIRST PROMISE – SOFT MINIMAL MONTH VIEW
========================================= */

/* Calendar shell */
.tribe-events-view--month .tribe-events-calendar-month {
    background: #FFFFFF;
    border: 1px solid #DCE7EA;
    border-radius: 16px;
    overflow: hidden;
}

/* Weekday header row */
.tribe-events-view--month
.tribe-events-calendar-month__header {
    background: #F4FAFB;
    border-bottom: 1px solid #DCE7EA;
}

/* Properly center weekday columns */
.tribe-common--breakpoint-medium.tribe-events
.tribe-events-calendar-month__header-column {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 6px !important;
    text-align: center !important;
}

/* Weekday labels */
.tribe-common--breakpoint-medium.tribe-events
.tribe-events-calendar-month__header-column-title {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    color: #60737C !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
}

/* Give first weekday comfortable spacing */
.tribe-common--breakpoint-medium.tribe-events
.tribe-events-calendar-month__header-column:first-child {
    padding-left: 12px !important;
}

/* Calendar day cells */
.tribe-events-view--month
.tribe-events-calendar-month__day {
    border-color: #DCE7EA !important;
    transition: background-color 0.18s ease;
}

.tribe-events-view--month
.tribe-events-calendar-month__day:hover {
    background: #F7FBFC;
}

/* Remove TEC's extra blue day-hover indicator */
.tribe-common--breakpoint-medium.tribe-events
.tribe-events-calendar-month__day:hover::after {
    display: none !important;
    content: none !important;
}

/* Day number spacing */
.tribe-events-view--month
.tribe-events-calendar-month__day-date {
    padding: 12px 14px 4px !important;
}

/* Dates outside selected month */
.tribe-events-view--month
.tribe-events-calendar-month__day--other-month {
    background: #FBFCFC;
}

.tribe-events-view--month
.tribe-events-calendar-month__day--other-month
.tribe-events-calendar-month__day-date-link {
    opacity: 0.42;
}

/* Current day */
.tribe-events-view--month
.tribe-events-calendar-month__day--current {
    background: #EEFAF2;
    box-shadow: inset 0 0 0 1px rgba(50, 190, 91, 0.32);
}

.tribe-events-view--month
.tribe-events-calendar-month__day--current
.tribe-events-calendar-month__day-date-link {
    color: #238B43 !important;
    font-weight: 700 !important;
}


/* =========================================
   MONTH VIEW – EVENT CARD
========================================= */

/*
 * Important:
 * No custom border-left here.
 *
 * The Events Calendar/category styling already
 * provides the colored event accent, so we avoid
 * creating the duplicate cyan lines.
 */
.tribe-events-view--month
.tribe-events-calendar-month__calendar-event {
    margin: 6px 8px !important;
    padding: 8px 9px !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

/* Event time */
.tribe-events-view--month
.tribe-events-calendar-month__calendar-event-datetime {
    display: block;
    margin-bottom: 3px;
    color: #60737C !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
}

/* Event title */
.tribe-events-view--month
.tribe-events-calendar-month__calendar-event-title {
    margin: 0 !important;
}

.tribe-events-view--month
.tribe-events-calendar-month__calendar-event-title-link {
    display: block;
    color: #123F52 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
}

.tribe-events-view--month
.tribe-events-calendar-month__calendar-event-title-link:hover {
    color: #087EAA !important;
}

/* Subtle event hover */
.tribe-events-view--month
.tribe-events-calendar-month__calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 63, 82, 0.10);
}

/* Roomier desktop cells */
@media (min-width: 768px) {
    .tribe-events-view--month
    .tribe-events-calendar-month__day-cell {
        min-height: 120px;
    }
}


/* =========================================
   RESPONSIVE – SINGLE EVENT
========================================= */

@media (max-width: 767px) {

    .single-tribe_events .tribe-events-event-image img {
        max-height: none;
    }

    .single-tribe_events .tribe-events-event-meta {
        padding: 20px;
    }

    .single-tribe_events .tribe-events-meta-group {
        padding-right: 0;
    }
}