/* --- Core Utilities --- */
.d-flex { display: flex; } 
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.w-100 { width: 100%; }
.pos-rel { position: relative; }

/* --- Wrapper Logic --- */
.hta-agenda-wrapper {
    --brand-green: #7AA89E;
    --border-white: rgba(255, 255, 255, 0.2);
    width: 100%;
}

/* --- Viewport & Slider Track Logic --- */
.hta-agenda-wrapper .flickity-viewport {
    overflow: visible !important;
    touch-action: pan-y; 
}

.hta-agenda-wrapper .flickity-slider {
    display: flex !important;
    align-items: stretch !important; 
}

.hta-agenda-wrapper .carousel-cell {
    width: 440px;
    padding-right: 30px;
    height: auto !important;
}

/* Equal Height Logic */
.flickity-equal-cells .flickity-slider > .carousel-cell {
    min-height: 100%; 
}

/* --- The Card Styling --- */
.hta-agenda-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
	text-align: left;
}

.hta-agenda-card .card-body {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- ACTIVE HIGHLIGHT (REFINED) --- */
.carousel-cell.is-currently-active .hta-agenda-card {
	border-color: #034f7530;
    background: #034f756b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(118, 183, 171, 0.2);
    transform: translateY(-10px);
}

.carousel-cell.is-currently-active .agenda-time {

}

/* Specific Highlight for the Active Title */
.carousel-cell.is-currently-active .agenda-title {
    color: #E6EDF1;
    text-shadow: 0 0 10px rgba(118, 183, 171, 0.2);
}

.carousel-cell.is-currently-active .agenda-desc {
    color: #E6EDF1;
}

/* --- The Time Pill --- */
.agenda-time {
    font-size: 0.85rem;
    font-weight: 800;
    /* color: var(--brand-green); */
	color: #E6EDF1;
    align-self: flex-start;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    display: inline-block;
}

/* --- Typography --- */
.agenda-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #E6EDF1;
    margin-bottom: 16px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.agenda-title strong, .agenda-title b {
    color: var(--brand-green);
}

.agenda-desc p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
	margin-bottom: 0;
}

/* --- Speaker Name Highlight --- */
.agenda-speaker-name {
    display: block;
    /* color: rgba(8, 58, 62, 1); */
    color: #034f75;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    margin-bottom: 8px;
    line-height: 1.3em;
}

/* Adjust title margin since the name is now providing the gap */
.agenda-title {
    margin-top: 0;
    margin-bottom: 12px;
}

.carousel-cell.is-currently-active .agenda-speaker-name {
    color: #E6EDF1;
    opacity: 0.9;
}

/* --- Hover (Inactive) --- */
@media (min-width: 768px) {
    .hta-agenda-card:hover {
        transform: translateY(-10px);
        border-color: var(--brand-green);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

/* --- BREAK STYLE --- */
.carousel-cell.hta-is-break .hta-agenda-card {
    background: rgba(0, 0, 0, 0.1);
    border: 1px dashed var(--brand-green);
}

.carousel-cell.hta-is-break .agenda-title {
    color: rgba(255, 255, 255, 0.7);
}

/* --- SPEAKER IMAGE --- */
.speaker-single-wrap {
    position: absolute;
    /* Adjusted top to sit between the pill and the top edge */
    top: 22px; 
    right: 25px;
    z-index: 10;
}

.speaker-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1); 
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.95; 
}

/* --- Active State Pop --- */
.carousel-cell.is-currently-active .speaker-avatar {
    border-color: #034f756e;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 12px rgba(118, 183, 171, 0.2);
    transform: scale(1.08);
}

@media (max-width: 767px) {
    .speaker-single-wrap {
        top: 18px;
        right: 18px;
    }
    .speaker-avatar {
        width: 50px;
        height: 50px;
    }
}

/* --- Navigation Controls --- */
.agenda-nav-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
}

.agenda-ctrl-btn {
    width: 48.8px; height: 48.8px;
    border-radius: 50%;
    border: 1px solid var(--border-white);
    background: transparent;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px; color: #E6EDF1;
}

.agenda-ctrl-btn:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #034f75;
}

/* --- Mobile Logic --- */
@media (max-width: 767px) {
    .hta-agenda-wrapper .carousel-cell { width: 100%; padding-right: 20px; }
    .hta-agenda-card { transform: none !important; }
	.hta-agenda-card .card-body {
		padding: 20px; 
	}
	
	.agenda-title {
		font-size: 17px;
	}
	
	.agenda-desc p {
		font-size: 14px;
	}
	
}

/* target the hidden tab pane */
#agenda .lqd-tabs-pane:not(.active) {
    display: block !important; /* Force it to exist */
    height: 0 !important;      /* Collapse the height so it doesn't take up space */
    overflow: hidden !important; 
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#agenda .lqd-tabs-pane.active {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}