/* ==========================================================================
   events_calendar.css — Sneh Shikshan Avam Manav Seva Sansthan (Rewa, MP)
   Advanced Bootstrap 5 Responsive Calendar
   ========================================================================== */

:root {
    --orange:        #ffa500;
    --orange-dark:   #e69500;
    --navy:          #1a2c4e;
    --navy-dark:     #0f1c34;
    --navy-light:    #2a3f66;
    --white:         #ffffff;
    --text-dark:     #222222;
    --text-muted:    #667085;
    --bg-soft:       #f7f9fc;
    --green:         #10b981;
    --blue:          #3b82f6;
    --red:           #ef4444;
    --pink:          #ec4899;
    --purple:        #8b5cf6;
    --sky:           #0ea5e9;
    --gray:          #6b7280;
    --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md:     0 6px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.15);
    --radius:        14px;
}

/* -------------------- Utility -------------------- */
.section-pad { padding: 70px 0; }

.section-tag {
    display: inline-block;
    background: rgba(255, 165, 0, 0.15);
    color: var(--orange-dark);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.25;
}

.section-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-head { margin-bottom: 40px; }

/* -------------------- Buttons -------------------- */
.btn-brand {
    background: var(--orange);
    color: var(--white) !important;
    font-weight: 700;
    border: 2px solid var(--orange);
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-brand:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 44, 78, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-outline-dark {
    border: 2px solid #d1d5db;
    color: var(--navy);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ==========================================================================
   PAGE HERO (shared)
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 280px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 165, 0, 0.20), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(255, 165, 0, 0.15), transparent 45%);
    pointer-events: none;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(255,255,255,0.03) 0 20px,
            transparent 20px 40px);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-breadcrumb {
    justify-content: center;
    margin: 0;
    background: transparent;
    padding: 0;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover { color: var(--orange); }
.page-breadcrumb .breadcrumb-item.active { color: var(--orange); font-weight: 700; }

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    line-height: 1;
}

.page-breadcrumb i { margin-right: 4px; }

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats-strip {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 35px 0;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: "";
    position: absolute;
    top: -50px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding: 10px;
    transition: transform 0.3s ease;
}

.stats-item:hover { transform: translateY(-3px); }

.stats-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.35);
}

.stats-info { text-align: left; }

.stats-info h3 {
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 2px;
    line-height: 1;
}

.stats-info p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   CALENDAR SECTION
   ========================================================================== */
.calendar-section { background: var(--bg-soft); }

/* Legend */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 26px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    padding: 4px 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-item i { font-size: 13px; }

/* -------------------- Calendar Card -------------------- */
.calendar-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border-top: 5px solid var(--orange);
}

/* Toolbar */
.cal-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--navy);
    color: var(--white);
    position: relative;
}

.cal-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.cal-nav-btn:hover {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.05);
}

.cal-title-wrap {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.cal-title {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.cal-title:hover { background: rgba(255, 165, 0, 0.3); }

.cal-title i { color: var(--orange); font-size: 14px; }
.cal-title i:last-child { font-size: 10px; }

/* Month Picker */
.cal-picker {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
    z-index: 100;
    pointer-events: none;
}

.cal-picker.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.picker-head {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    text-align: center;
}

.picker-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.picker-row .form-select {
    font-size: 13.5px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid #e5e9f0;
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
}

.picker-row .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.15);
}

.picker-go {
    width: 100%;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.picker-go:hover { background: var(--navy); }

.cal-today-btn {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cal-today-btn:hover {
    background: var(--white);
    color: var(--navy);
}

.cal-today-btn i { font-size: 14px; }

/* Week Day Header */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f0f3f8;
    padding: 12px 0;
    border-bottom: 1px solid #e5e9f0;
}

.cal-weekdays span {
    text-align: center;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calendar Grid */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e9f0;
    padding: 1px;
}

/* Day Cell */
.cal-day {
    background: var(--white);
    min-height: 92px;
    padding: 8px 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.cal-day:hover:not(.is-empty) {
    background: linear-gradient(135deg, #fff8ec 0%, #fff 100%);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 6px 16px rgba(255, 165, 0, 0.18);
}

.cal-day.is-empty {
    background: #fafbfd;
    cursor: default;
    pointer-events: none;
}

.cal-day.is-today {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15) 0%, rgba(255, 165, 0, 0.05) 100%);
}

.cal-day.is-today .cal-day-num {
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
}

.cal-day.is-weekend .cal-day-num {
    color: var(--red);
}

.cal-day.is-selected {
    background: linear-gradient(135deg, rgba(26, 44, 78, 0.08) 0%, rgba(26, 44, 78, 0.03) 100%);
    outline: 2px solid var(--navy);
    outline-offset: -2px;
}

.cal-day.has-events {
    border-top: 3px solid transparent;
}

/* Day number */
.cal-day-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    transition: all 0.22s ease;
    flex-shrink: 0;
}

/* Event dot indicator */
.cal-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2px;
}

.cal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
}

.cal-dot-more {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--navy);
    background: rgba(26, 44, 78, 0.10);
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1.2;
}

/* Event title preview (small) */
.cal-event-preview {
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
    background: rgba(255, 165, 0, 0.18);
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 1px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.side-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
    border-top: 4px solid var(--orange);
}

.side-card:last-child { margin-bottom: 0; }

.side-head {
    padding: 16px 20px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-head i {
    color: var(--orange);
    font-size: 20px;
    flex-shrink: 0;
}

.side-head h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-body {
    padding: 16px 18px;
    max-height: 520px;
    overflow-y: auto;
}

/* Empty State */
.side-empty {
    text-align: center;
    padding: 30px 12px;
    color: var(--text-muted);
}

.side-empty i {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: inline-block;
}

.side-empty p { font-size: 13.5px; margin: 0; line-height: 1.6; }

/* Selected date event list */
.sel-event {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--orange);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.sel-event:last-child { margin-bottom: 0; }

.sel-event:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.sel-event-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sel-event-cat {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 20px;
    color: var(--white);
}

.sel-event-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 6px;
    line-height: 1.4;
}

.sel-event-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.sel-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sel-event-meta i { color: var(--orange); font-size: 12px; }

/* Upcoming events (in sidebar) */
.up-event {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #e5e9f0;
    cursor: pointer;
    transition: all 0.25s ease;
    align-items: center;
}

.up-event:last-child { border-bottom: none; padding-bottom: 0; }
.up-event:first-child { padding-top: 0; }

.up-event:hover { transform: translateX(4px); }

.up-date {
    width: 52px;
    height: 56px;
    border-radius: 10px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.up-day { font-size: 18px; }
.up-mon { font-size: 11px; letter-spacing: 0.5px; opacity: 0.9; }

.up-info { min-width: 0; }

.up-info h6 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.up-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* ==========================================================================
   EVENT DETAIL MODAL
   ========================================================================== */
.event-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.event-modal.open { display: flex; }

.event-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, 0.75);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-modal.open .event-modal-backdrop { opacity: 1; }

.event-modal-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.94) translateY(20px);
    transition: transform 0.35s ease;
    z-index: 2;
}

.event-modal.open .event-modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--navy);
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 3;
}

.modal-close:hover {
    background: var(--red);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-head {
    padding: 30px 34px 22px;
    border-bottom: 2px dashed #eef1f6;
    background: linear-gradient(135deg, #fff8ec 0%, #ffffff 100%);
}

.modal-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--orange);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.modal-title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 14px;
    line-height: 1.35;
    padding-right: 40px;
}

.modal-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.modal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.modal-meta span i { color: var(--orange); font-size: 14px; }

.modal-body {
    padding: 26px 34px;
    color: #374151;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-foot {
    padding: 20px 34px 26px;
    border-top: 2px dashed #eef1f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.posted-by {
    color: var(--text-muted);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.posted-by i { color: var(--orange); }
.posted-by b { color: var(--navy); font-weight: 700; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 55px 0;
    color: var(--white);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--white);
}

.cta-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991.98px) {

    .section-pad { padding: 50px 0; }
    .section-head { margin-bottom: 26px; }

    .page-hero { min-height: 220px; padding: 40px 0; }

    .stats-icon { width: 52px; height: 52px; font-size: 22px; }
    .stats-info h3 { font-size: 24px; }
    .stats-info p { font-size: 11.5px; }

    .cal-day { min-height: 75px; }
    .cal-day-num { width: 26px; height: 26px; font-size: 12.5px; }
    .cal-event-preview { font-size: 9.5px; padding: 2px 4px; }

    .cal-toolbar { padding: 12px 14px; gap: 8px; }
    .cal-title { font-size: 14px; padding: 8px 16px; }
    .cal-nav-btn { width: 38px; height: 38px; font-size: 14px; }
    .cal-today-btn { font-size: 12px; padding: 8px 14px; }
    .cal-today-btn span { display: none; }

    .cta-inner { flex-direction: column; text-align: center; }
    .cta-buttons { justify-content: center; width: 100%; }
}

@media (max-width: 767.98px) {

    .cal-day {
        min-height: 60px;
        padding: 5px 4px;
        gap: 2px;
    }
    .cal-day-num { width: 24px; height: 24px; font-size: 12px; }

    /* Hide event title preview on small screens */
    .cal-event-preview { display: none; }

    .cal-dot { width: 6px; height: 6px; }
    .cal-dots { gap: 2px; margin-top: 1px; }

    .cal-weekdays span { font-size: 11px; padding: 0 2px; }
    .cal-weekdays { padding: 10px 0; }
}

@media (max-width: 575.98px) {

    .section-pad { padding: 40px 0; }
    .section-title { font-size: 1.3rem; }
    .section-sub { font-size: 14px; margin-bottom: 26px; }

    .page-hero { min-height: 180px; padding: 30px 0; }
    .page-hero-title { font-size: 1.5rem; }

    .stats-item { gap: 10px; padding: 6px; }
    .stats-icon { width: 44px; height: 44px; font-size: 18px; }
    .stats-info h3 { font-size: 20px; }
    .stats-info p { font-size: 10.5px; }

    .cal-legend { padding: 10px 12px; gap: 6px 14px; }
    .legend-item { font-size: 11.5px; padding: 3px 4px; }
    .legend-item i { font-size: 11.5px; }
    .legend-dot { width: 8px; height: 8px; }

    .cal-toolbar { padding: 10px 12px; gap: 6px; flex-wrap: wrap; }
    .cal-nav-btn { width: 34px; height: 34px; font-size: 13px; }
    .cal-title { font-size: 12.5px; padding: 7px 12px; gap: 6px; }
    .cal-today-btn { font-size: 11px; padding: 7px 12px; width: 100%; justify-content: center; }

    .cal-day { min-height: 50px; padding: 4px 3px; }
    .cal-day-num { width: 22px; height: 22px; font-size: 11px; }
    .cal-dot { width: 5px; height: 5px; }
    .cal-dot-more { font-size: 8px; padding: 0 3px; }

    .cal-picker { width: 260px; padding: 12px; }
    .picker-row .form-select { font-size: 12px; padding: 6px 10px; }
    .picker-go { font-size: 12px; padding: 8px; }

    .side-head { padding: 12px 16px; }
    .side-head h5 { font-size: 13.5px; }
    .side-body { padding: 14px; max-height: 380px; }

    .sel-event { padding: 11px 13px; }
    .sel-event-title { font-size: 13px; }
    .sel-event-meta { font-size: 11px; gap: 8px; }
    .sel-event-cat { font-size: 9.5px; padding: 2px 7px; }

    .up-date { width: 46px; height: 48px; }
    .up-day { font-size: 16px; }
    .up-mon { font-size: 10px; }
    .up-info h6 { font-size: 12.5px; }
    .up-meta { font-size: 10.5px; }

    .modal-head { padding: 22px 18px 16px; }
    .modal-title { font-size: 1rem; padding-right: 34px; }
    .modal-cat-badge { font-size: 10.5px; padding: 5px 11px; }
    .modal-body { padding: 16px 18px; font-size: 13.5px; }
    .modal-foot { padding: 14px 18px 18px; flex-direction: column; align-items: stretch; }
    .modal-foot > * { width: 100%; text-align: center; justify-content: center; }
    .modal-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 14px; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    .site-header, .topbar, .brandbar, .mainnav, .newsbar,
    .page-hero, .stats-strip, .cal-legend, .cta-section,
    .cal-toolbar, .cal-picker, .event-modal, .footer, footer {
        display: none !important;
    }

    body { padding-top: 0 !important; background: #fff !important; }
    .section-pad { padding: 10px 0 !important; }

    .cal-day { border: 1px solid #ddd !important; }
    .calendar-card { box-shadow: none !important; border: 1px solid #000 !important; }

    .cal-day.is-today { background: #fff8ec !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .cal-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    .side-card { page-break-inside: avoid; box-shadow: none !important; border: 1px solid #ccc !important; }
}