/**
 * @package     Joomla.Site
 * @subpackage  com_agenda & mod_agenda
 * @description Isolated Frontend Styles for Agenda Kegiatan (com_agenda & mod_agenda)
 *              Designed to be responsive (1366px Desktop, 768px Tablet, 375px Smartphone)
 *              and conflict-free across Cassiopeia, Helix Ultimate, and third-party templates.
 */

.com-agenda,
.mod-agenda {
    --agenda-primary: #2563eb;
    --agenda-secondary: #64748b;
    --agenda-success: #16a34a;
    --agenda-warning: #ea580c;
    --agenda-danger: #dc2626;
    --agenda-radius: 0.75rem;
    box-sizing: border-box;
}

.com-agenda *,
.mod-agenda * {
    box-sizing: border-box;
}

/* Card/Grid Layout (Component View) */
.com-agenda .agenda-event-card {
    border-radius: var(--agenda-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.com-agenda .agenda-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.1) !important;
}

.com-agenda .agenda-card-poster {
    aspect-ratio: 16 / 9;
    background-color: #f1f5f9;
}

.com-agenda .agenda-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.com-agenda .agenda-event-card:hover .agenda-poster-img {
    transform: scale(1.03);
}

.com-agenda .agenda-poster-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
}

/* Event Detail Page */
.com-agenda .agenda-detail-poster {
    max-height: 460px;
    overflow: hidden;
}

.com-agenda .agenda-detail-poster-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.com-agenda .agenda-content-body {
    line-height: 1.75;
    font-size: 1.02rem;
}

/* Legend Dot */
.com-agenda .agenda-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* FullCalendar Isolated & Responsive Styles */
.com-agenda .fc {
    font-family: inherit;
    --fc-border-color: rgba(148, 163, 184, 0.35);
    --fc-button-bg-color: #2563eb;
    --fc-button-border-color: #2563eb;
    --fc-button-hover-bg-color: #1d4ed8;
    --fc-button-hover-border-color: #1d4ed8;
    --fc-button-active-bg-color: #1e40af;
    --fc-button-active-border-color: #1e40af;
    --fc-today-bg-color: rgba(37, 99, 235, 0.06);
}

.com-agenda .fc .fc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.com-agenda .fc .fc-toolbar-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.com-agenda .fc .fc-button-group {
    display: inline-flex;
    border-radius: 0.5rem;
    overflow: hidden;
}

.com-agenda .fc .fc-button {
    display: inline-block;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--fc-button-border-color);
    background-color: var(--fc-button-bg-color);
    color: #ffffff !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.com-agenda .fc .fc-button:hover {
    background-color: var(--fc-button-hover-bg-color);
}

.com-agenda .fc .fc-button.fc-button-active {
    background-color: var(--fc-button-active-bg-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.com-agenda .fc .fc-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Month / Week / Day Grid */
.com-agenda .fc-grid-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.com-agenda .fc-grid-table th,
.com-agenda .fc-grid-table td {
    border: 1px solid var(--fc-border-color);
    vertical-align: top;
}

.com-agenda .fc-col-header-cell {
    background-color: rgba(241, 245, 249, 0.9);
    text-align: center;
    padding: 0.65rem 0.25rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.com-agenda .fc-daygrid-day {
    min-height: 115px;
    height: 120px;
    padding: 0.4rem;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.com-agenda .fc-daygrid-day:hover {
    background-color: rgba(37, 99, 235, 0.04);
}

.com-agenda .fc-daygrid-day.fc-day-other {
    background-color: rgba(248, 250, 252, 0.7);
    opacity: 0.55;
}

.com-agenda .fc-daygrid-day.fc-day-today {
    background-color: var(--fc-today-bg-color);
}

/* Highlighted Dates with Agenda Events (.fc-day-has-event) */
.com-agenda .fc-daygrid-day.fc-day-has-event {
    background-color: rgba(37, 99, 235, 0.08);
    border-top: 3px solid var(--day-event-color, #2563eb) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
    opacity: 1;
}

.com-agenda .fc-daygrid-day.fc-day-has-event:hover {
    background-color: rgba(37, 99, 235, 0.13);
}

.com-agenda .fc-daygrid-day.fc-day-selected {
    outline: 2px solid var(--agenda-primary);
    outline-offset: -2px;
    background-color: rgba(37, 99, 235, 0.14) !important;
}

.com-agenda .fc-daygrid-day-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.com-agenda .fc-day-event-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.com-agenda .fc-daygrid-day-number {
    font-size: 0.88rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.com-agenda .fc-day-has-event .fc-daygrid-day-number {
    background-color: var(--day-event-color, var(--agenda-primary));
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
}

.com-agenda .fc-day-today .fc-daygrid-day-number {
    background-color: #0f172a;
    color: #ffffff;
}

.com-agenda .fc-event-item {
    display: block;
    font-size: 0.78rem;
    line-height: 1.3;
    padding: 0.22rem 0.48rem;
    margin-bottom: 0.25rem;
    border-radius: 0.35rem;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.com-agenda .fc-event-item:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.com-agenda .agenda-highlight-summary-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background-color: #ffffff;
}

.com-agenda .agenda-highlight-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.08);
}

/* List View */
.com-agenda .fc-list-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--fc-border-color);
}

.com-agenda .fc-list-day-row th {
    background-color: rgba(241, 245, 249, 0.9);
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-top: 1px solid var(--fc-border-color);
    border-bottom: 1px solid var(--fc-border-color);
}

.com-agenda .fc-list-event-row td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--fc-border-color);
    vertical-align: middle;
}

.com-agenda .fc-list-event-row:hover {
    background-color: rgba(37, 99, 235, 0.04);
}

.com-agenda .fc-list-event-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* ==========================================================================
   Joomla Module Styles (.mod-agenda) - Modern, Elegant & Container-Aware
   ========================================================================== */
.mod-agenda {
    container-type: inline-size;
    width: 100%;
    font-family: inherit;
    color: #0f172a;
}

/* 1. Mode Combined Grid: Stacked on narrow containers, Side-by-Side on wide containers (>= 680px) */
.mod-agenda .mod-agenda-combined-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

@container (min-width: 680px) {
    .mod-agenda .mod-agenda-combined-grid {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 1.25rem;
    }
}

/* Shared Card Box for Calendar & List */
.mod-agenda .mod-agenda-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    width: 100%;
}

/* 2. Modern Month Calendar Box (Month & Year Header + Prev/Next Month Navigation) */
.mod-agenda .mod-agenda-cal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.mod-agenda .mod-agenda-cal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-align: center;
    flex: 1;
}

.mod-agenda .mod-cal-month-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.mod-agenda .mod-cal-month-nav:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.06);
}

.mod-agenda .mod-agenda-cal-body {
    padding: 0.9rem;
    background-color: #ffffff;
}

.mod-agenda .mod-agenda-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    table-layout: fixed;
    margin: 0;
}

.mod-agenda .mod-agenda-calendar-table th {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    padding: 0.3rem 0;
    border: none;
    background: transparent;
}

.mod-agenda .mod-agenda-calendar-table td {
    text-align: center;
    vertical-align: middle;
    padding: 0;
    border: none;
}

.mod-agenda .mod-cal-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 0.55rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    background-color: #f8fafc;
    transition: all 0.18s ease;
    user-select: none;
}

.mod-agenda .mod-cal-day.mod-cal-day-other {
    opacity: 0.3;
    background-color: transparent;
}

/* Highlighted Dates in Module Calendar */
.mod-agenda .mod-cal-day.mod-cal-day-has-event {
    background: linear-gradient(145deg, var(--mod-day-color, #2563eb), #1e40af);
    color: #ffffff !important;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.28);
}

.mod-agenda .mod-cal-day.mod-cal-day-has-event:hover,
.mod-agenda .mod-cal-day.mod-cal-day-selected {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.38);
    outline: 2px solid #0f172a;
    outline-offset: 1px;
}

.mod-agenda .mod-cal-num {
    line-height: 1.1;
}

.mod-agenda .mod-cal-dots {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.mod-agenda .mod-cal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ffffff !important;
}

/* Elegant Conditional Callout for Active/Today Agenda inside Calendar */
.mod-agenda .mod-agenda-cal-callout {
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    animation: modAgendaFadeIn 0.2s ease;
}

@keyframes modAgendaFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-agenda .mod-cal-callout-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1d4ed8;
    margin-bottom: 0.45rem;
}

.mod-agenda .mod-cal-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.mod-agenda .mod-cal-callout-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.mod-agenda .mod-cal-callout-item {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.mod-agenda .mod-cal-callout-item:hover {
    border-color: #93c5fd;
    transform: translateX(2px);
}

.mod-agenda .mod-cal-callout-bar {
    width: 3.5px;
    border-radius: 999px;
    flex-shrink: 0;
}

.mod-agenda .mod-cal-callout-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mod-agenda .mod-cal-callout-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mod-agenda .mod-cal-callout-meta {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}

/* 3. Modern Compact List (Top: Date Left + Slim Wrapping Title Right; Bottom: Full Date & Location) */
.mod-agenda .mod-agenda-list-header {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.mod-agenda .mod-agenda-list-heading {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.mod-agenda .mod-agenda-btn-reset {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mod-agenda .mod-agenda-btn-reset:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.mod-agenda .mod-agenda-list-body {
    padding: 0.85rem;
    background-color: #ffffff;
}

.mod-agenda .mod-agenda-empty {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    padding: 1.25rem 0.5rem;
}

.mod-agenda .mod-agenda-items-stack {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mod-agenda .mod-agenda-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    width: 100%;
}

.mod-agenda .mod-agenda-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

/* Top Part of Item: Date Badge on Left + Title on Right */
.mod-agenda .mod-agenda-item-top {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem 0.65rem;
}

.mod-agenda .mod-agenda-date-badge {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 1.05;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
}

.mod-agenda .mod-agenda-date-badge .mod-date-day {
    font-size: 1.05rem;
    font-weight: 700;
}

.mod-agenda .mod-agenda-date-badge .mod-date-month {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.92;
    margin-top: 2px;
}

.mod-agenda .mod-agenda-item-right {
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.mod-agenda .mod-agenda-item-meta-top {
    margin-bottom: 0.22rem;
}

.mod-agenda .mod-agenda-cat-badge {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 600;
    padding: 0.1rem 0.48rem;
    border-radius: 999px;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

/* Slim, Ramping & Wrapping Event Title */
.mod-agenda .mod-agenda-item-title {
    display: block;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.42;
    color: #0f172a !important;
    text-decoration: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 0;
    transition: color 0.15s ease;
}

.mod-agenda .mod-agenda-item-title:hover {
    color: #2563eb !important;
}

/* Bottom Part of Item: Full Date/Time & Location */
.mod-agenda .mod-agenda-item-bottom {
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 0.48rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.mod-agenda .mod-agenda-bottom-row {
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
    font-size: 0.73rem;
    font-weight: 400;
    color: #475569;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mod-agenda .mod-agenda-icon {
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Modern Before / Next Navigation Bar (Only visible when items > perPage) */
.mod-agenda .mod-agenda-nav-bar {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.mod-agenda .mod-agenda-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
    line-height: 1.2;
}

.mod-agenda .mod-agenda-nav-btn:hover:not(:disabled) {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.mod-agenda .mod-agenda-nav-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

.mod-agenda .mod-agenda-nav-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e40af;
    background-color: #eff6ff;
    padding: 0.24rem 0.65rem;
    border-radius: 999px;
}

/* Module Footer Links */
.mod-agenda .mod-agenda-list-footer {
    padding: 0.65rem 0.9rem;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.mod-agenda .mod-agenda-footer-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none !important;
}

.mod-agenda .mod-agenda-footer-link:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   Universal Modal / Pop-up Detail Kegiatan & Standalone Detail Grid
   Format:
   1. Poster di sebelah kiri dengan ukuran proporsional (jika ada imagenya)
   2. Detail kegiatan dan deskripsi di sebelah kanan poster/image
   3. Tanggal kegiatan & Jam sejajar di atas, Lokasi & Panitia Pelaksana di bawah
   4. Deskripsi di bawah detail kegiatan
   5. Tanpa kategori & tanpa tanggal selesai
   ========================================================================== */
.agenda-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10550;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.agenda-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.agenda-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    overflow-y: auto;
    padding: 1.75rem;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
    color: #0f172a;
    box-sizing: border-box;
}

.agenda-modal-backdrop.is-open .agenda-modal-dialog {
    transform: translateY(0) scale(1);
}

.agenda-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
}

.agenda-modal-close:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Grid Layout: Poster Left + Detail/Description Right */
.agenda-modal-grid {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

.agenda-modal-grid.has-poster {
    grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
}

.agenda-modal-grid.no-poster {
    grid-template-columns: minmax(0, 1fr);
}

.agenda-modal-poster-col {
    width: 100%;
}

.agenda-modal-poster-frame {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
}

.agenda-modal-poster-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    border-radius: 0.65rem;
}

.agenda-modal-content-col {
    min-width: 0;
    padding-right: 1.5rem;
}

.agenda-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 1rem 0;
    overflow-wrap: anywhere;
}

/* Box Detail Kegiatan */
.agenda-modal-meta-box {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 0.85rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}

/* Baris 1 (Sejajar): Tanggal Kegiatan & Jam */
.agenda-modal-meta-row-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem 2.25rem;
}

/* Baris 2 (Di bawahnya): Lokasi & Panitia Pelaksana */
.agenda-modal-meta-row-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 2.25rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed #cbd5e1;
}

.agenda-modal-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 160px;
}

.agenda-modal-meta-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.55rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.agenda-modal-meta-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.agenda-modal-meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.agenda-modal-meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Deskripsi di bawah Detail Kegiatan */
.agenda-modal-description {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.agenda-modal-desc-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 0.55rem;
}

.agenda-modal-desc-body {
    font-size: 0.94rem;
    line-height: 1.68;
    color: #334155;
    overflow-wrap: anywhere;
}

.agenda-modal-desc-body p:last-child {
    margin-bottom: 0;
}

/* Responsive Breakpoints: Tablet (768px) & Smartphone (375px) */
@media (max-width: 768px) {
    .agenda-modal-grid.has-poster {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .agenda-modal-content-col {
        padding-right: 0;
    }

    .agenda-modal-dialog {
        padding: 1.25rem;
    }

    .com-agenda .fc .fc-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .com-agenda .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .com-agenda .fc-daygrid-day {
        min-height: 80px;
        height: 85px;
        padding: 0.25rem;
    }

    .com-agenda .fc-day-event-badge {
        font-size: 0.6rem;
        padding: 0.08rem 0.3rem;
    }

    .com-agenda .fc-event-item {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
}

@media (max-width: 480px) {
    .com-agenda .fc .fc-button {
        padding: 0.35rem 0.6rem;
        font-size: 0.78rem;
    }

    .com-agenda .fc-col-header-cell {
        font-size: 0.72rem;
        padding: 0.4rem 0.1rem;
    }

    .com-agenda .fc-daygrid-day {
        min-height: 68px;
        height: 72px;
    }

    .com-agenda .fc-day-event-badge {
        display: none;
    }
}
