/* AELP Author Archive Events + Announcements — scoped to the injected AELP tabs. */
.aelp-author-archive-tab a {
    text-decoration: none !important;
}

.aelp-author-archive-tab > i {
    margin-right: 6px;
}

.lp-author-nav ul li a.aelp-author-archive-tab {
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease !important;
}

.lp-author-nav ul li a.aelp-author-archive-tab.active {
    background: var(--aelp-author-tab-gradient) !important;
    color: #fff !important;
    border-radius: 10px !important;
    box-shadow: var(--aelp-author-shadow) !important;
}

.lp-author-nav ul li a.aelp-author-archive-tab.active:before {
    display: none !important;
}

.aelp-author-tab-pane {
    display: none;
}

.aelp-author-tab-pane.active {
    display: block;
}

.aelp-author-event-panel,
.aelp-author-announcement-panel {
    margin-top: 4px;
}

.aelp-author-calendar-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(21,101,192,.10);
    border-radius: var(--aelp-author-radius);
    background: #fff;
    box-shadow: 0 7px 20px rgba(15,23,42,.07);
}

.aelp-author-calendar-head .aelp-event-month-btn {
    border: 0;
    background: transparent;
    color: #52627a;
    font-weight: 600;
    cursor: pointer;
    padding: 7px 9px;
    border-radius: 9px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.aelp-author-calendar-head .aelp-event-month-btn:first-child { text-align: left; }
.aelp-author-calendar-head .aelp-event-month-btn:last-child { text-align: right; }
.aelp-author-calendar-head .aelp-event-month-btn:hover {
    background: #f2f7ff;
    color: #1565c0;
}
.aelp-author-calendar-head .aelp-event-month-btn i:first-child { margin-right: 7px; }
.aelp-author-calendar-head .aelp-event-month-btn i:last-child { margin-left: 7px; }
.aelp-event-month-title {
    font-size: 19px;
    color: #152238;
    letter-spacing: -.2px;
}

.aelp-author-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 22px;
}

.aelp-cal-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #74849b;
    padding: 7px 2px;
}

.aelp-cal-day {
    min-height: 94px;
    padding: 8px;
    border: 1px solid #edf1f5;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15,23,42,.04);
    overflow: hidden;
}
.aelp-cal-day.is-empty {
    background: #fafbfd;
    box-shadow: none;
}
.aelp-cal-day.has-events {
    border-color: rgba(21,101,192,.18);
    box-shadow: 0 5px 14px rgba(21,101,192,.08);
}
.aelp-cal-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    margin-bottom: 6px;
    border-radius: 7px;
    background: #f3f6fa;
    color: #506079;
    font-size: 12px;
    font-weight: 700;
}
.aelp-cal-day.has-events .aelp-cal-number {
    background: var(--aelp-author-tab-gradient);
    color: #fff;
}
.aelp-cal-event,
.aelp-cal-more {
    display: block;
    margin-top: 4px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1.25;
}
.aelp-cal-event {
    color: #173050 !important;
    background: linear-gradient(135deg, rgba(21,101,192,.10), rgba(66,165,245,.14));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aelp-cal-event:hover { color: #1565c0 !important; }
.aelp-cal-more { color: #7b8ca3; }

.aelp-author-event-list,
.aelp-author-announcement-list {
    display: grid;
    gap: 14px;
}

.aelp-author-event-card,
.aelp-author-announcement-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(21,101,192,.10);
    border-radius: var(--aelp-author-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--aelp-author-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.aelp-author-event-card:hover,
.aelp-author-announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15,23,42,.15);
}

.aelp-author-event-thumb {
    flex: 0 0 178px;
    min-height: 142px;
    background: var(--aelp-author-event-gradient);
}
.aelp-author-event-thumb img {
    width: 100%;
    height: 100%;
    min-height: 142px;
    object-fit: cover;
    display: block;
}
.aelp-author-event-body {
    flex: 1 1 auto;
    padding: 17px 18px;
    background: linear-gradient(135deg, #fff 0%, rgba(246,250,255,.92) 100%);
}
.aelp-author-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 15px;
    color: #73839a;
    font-size: 12px;
    margin-bottom: 7px;
}
.aelp-author-event-meta i,
.aelp-author-event-host i,
.aelp-author-event-location i { color: #1565c0; margin-right: 5px; }
.aelp-author-event-body h4,
.aelp-author-announcement-card h4 {
    margin: 0 0 7px !important;
    font-size: 18px;
    line-height: 1.25;
}
.aelp-author-event-body h4 a,
.aelp-author-announcement-card h4 a { color: #132238 !important; }
.aelp-author-event-body h4 a:hover { color: #1565c0 !important; }
.aelp-author-event-host,
.aelp-author-event-location {
    color: #66768c;
    font-size: 12px;
    line-height: 1.55;
}
.aelp-author-event-location { margin-top: 4px; }

.aelp-author-announcement-card {
    background: var(--aelp-author-announcement-gradient);
    border-color: rgba(255,65,108,.17);
}
.aelp-author-ann-icon {
    flex: 0 0 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.38);
    color: #fff;
    font-size: 22px;
    backdrop-filter: blur(4px);
}
.aelp-author-ann-body {
    flex: 1 1 auto;
    padding: 16px 17px;
    background: rgba(255,255,255,.87);
}
.aelp-author-ann-listing {
    color: #7b5d67;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 5px;
}
.aelp-author-ann-listing i { margin-right: 5px; }
.aelp-author-ann-body h4 { color: #3a2029; }
.aelp-author-ann-body p {
    margin: 0 0 12px !important;
    color: #634c55;
    line-height: 1.62;
    font-size: 13px;
}
.aelp-author-ann-button {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 8px;
    background: var(--aelp-author-announcement-gradient);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255,65,108,.22);
}

.aelp-author-empty {
    min-height: 180px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #d9e0e9;
    border-radius: var(--aelp-author-radius);
    background: linear-gradient(145deg, #fbfdff, #f5f9fe);
}
.aelp-author-empty i {
    font-size: 26px;
    margin-bottom: 9px;
    background: var(--aelp-author-tab-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.aelp-author-empty strong { color: #24344b; font-size: 15px; }
.aelp-author-empty span { color: #7b8a9d; font-size: 12px; margin-top: 4px; }

aelp-author-loading {}
.aelp-author-loading {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1565c0;
    font-size: 24px;
}

@media (max-width: 767px) {
    .aelp-author-calendar-head {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .aelp-author-calendar-head .aelp-event-month-btn:first-child,
    .aelp-author-calendar-head .aelp-event-month-btn:last-child {
        text-align: center;
    }
    .aelp-event-month-title { order: -1; }
    .aelp-author-calendar { gap: 4px; }
    .aelp-cal-day { min-height: 66px; padding: 5px; border-radius: 8px; }
    .aelp-cal-weekday { font-size: 9px; padding: 4px 1px; }
    .aelp-cal-number { min-width: 21px; height: 21px; font-size: 10px; }
    .aelp-cal-event { display: none; }
    .aelp-cal-day.has-events:after {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #1565c0;
        margin: 3px auto 0;
    }
    .aelp-author-event-card,
    .aelp-author-announcement-card { flex-direction: column; }
    .aelp-author-event-thumb { flex-basis: auto; min-height: 175px; }
    .aelp-author-event-thumb img { min-height: 175px; }
    .aelp-author-ann-icon { min-height: 60px; flex-basis: auto; }
}


/* v1.7.0 — theme list cards inside Events / Announcements / Discounts tabs */
.aelp-author-tab-inner .aelp-theme-cards{margin:0;}
.aelp-author-tab-inner .aelp-theme-cards .lp-list-page-grid{margin:0;}
.aelp-author-tab-inner .aelp-theme-cards .lp-listing{float:none;width:100%;}
.aelp-author-event-hosts{margin-top:28px;}
.aelp-author-sub-title{margin:0 0 14px;font-size:16px;font-weight:700;}
.aelp-author-sub-title i{margin-right:6px;color:#1565C0;}
