/*
 * LCU Elementor Widgets – styles
 * Companion stylesheet for the LCU custom Elementor widgets:
 *   - LCU Category Cards
 *   - LCU Course Cards
 *   - LCU Speaker Cards (4 shapes)
 *   - LCU News / Post Cards
 *   - LCU Scrolling Text
 *
 * Builds on top of homepage-sections.css (course/team/post card styles)
 * which is loaded as a dependency.
 */

/* Widgets reuse the .lcu-section card styling but shouldn't add the
   homepage section's vertical padding/background when dropped into
   Elementor. */
.lcu-widget-section {
    padding: 0;
    background: transparent;
}

/* ─── CATEGORY CARDS ─────────────────────────────────────────────────────── */

.lcu-category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .lcu-category-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .lcu-category-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Self-contained styling for the .icon-box-style4 markup (icon + title
   side by side), matching the "Our Schools & Programmes" cards on the
   homepage reference design. */
.lcu-category-cards-grid .icon-box-style4 {
    background: #fff;
    border: 1px solid rgba(215, 216, 222, 0.6);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 6px 34px rgba(215, 216, 222, 0.41);
    transition: box-shadow 0.5s ease, transform 0.5s ease, border-color 0.25s ease;
    cursor: pointer;
}

.lcu-category-cards-grid .icon-box-style4:hover {
    box-shadow: 0 18px 60px rgba(215, 216, 222, 0.7);
    transform: translateY(-4px);
}

.lcu-category-cards-grid .icon-box-style4 .content-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.lcu-category-cards-grid .icon-box-style4 .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid #d8dadf;
    border-radius: 12px;
    flex-shrink: 0;
    transition: border-color 0.25s ease;
}

.lcu-category-cards-grid .icon-box-style4:hover .icon-wrap {
    border-color: #6246ea;
}

.lcu-category-cards-grid .icon-box-style4 .icon-wrap .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.lcu-category-cards-grid .icon-box-style4 .icon-wrap svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.lcu-category-cards-grid .icon-box-style4 .icon-wrap i {
    font-size: 24px;
}

.lcu-category-cards-grid .icon-box-style4 .title-wrap {
    flex: 1;
    min-width: 0;
}

.lcu-category-cards-grid .icon-box-style4 .title-wrap h6.title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
}

.lcu-category-cards-grid .icon-box-style4 .title-wrap h6.title a {
    color: inherit;
    text-decoration: none;
}

/* Animated underline grows left→right on card hover */
.lcu-category-cards-grid .icon-box-style4 .title-wrap h6.title span {
    background-image: linear-gradient(#1a1a2e, #1a1a2e);
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: left bottom;
    transition: background-size 0.3s ease;
    padding-bottom: 1px;
}

.lcu-category-cards-grid .icon-box-style4:hover .title-wrap h6.title span {
    background-size: 100% 1px;
}

/* ─── COURSE CARDS GRID ──────────────────────────────────────────────────── */

.lcu-course-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .lcu-course-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .lcu-course-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── NEWS / POST CARDS GRID ─────────────────────────────────────────────── */

.lcu-news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .lcu-news-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .lcu-news-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── SPEAKER / INSTRUCTOR CARDS GRID + SHAPES ───────────────────────────── */

.lcu-speaker-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .lcu-speaker-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .lcu-speaker-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

.lcu-speaker-col {
    display: flex;
    flex-direction: column;
}

/* Full-bleed portrait photo with a dark gradient overlay and a caption
   box (name + role) anchored to the bottom-left, matching the
   homepage's speaker/instructor cards. */
.lcu-speaker-cards-grid .mo-team.tpl2 .team-member {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-img .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px;
    color: #fff;
    z-index: 1;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-title h5.data-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-title h5.data-title span {
    color: inherit;
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-title h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-title .lcu-instructor-bio {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-img .lcu-no-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e4ea 0%, #cfd2da 100%);
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-social {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.lcu-speaker-cards-grid .mo-team.tpl2 .team-social .mo-team-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
}

/* Shape 1: SVG mask — rounded card with top edge slanting down left→right
   (top-left corner area is the low point, matching lifecard-mask-left.svg) */
.lcu-shape-clip-top-left .mo-team.tpl2 .team-member {
    -webkit-mask-image: url('../../../assets/images/lifecard-mask-left.svg');
    mask-image: url('../../../assets/images/lifecard-mask-left.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    border-radius: 0;
    clip-path: none;
}

/* Shape 2: SVG mask — rounded card with top edge slanting down right→left
   (top-right corner area is the low point, matching lifecard-mask-right.svg) */
.lcu-shape-clip-top-right .mo-team.tpl2 .team-member {
    -webkit-mask-image: url('../../../assets/images/lifecard-mask-right.svg');
    mask-image: url('../../../assets/images/lifecard-mask-right.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    border-radius: 0;
    clip-path: none;
}

/* For SVG-masked cards the inner image wrapper must not re-clip */
.lcu-shape-clip-top-left .mo-team.tpl2 .team-img,
.lcu-shape-clip-top-right .mo-team.tpl2 .team-img {
    clip-path: none;
    border-radius: 0;
}

/* Shape 3: rounded rectangle */
.lcu-shape-rounded .mo-team.tpl2 .team-member {
    -webkit-mask-image: none;
    mask-image: none;
    clip-path: none;
    border-radius: 16px;
}

.lcu-shape-rounded .mo-team.tpl2 .team-img {
    clip-path: none;
    border-radius: 0;
}

/* Shape 4: square / sharp corners */
.lcu-shape-square .mo-team.tpl2 .team-member {
    -webkit-mask-image: none;
    mask-image: none;
    clip-path: none;
    border-radius: 0;
}

.lcu-shape-square .mo-team.tpl2 .team-img {
    clip-path: none;
    border-radius: 0;
}

/* ─── SCROLLING TEXT (MARQUEE) ───────────────────────────────────────────── */

/* Outer wrapper — clips overflow, self-contained (no theme classes) */
.lcu-marquee {
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
    box-sizing: border-box;
}

/* The scrolling track: single horizontal flex row, never wraps */
.lcu-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content;
    will-change: transform;
}

/* Each group is a full copy of all items, laid out side-by-side */
.lcu-marquee-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    flex-shrink: 0;
}

/* Individual item */
.lcu-marquee-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 0 16px;
    white-space: nowrap;
    flex-shrink: 0;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* The text span inside each item — inherits everything from Typography control */
.lcu-marquee-item .marquee-text {
    white-space: nowrap;
    display: inline;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.lcu-marquee-item:hover {
    text-decoration: underline;
}

.lcu-marquee-sep {
    color: #6246ea;
    font-size: 14px;
    padding: 0 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Scroll animation — both groups animate together to create seamless loop */
.lcu-marquee-left .lcu-marquee-group,
.lcu-marquee-right .lcu-marquee-group {
    animation: lcu-marquee-scroll var(--lcu-marquee-duration, 20s) linear infinite;
}

.lcu-marquee-right .lcu-marquee-group {
    animation-direction: reverse;
}

.lcu-marquee-pause-hover:hover .lcu-marquee-group {
    animation-play-state: paused;
}

@keyframes lcu-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* ─── LCU FORM WIDGET ────────────────────────────────────────────────────── */

.lcu-form-widget { width: 100%; }

.lcu-input-size-xs .lcu-form-field { padding: 8px 12px; font-size: 12px; }
.lcu-input-size-sm .lcu-form-field { padding: 10px 14px; font-size: 14px; }
.lcu-input-size-md .lcu-form-field { padding: 12px 16px; font-size: 15px; }
.lcu-input-size-lg .lcu-form-field { padding: 14px 18px; font-size: 16px; }
.lcu-input-size-xl .lcu-form-field { padding: 16px 20px; font-size: 18px; }

.lcu-form-fields {
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
    /* Negative margins cancel out the per-field padding so that
       flex: 0 0 50% on two siblings totals exactly 100% of the container.
       (Same technique used by Bootstrap columns and Elementor's own form.) */
    margin-left: -10px;
    margin-right: -10px;
}

.lcu-form-field-wrap {
    box-sizing: border-box;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 600px) {
    .lcu-form-fields {
        margin-left: 0;
        margin-right: 0;
    }
    .lcu-form-field-wrap {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }
}

.lcu-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.lcu-required { color: #dc2626; }

.lcu-form-field {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 15px;
    color: #1a1a2e;
    background: #fff;
    border: 1px solid #e0e0e8;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.lcu-form-field:focus {
    border-color: #6246ea;
    box-shadow: 0 0 0 3px rgba(98,70,234,0.13);
}

textarea.lcu-form-field {
    resize: vertical;
    height: 150px;
    line-height: 1.6;
}

select.lcu-form-field { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236246ea' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.lcu-form-checkboxes,
.lcu-form-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lcu-form-choice-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.lcu-form-choice-label input { accent-color: #6246ea; width: 16px; height: 16px; cursor: pointer; }

.lcu-hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.lcu-form-steps {
    margin-bottom: 24px;
}

.lcu-steps-none {
    display: none;
}

.lcu-form-step-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.lcu-form-step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #dbe1ea;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    font: inherit;
}

.lcu-form-step-indicator.is-active,
.lcu-form-step-indicator.is-complete {
    border-color: #6246ea;
    color: #6246ea;
}

.lcu-form-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(98, 70, 234, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.lcu-form-step-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.lcu-form-step-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: #6246ea;
    transition: width 0.2s ease;
}

.lcu-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lcu-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #6246ea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    line-height: 1;
}

.lcu-form-submit.is-full-width,
.lcu-form-next,
.lcu-form-prev {
    justify-content: center;
}

.lcu-button-size-xs .lcu-form-submit,
.lcu-button-size-xs .lcu-form-next,
.lcu-button-size-xs .lcu-form-prev { padding: 8px 16px; font-size: 12px; }
.lcu-button-size-sm .lcu-form-submit,
.lcu-button-size-sm .lcu-form-next,
.lcu-button-size-sm .lcu-form-prev { padding: 10px 20px; font-size: 14px; }
.lcu-button-size-md .lcu-form-submit,
.lcu-button-size-md .lcu-form-next,
.lcu-button-size-md .lcu-form-prev { padding: 14px 32px; font-size: 15px; }
.lcu-button-size-lg .lcu-form-submit,
.lcu-button-size-lg .lcu-form-next,
.lcu-button-size-lg .lcu-form-prev { padding: 16px 38px; font-size: 16px; }
.lcu-button-size-xl .lcu-form-submit,
.lcu-button-size-xl .lcu-form-next,
.lcu-button-size-xl .lcu-form-prev { padding: 18px 44px; font-size: 18px; }

.lcu-form-submit.is-full-width {
    width: 100%;
}

.lcu-form-next,
.lcu-form-prev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.lcu-form-next {
    background: #6246ea;
    color: #fff;
}

.lcu-form-prev {
    background: #eef0f8;
    color: #1a1a2e;
}

.lcu-form-submit:hover { background: #4f37c8; transform: translateY(-1px); }
.lcu-form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.lcu-form-next:hover { background: #4f37c8; }

@media (max-width: 600px) {
    .lcu-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lcu-form-submit,
    .lcu-form-next,
    .lcu-form-prev {
        width: 100%;
    }
}

.lcu-form-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.lcu-form-msg.success { background: #dcfce7; color: #166534; }
.lcu-form-msg.error   { background: #fee2e2; color: #991b1b; }

/* ─── LCU EVENTS WIDGET ──────────────────────────────────────────────────── */

/* ── Shared base ──────────────────────────────────────────────────────────── */

/* ── Grid Cards ───────────────────────────────────────────────────────────── */

.lcu-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.lcu-event-card {
    background: #fff;
    border: 1px solid rgba(10,29,53,0.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(10,29,53,0.07);
    transition: box-shadow 0.45s ease, transform 0.45s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.lcu-event-card:hover {
    box-shadow: 0 24px 70px rgba(10,29,53,0.15);
    transform: translateY(-7px);
}

/* Thumb */
.lcu-event-thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.lcu-event-thumb {
    width: 100%;
    height: 230px;
    background-size: cover;
    background-position: center;
    background-color: #e8e8f0;
    transition: transform 0.6s ease;
}
.lcu-event-card:hover .lcu-event-thumb {
    transform: scale(1.07);
}
.lcu-event-thumb.no-image {
    background-image: linear-gradient(135deg, #6246ea 0%, #8b72f0 45%, #c4aff8 100%);
}

/* Dark gradient overlay on image bottom */
.lcu-event-thumb-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(12,12,26,0.62) 0%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Date badge — glassmorphism pill, overlays image bottom-left */
.lcu-event-date-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #6246ea;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 14px 6px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 2px 14px rgba(10,29,53,0.18);
    transition: transform 0.3s ease;
}
.lcu-event-card:hover .lcu-event-date-badge {
    transform: translateY(-2px);
}
.lcu-event-date-badge i { font-size: 11px; color: #6246ea; }

/* Body */
.lcu-event-body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
.lcu-event-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    color: #1a1a2e;
}
.lcu-event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lcu-event-title a:hover { color: #6246ea; }

/* Location */
.lcu-event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
}
.lcu-event-location i { color: #6246ea; font-size: 10px; }

/* Excerpt */
.lcu-event-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
    flex: 1;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button */
.lcu-event-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #6246ea;
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}
.lcu-event-btn:hover {
    background: #4f37c8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(98,70,234,0.38);
}

@media (max-width: 1024px) {
    .lcu-events-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .lcu-events-grid { grid-template-columns: 1fr !important; }
}

/* ── List / Agenda — matches mo-event-style-3 from lifecardhome.html ─────── */

@keyframes lcuAgendaRowIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lcu-events-agenda {
    display: flex;
    flex-direction: column;
}

.lcu-event-agenda-row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 30px 20px;
    border-top: 1px solid rgba(10,29,53,0.1);
    position: relative;
    overflow: hidden;
    animation: lcuAgendaRowIn 0.45s cubic-bezier(.22,.61,.36,1) both;
    animation-delay: var(--lcu-event-delay, 0ms);
    transition: background 0.3s ease;
}

/* Bottom sweep line — grows from right to left on hover */
.lcu-event-agenda-row::before {
    content: '';
    position: absolute;
    right: 0;
    left: auto;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #6246ea;
    transition: width 0.55s ease-out;
    pointer-events: none;
}
.lcu-event-agenda-row:hover::before {
    width: 100%;
    left: 0;
    right: auto;
}

/* Subtle background tint on hover */
.lcu-event-agenda-row::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(98,70,234,0.03);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.lcu-event-agenda-row:hover::after { opacity: 1; }

/* Day number and title change to primary on hover */
.lcu-event-agenda-row:hover .lcu-event-agenda-day { color: #6246ea; }
.lcu-event-agenda-row:hover .lcu-event-agenda-title a { color: #6246ea; }

/* Circle button fills on row hover */
.lcu-event-agenda-row:hover .lcu-event-circle-btn {
    background: #6246ea;
    border-color: #6246ea;
    color: #fff;
    box-shadow: 0 12px 28px rgba(98,70,234,0.25);
}

/* Date box — pill/capsule shape matching reference */
.lcu-event-agenda-date {
    flex-shrink: 0;
    width: 76px;
    text-align: center;
    padding: 14px 10px;
    border: 1px solid rgba(10,29,53,0.12);
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 6px 34px rgba(215,216,222,.41);
}
.lcu-event-agenda-day {
    display: block;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    color: #1a1a2e;
    transition: color 0.3s ease;
}
.lcu-event-agenda-month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6246ea;
    margin-top: 4px;
}

/* Body */
.lcu-event-agenda-body { flex: 1; min-width: 0; }

.lcu-event-agenda-title {
    margin: 0 0 7px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a2e;
}
.lcu-event-agenda-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lcu-event-agenda-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 13px;
}

/* Stretched full-row link — covers the entire row so clicking anywhere navigates */
.lcu-event-agenda-full-link {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Body and CTA sit above the full-row overlay */
.lcu-event-agenda-body   { position: relative; z-index: 1; }
.lcu-event-agenda-title a { position: relative; z-index: 1; }

/* Thumbnail in list view */
.lcu-event-agenda-thumb {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.lcu-event-agenda-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.lcu-event-agenda-row:hover .lcu-event-agenda-thumb img {
    transform: scale(1.06);
}

/* Circle arrow button */
.lcu-event-agenda-cta { flex-shrink: 0; position: relative; z-index: 1; }

.lcu-event-circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(10,29,53,0.18);
    color: #1a1a2e;
    background: #fff;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Arrow icon rotates -45deg on row hover (matching SVG arrow in reference) */
.lcu-event-circle-btn i {
    transition: transform 0.3s ease;
}
.lcu-event-agenda-row:hover .lcu-event-circle-btn i {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .lcu-event-agenda-row { gap: 18px; padding: 22px 12px; }
    .lcu-event-agenda-date { width: 60px; }
    .lcu-event-agenda-day  { font-size: 24px; }
    .lcu-event-agenda-title { font-size: 15px; }
    .lcu-event-circle-btn { width: 40px; height: 40px; font-size: 13px; }
    .lcu-event-agenda-thumb { width: 70px; height: 70px; }
}
@media (max-width: 480px) {
    .lcu-event-agenda-row { gap: 12px; padding: 18px 8px; }
    .lcu-event-agenda-date { width: 52px; padding: 10px 6px; }
    .lcu-event-agenda-day  { font-size: 20px; }
    .lcu-event-agenda-month { font-size: 10px; }
    .lcu-event-agenda-thumb { display: none; }
}
