/*
Theme Name: Hestia Pro Child
Theme URI: https://www.themeisle.com/
Description: This is a custom child theme I have created.
Author: ThemeIsle
URI: https://www.themeisle.com/
Template: hestia
Version: 14.8.1760376018
*/

/* Modern Events Calendar - Single Event Styling */

/* Date and Time in single row block */
.mec-single-event .mec-events-meta-group-date,
.mec-single-event .mec-events-meta-group-date + .mec-events-meta-group {
    display: inline-block;
    vertical-align: top;
    margin-right: 30px;
    background: #f8f8f8;
    padding: 15px 20px;
    border-radius: 4px;
}

/* Date/Time container should be flexbox */
.mec-single-event .mec-events-meta-group-date {
    margin-bottom: 20px;
}

/* Icons to the left of headings */
.mec-single-event .mec-events-meta-group dt {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.mec-single-event .mec-events-meta-group dt i {
    margin-right: 8px;
    font-size: 18px;
}

/* Make date and time more prominent */
.mec-single-event .mec-events-meta-group dd {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0;
    padding-left: 26px;
}

/* Make description larger */
.mec-single-event .entry-content,
.mec-single-event .mec-events-event-content {
    font-size: 18px;
    line-height: 1.6;
    margin: 30px 0;
}

/* Fix booking section alignment */
.mec-single-event .mec-event-booking {
    margin: 30px 0;
}

.mec-single-event .mec-event-booking .mec-book-button,
.mec-single-event .mec-event-booking .mec-booking-button {
    float: none !important;
    display: inline-block;
    margin: 10px 0;
}

.mec-single-event .mec-event-booking .mec-book-form-gateway-checkout {
    float: none !important;
    text-align: left;
}

.mec-single-event .mec-event-booking::after {
    content: "";
    display: table;
    clear: both;
}

/* Ticket counter alignment */
.mec-single-event .mec-event-tickets-list {
    margin: 20px 0;
}

.mec-single-event .mec-booking-ticket-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

/* Next button styling */
.mec-single-event .mec-book-form-next-button,
.mec-single-event button[type="submit"] {
    margin: 20px 0 !important;
    float: none !important;
    display: inline-block !important;
}

/* Fix share event section */
.mec-single-event .mec-events-meta-group-booking h3,
.mec-single-event .mec-event-sharing-wrap h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: #333;
}

.mec-single-event .mec-event-sharing {
    list-style: none !important;
    padding: 0 !important;
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.mec-single-event .mec-event-sharing li {
    list-style: none !important;
    margin: 0 !important;
}

.mec-single-event .mec-event-sharing a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    color: white !important;
    font-size: 18px;
    text-decoration: none;
    border-radius: 4px;
}

.mec-single-event .mec-event-sharing .facebook a {
    background-color: #3b5998;
}

.mec-single-event .mec-event-sharing .linkedin a {
    background-color: #0077b5;
}

.mec-single-event .mec-event-sharing .email a {
    background-color: #dd4b39;
}

/* Location styling */
.mec-single-event .mec-events-meta-group-location {
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
}

/* More aggressive MEC styling with !important */

/* Date and Time side by side */
.mec-events-meta-group-date,
.mec-events-meta-group.mec-events-meta-group-date,
article .mec-events-meta-group-date {
    display: inline-block !important;
    vertical-align: top !important;
    margin-right: 30px !important;
    background: #f0f0f0 !important;
    padding: 20px !important;
    border-radius: 6px !important;
    min-width: 200px !important;
}

/* Icon and heading on same line */
.mec-events-meta-group dt,
article dt {
    display: inline-block !important;
    margin-right: 10px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.mec-events-meta-group dt i,
article dt i {
    margin-right: 5px !important;
}

/* Make date/time values bigger */
.mec-events-meta-group dd,
article dd {
    display: inline-block !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Bigger description */
.entry-content,
article .entry-content {
    font-size: 18px !important;
    line-height: 1.7 !important;
    margin: 30px 0 !important;
}

/* Book Event section */
.mec-events-meta-group-booking {
    margin: 30px 0 !important;
}

/* Fix ticket selector and buttons */
.mec-event-tickets-list,
.mec-book-form-price {
    width: 100% !important;
    max-width: 600px !important;
}

.button-wrapper,
.mec-book-form-next-button,
button[type=submit] {
    float: none !important;
    text-align: left !important;
    margin: 20px 0 !important;
}

.mec-book-form-gateway-checkout {
    float: none !important;
    width: 100% !important;
    text-align: left !important;
}

/* Share icons - hide text bullets, show proper icons */
.mec-event-sharing {
    list-style: none !important;
    padding-left: 0 !important;
}

.mec-event-sharing li {
    display: inline-block !important;
    margin-right: 10px !important;
    list-style: none !important;
}

.mec-event-sharing li:before {
    content: none !important;
}

.mec-event-sharing a {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    border-radius: 4px !important;
    color: white !important;
    text-decoration: none !important;
}

.mec-event-sharing .facebook a {
    background: #3b5998 !important;
}

.mec-event-sharing .linkedin a {
    background: #0077b5 !important;
}

.mec-event-sharing .email a {
    background: #dd4b39 !important;
}

/* More aggressive MEC styling with !important */

/* Date and Time side by side */
.mec-events-meta-group-date,
.mec-events-meta-group.mec-events-meta-group-date,
article .mec-events-meta-group-date {
    display: inline-block !important;
    vertical-align: top !important;
    margin-right: 30px !important;
    background: #f0f0f0 !important;
    padding: 20px !important;
    border-radius: 6px !important;
    min-width: 200px !important;
}

/* Icon and heading on same line */
.mec-events-meta-group dt,
article dt {
    display: inline-block !important;
    margin-right: 10px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.mec-events-meta-group dt i,
article dt i {
    margin-right: 5px !important;
}

/* Make date/time values bigger */
.mec-events-meta-group dd,
article dd {
    display: inline-block !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Bigger description */
.entry-content,
article .entry-content {
    font-size: 18px !important;
    line-height: 1.7 !important;
    margin: 30px 0 !important;
}

/* Book Event section */
.mec-events-meta-group-booking {
    margin: 30px 0 !important;
}

/* Fix ticket selector and buttons */
.mec-event-tickets-list,
.mec-book-form-price {
    width: 100% !important;
    max-width: 600px !important;
}

.button-wrapper,
.mec-book-form-next-button,
button[type="submit"] {
    float: none !important;
    text-align: left !important;
    margin: 20px 0 !important;
}

.mec-book-form-gateway-checkout {
    float: none !important;
    width: 100% !important;
    text-align: left !important;
}

/* Share icons - hide text bullets, show proper icons */
.mec-event-sharing {
    list-style: none !important;
    padding-left: 0 !important;
}

.mec-event-sharing li {
    display: inline-block !important;
    margin-right: 10px !important;
    list-style: none !important;
}

.mec-event-sharing li:before {
    content: none !important;
}

.mec-event-sharing a {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    border-radius: 4px !important;
    color: white !important;
    text-decoration: none !important;
}

.mec-event-sharing .facebook a {
    background: #3b5998 !important;
}

.mec-event-sharing .linkedin a {
    background: #0077b5 !important;
}

.mec-event-sharing .email a {
    background: #dd4b39 !important;
}
/* Force date and time blocks side by side */
article .mec-events-meta-group-date {
    display: inline-block !important;
    vertical-align: top !important;
    background: #f5f5f5 !important;
    padding: 20px !important;
    margin: 10px 20px 10px 0 !important;
    border-radius: 8px !important;
    min-width: 180px !important;
}

/* Target the time group that comes after date */
article .mec-events-meta-group-date ~ .mec-events-meta-group {
    display: inline-block !important;
    vertical-align: top !important;
    background: #f5f5f5 !important;
    padding: 20px !important;
    margin: 10px 0 !important;
    border-radius: 8px !important;
    min-width: 180px !important;
}

/* Make icon and heading appear on same line */
article dl dt {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #666 !important;
}

article dl dt i {
    display: inline-block !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

/* Make the date/time values prominent */
article dl dd {
    display: block !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
/* Hide "Book Event" heading and replace with "Going?" */
.mec-events-meta-group-booking h3,
.mec-single-event .mec-events-meta-group-booking > h3 {
    font-size: 0 !important;
}

.mec-events-meta-group-booking h3:before,
.mec-single-event .mec-events-meta-group-booking > h3:before {
    content: "Going?" !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    display: block !important;
}

/* Fix MEC modal flash - make preloader less intrusive */
.mec-modal-preloader {
    background: transparent !important;
    pointer-events: none !important;
}

/* Optional: Show a subtle centered spinner instead of full overlay */
.mec-modal-preloader::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: mec-spin 1s linear infinite;
    z-index: 9999;
}

@keyframes mec-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Fix calendar list view - prevent categories from wrapping below date box */
/* Position date box absolutely and add left padding to content */
.mec-event-list-minimal .mec-event-article .col-md-9 {
    padding-left: 100px !important;
    position: relative;
}

.mec-event-list-minimal .mec-event-article .mec-event-date {
    position: absolute !important;
    left: 15px;
    top: 0;
    float: none !important;
}

/* Style time within date box */
.mec-event-date .mec-event-time {
    font-size: 11px;
    margin-top: 5px;
    font-weight: normal;
    text-transform: none;
}

/* Make date box wider and update layout */
.mec-event-list-minimal .mec-event-article .mec-event-date {
    width: 70px !important;
    padding: 10px 5px !important;
}

/* Style day abbreviation at top */
.mec-event-date .mec-event-day {
    font-size: 11px;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

/* Day number styling */
.mec-event-date span {
    font-size: 28px !important;
    display: block;
    line-height: 1;
    margin: 5px 0;
}

/* Bigger time in date box */
.mec-event-date .mec-event-time {
    font-size: 13px !important;
    margin-top: 5px !important;
    font-weight: 600;
}

/* Fix date box layout - ensure proper height and no overlaps */
.mec-event-list-minimal .mec-event-article .mec-event-date {
    min-height: 85px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Ensure day abbreviation is visible */
.mec-event-date .mec-event-day {
    font-size: 11px !important;
    font-weight: bold !important;
    display: block !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

/* Day number - larger and centered */
.mec-event-date span:not(.mec-multiple-dates):not(.mec-event-loc-place) {
    font-size: 32px !important;
    font-weight: bold !important;
    display: block !important;
    line-height: 1 !important;
    margin: 5px 0 !important;
}

/* Remove two-tone gradient effect from date boxes */
.mec-event-list-minimal .mec-event-date:after,
.mec-event-list-minimal .mec-event-date::after {
    display: none !important;
    content: none !important;
}

/* Ensure day number is perfectly centered */
.mec-event-date span:not(.mec-multiple-dates):not(.mec-event-loc-place) {
    text-align: center !important;
    width: 100% !important;
}

/* Time styling */
.mec-event-date .mec-event-time {
    font-size: 12px !important;
    font-weight: 600 !important;
    display: block !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Ensure articles have proper spacing */
.mec-event-list-minimal .mec-event-article {
    margin-bottom: 25px !important;
    min-height: 90px !important;
    padding: 0 !important;
    display: block !important;
}


/* Ensure text is white on gradient background */
.mec-event-date.mec-bg-color .mec-event-day,
.mec-event-date.mec-bg-color span,
.mec-event-date.mec-bg-color .mec-event-time {
    color: white !important;
}

/* Date box rounded corners - preserve category colors */
.mec-event-article .mec-event-date.mec-bg-color {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Ensure text is white on colored backgrounds */
.mec-event-date.mec-bg-color .mec-event-day,
.mec-event-date.mec-bg-color span,
.mec-event-date.mec-bg-color .mec-event-time {
    color: white !important;
}

/* Make location and category text the same size, and category slightly smaller */
.mec-event-list-minimal .mec-event-loc-place {
    font-size: 16px !important;
    color: #151515 !important;
}

.mec-event-list-minimal .mec-categories-wrapper,
.mec-event-list-minimal .mec-category a {
    font-size: 14px !important;
}

/* Map widget inside location box */
.location-widget .mec-googlemap-details,
.location-widget #mec_map_canvas {
    height: 300px !important;
    border-radius: 6px !important;
}

.location-widget .mec-events-meta-group-gmap {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ==========================================================================
   FIX MOBILE CALENDAR LAYOUT - EVENT LIST MODERN VIEW
   ========================================================================== */

/* Mobile: Stack everything vertically, no overlaps */
@media only screen and (max-width: 960px) {
    /* Reset article positioning */
    body .mec-event-list-modern .mec-event-article {
        position: static !important;
        min-height: auto !important;
        padding: 20px 15px !important;
        display: block !important;
        overflow: visible !important;
    }

    /* Date box: full width at top */
    body .mec-event-list-modern .col-md-2.col-sm-2 {
        position: static !important;
        width: 100% !important;
        left: auto !important;
        top: auto !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
        display: block !important;
        float: none !important;
    }

    /* Center date box */
    body .mec-event-list-modern .mec-event-date {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: auto !important;
        max-width: 180px !important;
        margin: 0 auto !important;
        float: none !important;
    }

    body .mec-event-list-modern .mec-event-date .event-d {
        display: block !important;
        text-align: center !important;
    }

    /* Event content: full width */
    body .mec-event-list-modern .col-md-6.col-sm-6 {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block !important;
        position: static !important;
        float: none !important;
    }

    /* Button wrapper: full width at bottom */
    body .mec-event-list-modern .col-md-4.col-sm-4.mec-btn-wrapper {
        position: static !important;
        width: 100% !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        margin-top: 15px !important;
        padding: 0 !important;
        display: block !important;
        text-align: center !important;
        float: none !important;
    }

    body .mec-event-list-modern .mec-btn-wrapper .mec-booking-button {
        width: 100% !important;
        max-width: 300px !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

/* Fix yellow Interclub event text color */
body .mec-event-list-modern .mec-event-date[style*="#f7eb42"] *,
body .mec-event-list-modern .mec-event-date[style*="f7eb42"] * {
    color: #000 !important;
}

/* Fix desktop layout - prevent content from dropping */
@media only screen and (min-width: 961px) {
    /* Ensure proper spacing for absolutely positioned elements */
    body .mec-event-list-modern .mec-event-article {
        position: relative !important;
        min-height: 160px !important;
        padding: 20px 0 !important;
    }
    
    /* Date box on left */
    body .mec-event-list-modern .col-md-2.col-sm-2 {
        position: absolute !important;
        left: 0 !important;
        top: 20px !important;
        width: 210px !important;
    }
    
    /* Button on right */
    body .mec-event-list-modern .col-md-4.col-sm-4.mec-btn-wrapper {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        padding: 0 !important;
    }
    
    /* Content in middle with proper padding */
    body .mec-event-list-modern .col-md-6.col-sm-6 {
        padding-left: 225px !important;
        padding-right: 195px !important;
        width: 100% !important;
        position: relative !important;
    }
}

/* ========== MOBILE FIX - Center date boxes on mobile ========== */

/* ========== STICKY MONTH HEADERS - Stay below navbar while scrolling ========== */
/* Fix parent containers to allow sticky positioning */
.mec-skin-list-events-container,
.mec-wrap,
.mec-event-list-minimal {
    overflow: visible !important;
}
}
}
}
}
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Ensure first event after month divider aligns properly */
.mec-event-list-minimal .mec-event-article {
    margin-top: 0 !important;
}
.mec-event-list-minimal .mec-event-article {
    margin-top: 0 !important;
}
@media only screen and (max-width: 767px) {
    .mec-event-list-minimal .mec-event-article .mec-event-date {
        position: static !important;
        left: auto !important;
        top: auto !important;
        float: none !important;
        width: auto !important;
        max-width: 150px !important;
        margin: 0 auto 15px auto !important;
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Force all children to center with no offset */
    .mec-event-list-minimal .mec-event-article .mec-event-date span,
    .mec-event-list-minimal .mec-event-article .mec-event-date div,
    .mec-event-list-minimal .mec-event-article .mec-event-date .mec-event-day,
    .mec-event-list-minimal .mec-event-article .mec-event-date .mec-event-time {
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    
    .mec-event-list-minimal .mec-event-article .col-md-9 {
        padding-left: 0 !important;
        width: 100% !important;
    }
    
    .mec-event-list-minimal .mec-event-article {
        min-height: auto !important;
        padding: 18px 20px !important;
    }
}

/* ========== YELLOW INTERCLUB TEXT FIX - Override grey color with black ========== */
/* Target the exact selector that sets grey color, but with higher specificity */
.mec-wrap.colorskin-custom article.mec-event-article.custom-event-color-for-interclub .mec-bg-color {
    color: #000 !important;
}

/* Force ALL child elements to be black too */
.mec-wrap.colorskin-custom article.mec-event-article.custom-event-color-for-interclub .mec-bg-color *,
.mec-wrap.colorskin-custom article.mec-event-article.custom-event-color-for-interclub .mec-bg-color .mec-event-day,
.mec-wrap.colorskin-custom article.mec-event-article.custom-event-color-for-interclub .mec-bg-color span,
.mec-wrap.colorskin-custom article.mec-event-article.custom-event-color-for-interclub .mec-bg-color div,
.mec-wrap.colorskin-custom article.mec-event-article.custom-event-color-for-interclub .mec-bg-color .mec-event-time {
    color: #000 !important;
}
.mec-month-divider {
    margin: 60px 0 15px 0 !important;
    position: sticky !important;
    top: 80px !important;  /* Below the navbar */
    z-index: 99 !important;  /* Below navbar (100) but above content */
    background: linear-gradient(90deg, #4A90E2 0%, #1959A0 100%) !important;
    padding: 18px 20px !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2) !important;
    border: none !important;
}

/* Calendar Subscribe Modal */
.calendar-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.calendar-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.calendar-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.calendar-modal-close:hover,
.calendar-modal-close:focus {
    color: #000;
}

/* Admin bar fix for logged-in users */
body.admin-bar .mec-month-divider {
    top: 112px !important;  /* 80px navbar + 32px admin bar */
}

@media screen and (max-width: 782px) {
    body.admin-bar .mec-month-divider {
        top: 126px !important;  /* 80px navbar + 46px mobile admin bar */
    }
}

/* Subscribe Button Styling */
.calendar-subscribe-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin: 20px auto;
    display: block;
    text-align: center;
}

.calendar-subscribe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.5);
}

/* Enhanced month header text */
.mec-month-divider span {
    color: white !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Add subtle rounded corners */
.mec-month-divider {
    border-radius: 5px !important;
}

/* Remove the line through the month header and force white text */
.mec-month-divider {
    border: none !important;
    text-decoration: none !important;
}

.mec-month-divider * {
    color: white !important;
    text-decoration: none !important;
    border: none !important;
}

.mec-month-divider a {
    color: white !important;
    text-decoration: none !important;
}

.mec-month-divider::before,
.mec-month-divider::after {
    display: none !important;
}

/* Fix month header h5 display and force white text */
.mec-month-divider h5 {
    display: block !important;
    color: white !important;
    margin: 0 !important;
    font-size: 20px !important;
    text-decoration: none !important;
}

.mec-month-divider i {
    color: white !important;
    display: none !important; /* Hide the arrow icon */
}
