/**
 * Saandipan Academic Calendar - Strictly Scoped Frontend Styles
 * All styles scoped to .sac-calendar-wrapper to guarantee zero conflicts with Elementor & WP Themes.
 * Developed by Zuraxis (https://zuraxis.com) - Support: thezuraxis@gmail.com
 */

:root {
    --sac-primary: #7B181E;
    --sac-primary-hover: #5E1116;
    --sac-row-highlight: #FFFDF7;
    --sac-table-radius: 12px;
    --sac-pill-radius: 50px;
    --sac-btn-radius: 8px;
}

.sac-calendar-wrapper {
    box-sizing: border-box;
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1E293B;
    line-height: 1.5;
}

.sac-calendar-wrapper *,
.sac-calendar-wrapper *::before,
.sac-calendar-wrapper *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Top Controls Bar (Filter Pills & Earlier Batches Button)
   ========================================================================== */
.sac-calendar-wrapper .sac-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.sac-calendar-wrapper .sac-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sac-calendar-wrapper .sac-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--sac-pill-radius);
    border: 1px solid #CBD5E1;
    background-color: #FFFFFF;
    color: #1E293B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    line-height: 1.2;
}

.sac-calendar-wrapper .sac-filter-pill:hover {
    border-color: #94A3B8;
    background-color: #F8FAFC;
}

.sac-calendar-wrapper .sac-filter-pill.sac-active {
    background-color: var(--sac-primary);
    color: #FFFFFF;
    border-color: var(--sac-primary);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(123, 24, 30, 0.25);
}

.sac-calendar-wrapper .sac-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background-color: #E2E8F0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.sac-calendar-wrapper .sac-filter-pill.sac-active .sac-count-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.sac-calendar-wrapper .sac-earlier-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--sac-pill-radius);
    border: 1px solid #CBD5E1;
    background-color: #FFFFFF;
    color: #0F172A;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sac-calendar-wrapper .sac-earlier-btn:hover {
    background-color: #F1F5F9;
    border-color: #94A3B8;
}

.sac-calendar-wrapper .sac-earlier-btn.sac-open {
    background-color: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

/* ==========================================================================
   Table Card & Layout
   ========================================================================== */
.sac-calendar-wrapper .sac-table-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--sac-table-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sac-calendar-wrapper .sac-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
    padding: 0;
}

.sac-calendar-wrapper .sac-table thead {
    background-color: var(--sac-primary);
}

.sac-calendar-wrapper .sac-table th {
    padding: 16px 20px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
}

.sac-calendar-wrapper .sac-table td {
    padding: 18px 20px;
    border-top: 1px solid #E2E8F0;
    vertical-align: middle;
    color: #1E293B;
    font-size: 14px;
}

.sac-calendar-wrapper .sac-row {
    transition: background-color 0.15s ease-in-out;
}

.sac-calendar-wrapper .sac-row:hover {
    background-color: #F8FAFC;
}

.sac-calendar-wrapper .sac-highlighted-row {
    background-color: var(--sac-row-highlight);
}

.sac-calendar-wrapper .sac-highlighted-row:hover {
    background-color: #FFF9ED;
}

.sac-calendar-wrapper .sac-archived-row {
    background-color: #FAFBFD;
    opacity: 0.85;
}

/* Drawer Divider Row */
.sac-calendar-wrapper .sac-drawer-divider-cell {
    padding: 14px 20px !important;
    background-color: #F1F5F9;
    text-align: center;
}

.sac-calendar-wrapper .sac-drawer-heading {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748B;
    text-transform: uppercase;
}

/* ==========================================================================
   Table Columns Specific Styling
   ========================================================================== */

/* Month Column */
.sac-calendar-wrapper .sac-cell-month {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sac-calendar-wrapper .sac-month-text {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
}

.sac-calendar-wrapper .sac-micro-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* CME Program Column */
.sac-calendar-wrapper .sac-cell-program {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sac-calendar-wrapper .sac-program-code {
    font-size: 15px;
    font-weight: 700;
    color: var(--sac-primary);
}

.sac-calendar-wrapper .sac-program-subtitle {
    font-size: 13px;
    color: #64748B;
}

.sac-calendar-wrapper .sac-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.sac-calendar-wrapper .sac-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.sac-calendar-wrapper .sac-tag-cme {
    background-color: #FEF3C7;
    color: #92400E;
}

.sac-calendar-wrapper .sac-tag-mode {
    background-color: #F1F5F9;
    color: #475569;
}

/* Confirmed Dates Column */
.sac-calendar-wrapper .sac-cell-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sac-calendar-wrapper .sac-dates-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sac-calendar-wrapper .sac-dates-text {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
}

.sac-calendar-wrapper .sac-ics-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    transition: color 0.15s ease;
    text-decoration: none;
}

.sac-calendar-wrapper .sac-ics-btn:hover {
    color: var(--sac-primary);
}

.sac-calendar-wrapper .sac-urgency-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #DC2626;
    letter-spacing: 0.3px;
}

/* Venue Column */
.sac-calendar-wrapper .sac-cell-venue {
    font-size: 14px;
    color: #334155;
}

/* Status Column */
.sac-calendar-wrapper .sac-cell-status {
    display: flex;
    justify-content: center;
}

.sac-calendar-wrapper .sac-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--sac-pill-radius);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.sac-calendar-wrapper .sac-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* Status Variants */
.sac-calendar-wrapper .sac-status-open {
    background-color: #DCFCE7;
    color: #15803D;
}

.sac-calendar-wrapper .sac-status-open .sac-status-dot {
    background-color: #15803D;
}

.sac-calendar-wrapper .sac-status-few_seats {
    background-color: #FFE4E6;
    color: #BE123C;
}

.sac-calendar-wrapper .sac-status-few_seats .sac-status-dot {
    background-color: #BE123C;
}

.sac-calendar-wrapper .sac-status-waitlist {
    background-color: #FEF3C7;
    color: #B45309;
}

.sac-calendar-wrapper .sac-status-waitlist .sac-status-dot {
    background-color: #B45309;
}

.sac-calendar-wrapper .sac-status-closed {
    background-color: #F1F5F9;
    color: #64748B;
}

.sac-calendar-wrapper .sac-status-closed .sac-status-dot {
    background-color: #94A3B8;
}

/* Action Column */
.sac-calendar-wrapper .sac-cell-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.sac-calendar-wrapper .sac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: var(--sac-btn-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease-in-out;
}

.sac-calendar-wrapper .sac-btn-primary {
    background-color: var(--sac-primary);
    color: #FFFFFF;
}

.sac-calendar-wrapper .sac-btn-primary:hover {
    background-color: var(--sac-primary-hover);
    box-shadow: 0 4px 10px rgba(123, 24, 30, 0.25);
}

.sac-calendar-wrapper .sac-btn-disabled {
    background-color: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
}

.sac-calendar-wrapper .sac-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: var(--sac-btn-radius);
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sac-calendar-wrapper .sac-icon-btn:hover {
    border-color: #94A3B8;
    background-color: #F8FAFC;
    color: #0F172A;
}

/* WhatsApp Buttons (Icon or Large Button with Text) */
.sac-calendar-wrapper .sac-wa-btn-full,
.sac-calendar-wrapper a.sac-wa-btn-full,
.sac-calendar-wrapper .sac-wa-btn-full:visited {
    background-color: var(--sac-wa-bg, #25D366);
    color: var(--sac-wa-color, #FFFFFF) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--sac-btn-radius, 8px);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    white-space: nowrap;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.sac-calendar-wrapper .sac-wa-btn-full:hover,
.sac-calendar-wrapper a.sac-wa-btn-full:hover,
.sac-calendar-wrapper .sac-wa-btn-full:focus {
    background-color: var(--sac-wa-hover-bg, #1EBE5D) !important;
    color: var(--sac-wa-color, #FFFFFF) !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35) !important;
    transform: translateY(-1px);
}

.sac-calendar-wrapper .sac-wa-btn-full svg {
    flex-shrink: 0;
    fill: currentColor;
}

.sac-calendar-wrapper .sac-icon-btn.sac-wa-btn,
.sac-calendar-wrapper a.sac-icon-btn.sac-wa-btn {
    color: var(--sac-wa-bg, #16A34A) !important;
    border-color: rgba(37, 211, 102, 0.4);
    background-color: #FFFFFF;
    text-decoration: none !important;
}

.sac-calendar-wrapper .sac-icon-btn.sac-wa-btn:hover {
    background-color: #F0FDF4;
    border-color: var(--sac-wa-bg, #16A34A);
    color: var(--sac-wa-hover-bg, #15803D) !important;
    transform: translateY(-1px);
}

/* Action Cell Alignment on Desktop */
.sac-calendar-wrapper .sac-td[style*="text-align: right"] .sac-cell-action,
.sac-calendar-wrapper .sac-td[style*="text-align:right"] .sac-cell-action {
    justify-content: flex-end;
}

.sac-calendar-wrapper .sac-td[style*="text-align: center"] .sac-cell-action,
.sac-calendar-wrapper .sac-td[style*="text-align:center"] .sac-cell-action {
    justify-content: center;
}

.sac-calendar-wrapper .sac-td[style*="text-align: left"] .sac-cell-action,
.sac-calendar-wrapper .sac-td[style*="text-align:left"] .sac-cell-action {
    justify-content: flex-start;
}

/* ==========================================================================
   Smart Auto-Fill Registration Modal Overlay
   ========================================================================== */
.sac-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sac-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.sac-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: sacModalFadeIn 0.2s ease-out;
}

@keyframes sacModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sac-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background-color: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.sac-modal-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
}

.sac-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #64748B;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.sac-modal-close:hover {
    color: #0F172A;
}

.sac-modal-content {
    padding: 0;
}

.sac-selected-card {
    background: #FFFDF7;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 20px 24px 14px;
}

.sac-selected-badge {
    font-size: 11px;
    font-weight: 700;
    color: #B45309;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sac-selected-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--sac-primary);
}

.sac-selected-sub {
    font-size: 13px;
    color: #475569;
    margin-top: 2px;
}

.sac-selected-meta {
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
    margin-top: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.sac-meta-dot {
    color: #94A3B8;
}

.sac-modal-form {
    padding: 0 24px 24px;
}

.sac-form-group {
    margin-bottom: 14px;
    flex: 1;
}

.sac-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.sac-form-group input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 14px;
    color: #0F172A;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.15s ease;
}

.sac-form-group input:focus {
    border-color: var(--sac-primary);
    box-shadow: 0 0 0 3px rgba(123, 24, 30, 0.12);
}

.sac-form-row {
    display: flex;
    gap: 12px;
}

.sac-form-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
}

.sac-form-alert.sac-alert-success {
    background-color: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.sac-form-alert.sac-alert-error {
    background-color: #FFE4E6;
    color: #BE123C;
    border: 1px solid #FDA4AF;
}

.sac-modal-footer {
    margin-top: 18px;
}

.sac-submit-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
}

.sac-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: sacSpin 0.7s linear infinite;
    margin-left: 8px;
}

@keyframes sacSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Mobile Responsive Cards Layout (< 768px)
   Pristine, Modern CME Medical Card Design (Zero Raw Table Labels)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-table-card {
        border: none;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-table {
        display: block;
        width: 100%;
        border-collapse: separate;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-table thead {
        display: none;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-table tbody {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    /* Modern Card Container */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-row {
        position: relative;
        display: flex;
        flex-direction: column;
        background: #FFFFFF;
        border: 1px solid #E2E8F0;
        border-radius: var(--sac-table-radius, 14px);
        padding: 18px 18px 16px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
        box-sizing: border-box;
        width: 100%;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-highlighted-row {
        border-color: #FDE68A;
        background: var(--sac-row-highlight, #FFFDF7);
        box-shadow: 0 4px 18px rgba(180, 83, 9, 0.08);
    }

    /* Reset all cells to block elements without borders or flex spread */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-table td {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        text-align: left !important;
        box-sizing: border-box;
    }

    /* Completely eliminate the ugly table labels (CME PROGRAM, ACTION, etc.) */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-table td::before {
        display: none !important;
        content: none !important;
    }

    /* 1. Program & Subtitle Area (Top-Left of Card) */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-col-program {
        order: 1;
        padding-right: 110px; /* Clean breathing room for top-right status pill */
        margin-bottom: 8px;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-cell-program {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        text-align: left;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-program-code {
        font-size: 19px;
        font-weight: 800;
        color: var(--sac-primary, #7B181E);
        letter-spacing: -0.2px;
        line-height: 1.2;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-program-subtitle {
        font-size: 14px;
        font-weight: 500;
        color: #475569;
        line-height: 1.35;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-tags-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 6px;
    }

    /* 2. Status Badge: Elegantly Floating at Top-Right of Card */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-col-status {
        position: absolute;
        top: 18px;
        right: 18px;
        width: auto !important;
        order: 2;
        z-index: 2;
        margin: 0;
        padding: 0;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-cell-status {
        display: inline-flex;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-status-pill {
        padding: 5px 12px;
        font-size: 12px;
        font-weight: 700;
        border-radius: 20px;
        white-space: nowrap;
    }

    /* 3. Dates & Schedule Row */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-col-dates {
        order: 3;
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px solid #F1F5F9;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-cell-dates {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-dates-row {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 700;
        color: #0F172A;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-urgency-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* 4. Duration & Venue Row */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-col-venue {
        order: 4;
        margin-top: 4px;
        padding-bottom: 12px;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-cell-venue {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #64748B;
        font-weight: 500;
    }

    /* Hide redundant Month column on mobile */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-col-month {
        display: none !important;
    }

    /* Custom columns styling if added */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-col-custom {
        order: 4;
        font-size: 13px;
        color: #475569;
        padding: 3px 0;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-col-custom::before {
        display: inline-block !important;
        content: attr(data-label) ": ";
        font-weight: 700;
        color: #64748B;
        font-size: 12px;
    }

    /* 5. Action Row: Full Width Buttons at the Bottom */
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-col-action {
        order: 5;
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px solid #F1F5F9;
        width: 100%;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-cell-action {
        display: flex;
        width: 100%;
        gap: 10px;
        justify-content: stretch;
        align-items: center;
        flex-wrap: nowrap;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-cell-action > * {
        flex: 1 1 0;
        min-width: 0;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-btn,
    .sac-calendar-wrapper.sac-has-mobile-cards .sac-wa-btn-full {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 700;
        border-radius: var(--sac-btn-radius, 8px);
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-icon-btn.sac-wa-btn {
        flex: 0 0 46px;
        height: 46px;
        padding: 0;
        justify-content: center;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-icon-btn.sac-brochure-btn {
        flex: 0 0 auto;
        padding: 10px 14px;
    }

    .sac-calendar-wrapper.sac-has-mobile-cards .sac-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ==========================================================================
   Hero Section Quick Dates Strip [saandipan_hero_dates]
   ========================================================================== */
.sac-hero-dates-strip {
    width: 100%;
    margin-bottom: 20px;
    font-family: inherit;
    box-sizing: border-box;
}

.sac-hero-dates-strip *,
.sac-hero-dates-strip *::before,
.sac-hero-dates-strip *::after {
    box-sizing: border-box;
}

.sac-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.sac-hero-title-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #BE123C;
}

.sac-hero-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #BE123C;
    animation: sacPulse 1.8s infinite;
}

@keyframes sacPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(190, 18, 60, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(190, 18, 60, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(190, 18, 60, 0);
    }
}

.sac-hero-calendar-link {
    color: #64748B;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.sac-hero-calendar-link:hover {
    color: #7B181E;
    text-decoration: underline;
}

.sac-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sac-hero-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.sac-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sac-hero-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.sac-hero-card-dates {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}

@media screen and (max-width: 480px) {
    .sac-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Dynamic "Next Batch:" Box for Elementor Course Cards [sac_batch_box]
   ========================================================================== */
.sac-next-batch-box {
    display: flex;
    flex-direction: column;
    padding: 8px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin: 8px 0 12px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    transition: border-color 0.15s ease;
}

.sac-next-batch-box:hover {
    border-color: #CBD5E1;
}

.sac-next-batch-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    line-height: 1.2;
}

.sac-next-batch-val {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}