/* Independent Upcoming Trainings Widget Stylesheet */

.nabet-training-widget {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    padding: 24px;
    font-family: 'Poppins', sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header Section */
.nabet-training-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.nabet-training-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.nabet-training-month-select-wrapper {
    position: relative;
    display: inline-block;
}

.nabet-training-month-select {
    background: #ffffff;
    border: 1.5px solid #d8d8d8;
    border-radius: 20px;
    padding: 6px 32px 6px 16px;
    font-size: 11px;
    font-weight: 800;
    color: #555555;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.nabet-training-month-select:hover, .nabet-training-month-select:focus {
    border-color: #f26522;
    box-shadow: 0 2px 6px rgba(242, 101, 34, 0.12);
}

.nabet-training-month-select-wrapper::after {
    content: "\25BC";
    font-size: 8px;
    color: #555555;
    position: absolute;
    right: 14px;
    top: 52%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Scroll Area with Fixed Height for 4 Overlapping Cards */
.nabet-training-scroll {
    height: 230px; /* Fits exactly 4 overlapping cards */ 
    overflow-y: auto;
    padding-top: 10px; /* Buffer for hover lift translateY */
    padding-bottom: 20px; /* Buffer for scroll viewport bottom */
    padding-right: 12px;
    margin-right: -12px;
    box-sizing: border-box;
}
.custom-nabet-btn{display:none;}
/* Custom Scrollbar Styles */
.nabet-training-scroll::-webkit-scrollbar {
    width: 6px;
}

.nabet-training-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.nabet-training-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
    transition: background 0.2s;
}

.nabet-training-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Row Anchor Card - Fixed Proportions & Overlap Stacking */
.nabet-training-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: 24px;
    margin-bottom: -16px; /* Elegant overlap shingle effect */
    height: 86px;
    box-sizing: border-box;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, z-index 0.1s;
    cursor: pointer;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.15); /* Demarcate overlapping cards */
    overflow: hidden;
}

.nabet-training-card:last-child {
    margin-bottom: 0;
}

/* Soft Grey and Orange Color Palette Map */
.nabet-bg-light-grey {
    background-color: #aeaeae;
}

.nabet-bg-orange {
    background-color: #929292; /* Selected/highlight orange card background */
}

.nabet-bg-dark-grey {
    background-color: #777777;
}

.nabet-bg-medium-grey {
    background-color: #929292;
}


.nabet-bg-light-grey:hover, .nabet-bg-orange:hover, .nabet-bg-dark-grey:hover, .nabet-bg-medium-grey:hover{
	background-color: #f26522;
}
/* Elevated hover state with border accent & stacking elevation */
.nabet-training-card:hover {
    transform: translateY(-8px); /* Lift card upwards */
    z-index: 9999 !important; /* Bring hovered card to the very front of the overlap stack */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); /* Expanded shadow depth */
    border-color: rgba(255, 255, 255, 0); /* Bright white highlight borders */
}

/* Date Box Left Side */
.nabet-training-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1.5px solid rgba(255, 255, 255, 0.4);
    padding-right: 16px;
    margin-right: 18px;
    min-height: 42px;
    width: 56px;
    box-sizing: border-box;
    flex-shrink: 0;
    text-align: center;
}

.nabet-training-date-month {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}

.nabet-training-date-day {
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

/* Info Details Center Side */
.nabet-training-card-middle {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nabet-training-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff !important;
    margin: 0 0 3px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.nabet-training-location {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-weight: 500;
}

/* Chevron Icon Right Side */
.nabet-training-card-chevron {
    margin-left: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nabet-training-chevron {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.2s ease;
    line-height: 1;
}

.nabet-training-card:hover .nabet-training-chevron {
    transform: translateY(2px);
    color: #ffffff;
}

/* Bottom Filtering Pills Row */
.nabet-training-filter {
    display: flex;
	justify-content:space-between;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #eaeaea;
}

.nabet-training-pill {
    background-color: #dedede; /* Very light grey background matching mockup */
    color: #475569;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    outline: none;
    text-transform: capitalize;
    text-decoration: none !important; /* No underlines on link anchors */
    display: inline-block;
    box-sizing: border-box;
}

.nabet-training-pill:hover {
    background-color: #cbd5e1; /* Darker grey on hover */
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Active Pill - Slightly darker, no bright blue */
.nabet-training-pill.active {
    background-color: #718096; /* Elegant Slate Medium-Dark Gray */
    color: #ffffff;
}

/* Client-Side Empty State container */
.nabet-training-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
    color: #718096;
}

.nabet-training-state-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

/* Tablet & Mobile Grid Adaptation */
@media (max-width: 768px) {
    .nabet-training-widget {
        padding: 16px;
    }
    .nabet-training-scroll {
        height: 350px;
        padding-right: 6px;
        margin-right: -6px;
    }
    .nabet-training-card {
        padding: 12px 16px;
        height: auto;
        min-height: 86px;
    }
}
