/* ===== BERTS Upcoming Courses Shortcode CSS ===== */
.bert-event-list,
.bert-event-list-style2 {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
    background: #F0E4D0; /* sandy beige */
    border-radius: 8px;
}

/* === Parent Event Boxes (Option 1 & 2) === */
.bert-event-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    padding: 10px 80px 10px 95px; /* ✅ extra right padding for badge */
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-left: 6px solid #2554C7;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

/* Hover Overlay Animation */
.bert-event-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(37, 84, 199, 0.15);
    border-radius: 0 40% 40% 0;
    transform-origin: left center;
    transition: width 0.25s ease-in-out;
    z-index: 0;
}
.bert-event-item:hover::after { width: 82.5px; }
.bert-event-datebox, .bert-event-content { position: relative; z-index: 1; }

/* Titles & Meta */
.bert-event-title a {
    color: #8F94A4;
    text-decoration: none;
    font-weight: bold;
}
.bert-event-meta { font-size: 0.9em; color: #333; }

/* === Badges (Open/Closed Warnings) === */
.badge {
    font-size: 0.75em;
    padding: 2px 6px;
    margin-left: 5px;
    border-radius: 4px;
    color: white;
}
.badge-open { background: #3A6EA5; }
.badge-closed { background: #B33A3A; }
.badge-warning { background: #E6952D; }

/* === Date Box (Parent & Extra Days) === */
.bert-event-datebox {
    width: 60px;
    min-width: 60px;
    background: #F7FAFD;
    color: #3A6EA5;
    text-align: center;
    border-radius: 4px;
    padding: 4px 0;
    font-family: Arial, sans-serif;
    border: 1px solid #C2D4EC;
    border-left: 4px solid #3A6EA5;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 3;
}
.bert-event-datebox .month { font-weight: bold; color: #2F5B8B; }
.bert-event-datebox .day { display: block; font-size: 1.4em; font-weight: bold; }

/* === Day Badge (Right Side for Both Styles) === */
.day-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3A6EA5;
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 3;
    min-width: 60px;       /* ✅ consistent width */
    text-align: center;    /* ✅ ensures text is centered */
}
.bert-sub-event-item .day-badge { background: #2C4E80; }

/* ===============================
   OPTION 1 (List Style) Sub-Days
   =============================== */
.bert-subdays {
    list-style: none;
    margin: 8px 0 0 16px;
    padding-left: 14px;
    border-left: 2px dashed #C2C2C2;
    position: relative;
}
.bert-subdays li {
    font-size: 0.9em;
    color: #555;
    padding: 8px 80px 8px 10px; /* ✅ extra right padding for badge */
    margin-left: 20px;
    display: flex;
    align-items: center;
    position: relative;
}
.bert-subdays li .day-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #2C4E80;
    font-size: 0.7em;
    padding: 2px 6px;
}
.bert-subdays .subday-date { font-weight: 600; color: #2C4E80; margin-right: 4px; }
.bert-subdays .subday-time { color: #444; }

/* Hide any standard badge inside list items */
.bert-subdays .badge { display: none; }

/* ===============================
   OPTION 2 (Card Style) Extra Days
   =============================== */
.bert-sub-event-item {
    position: relative;
    margin-left: 12%;
    padding: 15px 80px 15px 95px; /* ✅ right padding for badge */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

/* Hover Effect (Softer than Parent) */
.bert-sub-event-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dotted L Connector (Links to Parent) */
.bert-sub-event-item::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -40px;
    width: 40px;
    height: 100%;
    border-left: 2px dotted #2554C7;
    border-bottom: 2px dotted #2554C7;
    border-radius: 0 0 0 6px;
    z-index: 1;
}

/* Accent Line on Extra Day Cards */
.bert-sub-event-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2554C7;
    border-radius: 3px 0 0 3px;
    z-index: 2;
}

/* Titles & Meta */
.bert-sub-event-item h4 {
    font-size: 1.2em;
    margin: 0 0 5px 0;
    color: #333;
}
.bert-subday-meta {
    font-size: 0.95em;
    color: #555;
    margin: 0 0 5px 0;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 600px) {
    .bert-sub-event-item { margin-left: 8%; padding-left: 80px; padding-right: 60px; }
    .bert-sub-event-item::before { left: -20px; width: 20px; }
    .bert-event-item { padding-left: 80px; padding-right: 60px; }
    .bert-subdays li { padding-right: 60px; }
}

/* ===================================================
   🔹 Hover Enhancements for Shortcode Event Cards
   =================================================== */

/* Main Event Cards (Day 1) Hover Effect */
.bert-event-item {
    position: relative;
    transition: all 0.2s ease-in-out;
}

.bert-event-item:hover {
    transform: scale(1.02);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* ===================================================
   🔹 FINAL HOVER EFFECT FOR MAIN SHORTCODE CARDS
   =================================================== */

/* Base event card */
.bert-event-item {
    position: relative;
    transition: all 0.25s ease-in-out;
}

/* Hover: scale up + soft glow */
.bert-event-item:hover {
    transform: scale(1.03);
    box-shadow: 0px 0px 15px rgba(143, 148, 164, 0.45); /* soft Steel Blue-Grey glow */
    cursor: pointer;
}

/* Ensure links inside cards inherit proper styles */
.bert-event-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}




/* ===================================================
   MODERN COMPACT WIDGET STYLE: UPCOMING COURSES SHORT LIST
   =================================================== */

/* Widget Container – dynamic, smushed, responsive */
.bert-short-widget {
    background: #fff0d9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px; /* compacted */
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 620px; /* slightly wider to feel horizontal */
    margin: 0 auto;
}

/* Widget Title – fluid typography */
.bert-short-title {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid #8F94A4;
    padding-bottom: 4px;
    margin-bottom: 10px;
    text-align: center;
}

/* Grid Layout – compact gap */
.bert-upcoming-short {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px; /* reduced gap */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Event Card – flatter, modern */
.bert-short-card {
    background: #ffffff;
    border-left: 5px solid #2554C7; /* branding stripe */
    border-radius: 6px;
    padding: 6px 8px; /* smushed padding */
    transition: all 0.25s ease-in-out;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* Hover Effect – subtle */
.bert-short-card:hover {
    transform: scale(1.02);
    box-shadow: 0px 3px 10px rgba(143, 148, 164, 0.2);
}

/* Center last card if odd number of events */
.bert-upcoming-short li:last-child:nth-child(odd) {
    grid-column: 1 / span 2;
    justify-self: center;
    width: 75%; /* slightly narrower for balanced centering */
}

/* Badge – inline (not in stripe) */
.bert-short-card .badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Badge Colors */
.badge-open { background: #27ae60; color: #fff; }
.badge-warning { background: #f39c12; color: #fff; }
.badge-closed { background: #c0392b; color: #fff; }

/* Link Styling */
.bert-short-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Course Name */
.bert-short-name {
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: bold;
    color: #2c3e50;
    display: block;
    margin-bottom: 2px;
}

/* Dates */
.bert-short-dates {
    font-size: clamp(12px, 1.4vw, 13px);
    color: #555;
    display: block;
    margin-top: 1px;
}

/* Venue */
.bert-short-venue {
    font-size: 12px;
    color: #666;
}

/* ✅ Mobile – single column */
/* @media (max-width: 500px) {
    .bert-upcoming-short {
        grid-template-columns: 1fr;
    }
    .bert-upcoming-short li:last-child:nth-child(odd) {
        grid-column: auto;
        justify-self: auto;
        width: 100%;
    }
} */