:root {
    --km-maroon: #581725;
    --km-deep: #310c17;
    --km-gold: #c59a4a;
    --km-gold-light: #f2d69a;
    --km-cream: #fff8ee;
    --km-text: #44343a;
}

.km-page {
    color: var(--km-text);
    overflow: hidden;
    background: #fffdf9;
    font-family: inherit;
}

.km-page * { box-sizing: border-box; }

.km-page a { text-decoration: none; }

.km-container {
    width: min(1160px, calc(100% - 36px));
    margin: auto;
}

.km-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--km-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.km-kicker:before,
.km-kicker:after {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
}

.km-heading {
    margin: 13px 0;
    color: var(--km-maroon);
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 850;
    line-height: 1.25;
}

.km-heading span { color: var(--km-gold); }

.km-subheading {
    max-width: 660px;
    margin: 0 auto;
    color: #817279;
    line-height: 1.9;
    font-size: 14px;
}

.km-section { padding: 30px 0; }

.km-section-heading {
    margin-bottom: 38px;
    text-align: center;
}

/* Hero */
.km-hero {
    position: relative;
    isolation: isolate;
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 130px 0;
    color: white;
   
}

.km-hero:after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
    background: radial-gradient(circle at 78% 50%, rgba(197,154,74,.19), transparent 40%);
}

.km-hero-content { max-width: 720px; }

.km-hero .km-kicker { color: var(--km-gold-light); }

.km-hero h1 {
    margin: 24px 0 18px;
    color: #fff8e9;
    font-size: clamp(39px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.8px;
}

.km-hero h1 span {
    display: block;
    color: var(--km-gold-light);
}

.km-hero p {
    max-width: 620px;
    color: #f1e1df;
    font-size: 15px;
    line-height: 2;
}

.km-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.km-btn {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    transition: .3s ease;
    cursor: pointer;
}

.km-btn-gold {
    background: var(--km-gold);
    color: #2d1115 !important;
}

.km-btn-gold:hover {
    background: var(--km-gold-light);
    transform: translateY(-3px);
}

.km-btn-outline {
    border-color: rgba(255,255,255,.5);
    color: white !important;
    background: rgba(255,255,255,.04);
}

.km-btn-outline:hover {
    border-color: var(--km-gold);
    background: rgba(197,154,74,.15);
}

.km-hero-note {
    margin-top: 25px;
    color: #e6cda9;
    font-size: 12px;
}

/* Intro cards */
.km-highlights {
    position: relative;
    z-index: 2;
    margin-top: -35px;
}

.km-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    border: 1px solid #f0e2ce;
    border-radius: 12px;
    background: white;
    box-shadow: 0 18px 45px rgba(63,20,31,.08);
}

.km-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 25px;
}

.km-highlight + .km-highlight { border-left: 1px solid #f0e5d9; }

.km-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fbf1df;
    color: #986d2b;
    font-size: 20px;
}

.km-highlight h3 {
    margin: 0 0 5px;
    color: var(--km-maroon);
    font-size: 15px;
}

.km-highlight p {
    margin: 0;
    color: #887a7e;
    font-size: 12px;
    line-height: 1.7;
}

/* About */
.km-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.km-about-visual {
    position: relative;
    min-height: 410px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 45%, rgba(197,154,74,.35), transparent 45%),
        linear-gradient(145deg, #501322, #270913);
}

.km-about-visual:before,
.km-about-visual:after {
    position: absolute;
    content: '';
    width: 290px;
    height: 290px;
    border: 1px solid rgba(242,214,154,.24);
    border-radius: 50%;
    animation: kmRotate 32s linear infinite;
}

.km-about-visual:after {
    width: 230px;
    height: 230px;
    animation-direction: reverse;
}

.km-about-symbol {
    z-index: 1;
    color: var(--km-gold-light);
    text-align: center;
}

.km-about-symbol i { font-size: 90px; }

.km-about-symbol h3 {
    margin: 20px 0 0;
    color: #fff4dc;
    font-size: 27px;
}

.km-about-symbol p {
    color: #e9c98e;
    font-size: 13px;
}

.km-about-copy p {
    color: #796b70;
    font-size: 14px;
    line-height: 2;
}

.km-about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin: 24px 0;
}

.km-about-point {
    padding: 13px;
    border: 1px solid #f0e6da;
    border-radius: 8px;
    color: var(--km-maroon);
    font-size: 12px;
    font-weight: 750;
}

.km-about-point i {
    margin-right: 7px;
    color: var(--km-gold);
}

/* Calendar */
.km-calendar-section {
    background: var(--km-cream);
}

.km-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.km-event-card {
    display: flex;
    gap: 20px;
    padding: 22px;
    border: 1px solid #eee1d2;
    border-radius: 12px;
    background: white;
    transition: .3s ease;
}

.km-event-card:hover {
    border-color: var(--km-gold);
    box-shadow: 0 12px 28px rgba(80,28,37,.07);
    transform: translateY(-4px);
}

.km-event-date {
    flex: 0 0 72px;
    width: 72px;
    height: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--km-maroon);
    color: white;
}

.km-event-date strong {
    color: var(--km-gold-light);
    font-size: 29px;
    line-height: 1.1;
}

.km-event-date span {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.km-event-info { flex: 1; min-width: 0; }

.km-event-tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    background: #fbf0de;
    color: #936721;
    font-size: 10px;
    font-weight: 800;
}

.km-event-info h3 {
    margin: 10px 0 6px;
    color: var(--km-maroon);
    font-size: 17px;
}

.km-event-info p {
    margin: 0 0 10px;
    color: #83757a;
    font-size: 12px;
    line-height: 1.7;
}

.km-event-time {
    color: #725d64;
    font-size: 11px;
}

/* Donation options */
.km-donation-options {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
}

.km-donation-option {
    position: relative;
    padding: 32px;
    overflow: hidden;
    border: 1px solid #eadac5;
    border-radius: 14px;
    background: white;
    transition: .3s ease;
}

.km-donation-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(80,28,37,.08);
}

.km-donation-option.featured {
    border-color: var(--km-maroon);
    background: linear-gradient(145deg,#531423,#2e0c17);
    color: white;
}

.km-donation-option .km-option-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 14px;
    background: #fbf0dd;
    color: #976c2b;
    font-size: 24px;
}

.km-donation-option h3 {
    margin: 0 0 12px;
    color: var(--km-maroon);
    font-size: 23px;
}

.km-donation-option.featured h3 { color: #fff2d8; }

.km-donation-option p {
    color: #85767b;
    font-size: 13px;
    line-height: 1.9;
}

.km-donation-option.featured p { color: #e9d6d9; }

.km-option-list {
    display: grid;
    gap: 11px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.km-option-list li {
    display: flex;
    gap: 10px;
    color: #76686e;
    font-size: 12px;
}

.km-donation-option.featured .km-option-list li { color: #f0dfe1; }
.km-option-list i { color: var(--km-gold); }

/* Items */
.km-items-section { background: #fffdf9; }

.km-items-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}

.km-item-card {
    overflow: hidden;
    border: 1px solid #eee3d7;
    border-radius: 13px;
    background: white;
    transition: .3s ease;
}

.km-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(80,28,37,.09);
}

.km-item-top {
    min-height: 150px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#fbf1df,#f6e4c7);
    color: #986b2b;
}

.km-item-top i { font-size: 50px; }

.km-item-body { padding: 22px; }

.km-item-body h3 {
    margin: 0 0 8px;
    color: var(--km-maroon);
    font-size: 18px;
}

.km-item-body p {
    min-height: 40px;
    margin: 0 0 17px;
    color: #83767a;
    font-size: 12px;
    line-height: 1.8;
}

.km-item-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 17px;
}

.km-item-price strong {
    color: var(--km-maroon);
    font-size: 21px;
}

.km-item-price span {
    color: #8a7b80;
    font-size: 11px;
}

.km-item-action {
    width: 100%;
    border: 1px solid #ead8bb;
    background: white;
    color: var(--km-maroon);
}

.km-item-action:hover {
    border-color: var(--km-maroon);
    background: var(--km-maroon);
    color: white;
}

/* Donation form */
.km-donate-section {
    background: var(--km-cream);
}

.km-donate-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 40px;
    align-items: start;
}

.km-donate-intro {
    padding: 34px;
    border-radius: 14px;
    background: var(--km-maroon);
    color: white;
}

.km-donate-intro h3 {
    margin: 0 0 15px;
    color: #fff0d0;
    font-size: 29px;
}

.km-donate-intro p {
    color: #ebd9dc;
    font-size: 13px;
    line-height: 2;
}

.km-trust-note {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.2);
    color: #e9cb92;
    font-size: 12px;
    line-height: 1.9;
}

.km-donate-form {
    padding: 30px;
    border: 1px solid #eee0d1;
    border-radius: 14px;
    background: white;
}

.km-donate-form h3 {
    margin: 0 0 22px;
    color: var(--km-maroon);
    font-size: 22px;
}

.km-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.km-form-field { min-width: 0; }
.km-form-field.full { grid-column: 1 / -1; }

.km-form-field label {
    display: block;
    margin-bottom: 8px;
    color: #5a3b43;
    font-size: 12px;
    font-weight: 750;
}

.km-form-field input,
.km-form-field select,
.km-form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid #e7dcd3;
    border-radius: 7px;
    outline: none;
    background: #fffdfa;
    color: #44343a;
    font: inherit;
    font-size: 13px;
}

.km-form-field input:focus,
.km-form-field select:focus,
.km-form-field textarea:focus {
    border-color: var(--km-gold);
    box-shadow: 0 0 0 3px rgba(197,154,74,.12);
}

.km-amounts {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.km-amount {
    padding: 11px 5px;
    border: 1px solid #eadbca;
    border-radius: 7px;
    background: white;
    color: var(--km-maroon);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.km-amount.active,
.km-amount:hover {
    border-color: var(--km-maroon);
    background: var(--km-maroon);
    color: white;
}

.km-form-submit { width: 100%; margin-top: 20px; border: 0; }

.km-demo-message {
    display: none;
    margin-top: 14px;
    padding: 12px;
    border-radius: 7px;
    background: #fff2dc;
    color: #754c17;
    font-size: 12px;
    line-height: 1.8;
}

/* Footer callout */
.km-final-cta {
    padding: 65px 0;
    text-align: center;
    color: white;
    background: linear-gradient(120deg,#300b16,#601827);
}

.km-final-cta h2 {
    margin: 12px 0;
    color: #fff1d5;
    font-size: clamp(28px,4vw,40px);
}

.km-final-cta p {
    max-width: 650px;
    margin: 0 auto 24px;
    color: #e8d4d8;
    font-size: 13px;
    line-height: 1.9;
}

.km-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.km-reveal.km-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes kmRotate {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .km-page *, .km-page *:before, .km-page *:after {
        animation: none !important;
        transition: none !important;
    }
    .km-reveal { opacity: 1; transform: none; }
}

@media(max-width: 900px) {
    .km-highlight-grid { grid-template-columns: 1fr; }
    .km-highlight + .km-highlight {
        border-left: 0;
        border-top: 1px solid #f0e5d9;
    }
    .km-about-grid, .km-donate-layout { grid-template-columns: 1fr; }
    .km-items-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media(max-width: 600px) {
    .km-section { padding: 25px 0; }
    .km-hero { min-height: 530px; padding: 100px 0; }
    .km-hero h1 { font-size: 42px; }
    .km-events-grid, .km-items-grid, .km-donation-options { grid-template-columns: 1fr; }
    .km-event-card { padding: 16px; gap: 13px; }
    .km-event-date { flex-basis: 62px; width: 62px; }
    .km-form-grid { grid-template-columns: 1fr; }
    .km-form-field.full { grid-column: auto; }
    .km-amounts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .km-donate-form, .km-donate-intro, .km-donation-option { padding: 22px; }
    .km-about-visual { min-height: 320px; }
}

/* Monthly Panchang Calendar */
.km-month-calendar{max-width:850px;margin:0 auto 45px;background:#fff;border:1px solid #eadfce;border-radius:17px;box-shadow:0 15px 42px rgba(49,12,23,.08);overflow:hidden}
.km-cal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 22px;border-bottom:1px solid #eee4d8}
.km-cal-title{display:flex;align-items:center;gap:13px;min-width:0}
.km-cal-icon{width:43px;height:43px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;background:#fbf0dd;color:#7b1d2d;font-size:19px}
.km-cal-title h3{margin:0 0 4px;color:#501c25;font-size:17px;font-weight:850}
.km-cal-title p{margin:0;color:#9a8589;font-size:12px}
.km-cal-full{display:inline-flex;align-items:center;gap:7px;color:#781b2b!important;font-size:12px;font-weight:800;white-space:nowrap}
.km-cal-nav{display:flex;align-items:center;justify-content:space-between;padding:12px 20px 4px}
.km-cal-nav button{width:34px;height:34px;border:1px solid #eee1d2;border-radius:9px;background:#fffaf3;color:#781b2b;cursor:pointer;transition:.2s}
.km-cal-nav button:hover{background:#781b2b;color:#fff}
.km-cal-month{color:#501c25;font-size:14px;font-weight:800}
.km-cal-weekdays,.km-cal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:8px 14px 0}
.km-cal-weekdays span{padding:7px 0;text-align:center;color:#8d747a;font-size:11px;font-weight:800}
.km-cal-weekdays span:first-child{color:#a83a3a}
.km-cal-day{position:relative;min-width:0;min-height:57px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid #eee7df;border-radius:8px;background:#fff;color:#501c25;font-size:13px;transition:transform .2s,border-color .2s;cursor:default}
.km-cal-day:hover{border-color:#c59a4a;transform:translateY(-2px)}
.km-cal-day.is-outside{background:#faf8f5;color:#c8bec0}
.km-cal-day.is-today{border-color:#c59a4a;background:#fff0bf;box-shadow:inset 0 0 0 1px rgba(197,154,74,.12)}
.km-cal-day .km-cal-num{font-weight:750}
.km-cal-day .km-cal-label{max-width:100%;overflow:hidden;padding:2px 4px;border-radius:4px;font-size:9px;white-space:nowrap;text-overflow:ellipsis}
.km-cal-day.event-purnima{border-color:#8bdba6;background:#e5f9ec;color:#246d40}
.km-cal-day.event-amavasya{border-color:#f5a0a7;background:#fff0f0;color:#a52e39}
.km-cal-day.event-special{border-color:#8dbdff;background:#e8f2ff;color:#245d9b}
.km-cal-day.event-monthly{border-color:#d5a3fa;background:#f5e9ff;color:#773aa4}
.km-cal-day.event-purnima .km-cal-label{background:#b9efc9}
.km-cal-day.event-amavasya .km-cal-label{background:#ffd0d3}
.km-cal-day.event-special .km-cal-label{background:#cce2ff}
.km-cal-day.event-monthly .km-cal-label{background:#e5ccff}
.km-cal-legend{display:flex;flex-wrap:wrap;gap:14px;padding:15px 20px 18px;color:#8b777c;font-size:11px}
.km-cal-legend span{display:inline-flex;align-items:center;gap:6px}
.km-cal-dot{width:9px;height:9px;border-radius:3px;display:inline-block}
.km-cal-dot.today{background:#f2d36e;border:1px solid #c59a4a}
.km-cal-dot.purnima{background:#9ce4b2}.km-cal-dot.amavasya{background:#f3a0a7}.km-cal-dot.special{background:#9ec9ff}.km-cal-dot.monthly{background:#d4a9f7}
.km-cal-note{margin:0 20px 18px;padding-top:13px;border-top:1px solid #f0e6dc;color:#9a8589;font-size:10px;line-height:1.8}
@media(max-width:575px){.km-cal-head{padding:16px 13px}.km-cal-full{font-size:10px}.km-cal-weekdays,.km-cal-days{gap:3px;padding-left:8px;padding-right:8px}.km-cal-day{min-height:47px;border-radius:6px;font-size:12px}.km-cal-day .km-cal-label{font-size:8px;padding:2px}.km-cal-legend{gap:10px;padding:13px 12px}.km-cal-note{margin-left:12px;margin-right:12px}}

/* Hero two-column layout */
.km-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: center;
    gap: 25px;
}

.km-hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.km-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #390b15;
}

/* Background Image */
.km-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;

     background-image: url('../maa-kali-banner.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1.02);
}

/* Dark Overlay for Readable Text */
.km-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(48, 5, 15, 0.94) 0%,
        rgba(65, 8, 19, 0.82) 38%,
        rgba(65, 8, 19, 0.42) 68%,
        rgba(35, 5, 12, 0.20) 100%
    );
}

/* Content Layout */
.km-hero-layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.km-hero-content {
    width: 58%;
    max-width: 720px;
}

.km-hero .km-kicker {
    display: inline-block;
    color: #f5d58d;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.km-hero h1 {
    color: #fff4d8;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 22px;
}

.km-hero h1 span {
    display: block;
    color: #f2cf7c;
    font-size: 0.58em;
    margin-top: 12px;
}

.km-hero p {
    color: #fff2ed;
    font-size: 17px;
    line-height: 1.9;
    max-width: 620px;
    margin-bottom: 28px;
}

.km-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.km-hero-note {
    margin-top: 28px;
    color: #f7dfaa;
    font-size: 14px;
}

.km-hero-note i {
    margin-right: 8px;
    color: #f4cf79;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .km-hero {
        min-height: 540px;
        padding: 100px 0;
    }

    .km-hero-bg {
        background-position: 35% center;
    }

    .km-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(48, 5, 15, 0.90),
            rgba(48, 5, 15, 0.72)
        );
    }

    .km-hero-content {
        width: 100%;
        max-width: 100%;
    }

    .km-hero p {
        font-size: 15px;
        line-height: 1.8;
    }

    .km-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .km-hero-bg {
        transform: none;
    }
}

  /* Calendar Loading */
    .km-cal-days.is-loading {
        opacity: 0.5;
        pointer-events: none;
    }

    /* Event Label */
    .km-cal-day.event-special {
        background: #fff7e8;
        border-color: #f2c477;
    }

    .km-cal-day .km-cal-label {
        display: block;
        margin-top: 4px;
        font-size: 10px;
        line-height: 1.3;
        color: #a56a16;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .km-cal-day .km-cal-count {
        display: block;
        margin-top: 2px;
        font-size: 9px;
        color: #a56a16;
    }

    .km-cal-nav button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .km-no-events {
        width: 100%;
        padding: 25px;
        text-align: center;
        color: #8492a6;
        background: #fff;
        border: 1px solid #edf1f7;
        border-radius: 12px;
    }


/* =====================================
   PREMIUM DONATION ITEMS PAGINATION
===================================== */

.km-pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px 0 50px;
    padding: 0 15px;
}

.km-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.km-pagination nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.km-pagination nav > div:first-child {
    display: none;
}

/* Pagination UL */
.km-pagination .pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
}

/* Remove default bullets */
.km-pagination .pagination li {
    display: inline-flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Page Links */
.km-pagination .page-link {
    min-width: 42px;
    height: 42px;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    padding: 0 13px !important;
    border: 1px solid #ead9bd !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #70212b !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(75, 35, 20, 0.04);
    transition: all 0.25s ease;
}

/* Hover */
.km-pagination .page-link:hover {
    background: #fff3d9 !important;
    color: #a66b17 !important;
    border-color: #d5a34d !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(166, 107, 23, 0.12);
}

/* Active Page */
.km-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #b77b25, #e3b34e) !important;
    border-color: #c28a32 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(183, 123, 37, 0.25);
}

/* Disabled */
.km-pagination .page-item.disabled .page-link {
    background: #f8f5ef !important;
    color: #b9a993 !important;
    border-color: #eee5d8 !important;
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Pagination Information */
.km-pagination nav > div:last-child {
    text-align: center;
    color: #88786c;
    font-size: 13px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .km-pagination-wrapper {
        margin: 25px 0 35px;
    }

    .km-pagination .pagination {
        gap: 5px;
    }

    .km-pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 9px !important;
        font-size: 12px;
        border-radius: 8px !important;
    }
}


/* =====================================
   CALENDAR EVENT TITLE + OCCASION
===================================== */

.km-cal-event-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    margin-top: 5px;
}

.km-cal-label {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    color: #76212b;
    overflow-wrap: anywhere;
}

.km-cal-occasion {
    display: block;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 600;
    color: #b17a24;
    overflow-wrap: anywhere;
}

.km-cal-day.has-event {
    transition: all .25s ease;
}

.km-cal-day.has-event:hover {
    background: #fff5df;
    border-color: #d6a34c;
    box-shadow: 0 4px 12px rgba(130, 83, 20, .12);
    transform: translateY(-2px);
}

.km-cal-day.has-event:focus-visible {
    outline: 2px solid #b77b25;
    outline-offset: 2px;
}

.km-cal-count {
    display: block;
    color: #9a691d;
    font-size: 9px;
    font-weight: 700;
    margin-top: 3px;
}

/* =====================================
   PREMIUM BHOG DETAILS MODAL
===================================== */

.km-event-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}

.km-event-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.km-event-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 15, 18, .72);
    backdrop-filter: blur(5px);
}

.km-event-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
    transform: translateY(20px) scale(.97);
    transition: transform .3s ease;
}

.km-event-modal.is-open .km-event-modal-dialog {
    transform: translateY(0) scale(1);
}

/* Header */
.km-event-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 22px;
    background: linear-gradient(120deg, #651c2b, #a94b35);
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.km-event-modal-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.km-event-modal-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 13px;
    font-size: 22px;
    color: #ffe3a2;
}

.km-event-modal-heading h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
}

.km-event-modal-heading p {
    margin: 0;
    font-size: 12px;
    color: #f8dfd3;
}

.km-event-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    transition: .2s;
}

.km-event-modal-close:hover {
    background: #fff;
    color: #76212b;
}

/* Body */
.km-event-modal-body {
    padding: 22px;
}

.km-event-detail-card {
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid #f0dfc6;
    border-radius: 15px;
    background: linear-gradient(145deg, #fffdf9, #fff8ed);
}

.km-event-detail-card:last-child {
    margin-bottom: 0;
}

.km-event-detail-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a36c1c;
    font-size: 13px;
    font-weight: 700;
}

.km-event-detail-title {
    margin: 13px 0 10px;
    color: #70212b;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 800;
}

.km-event-detail-occasion {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 30px;
    background: #fff0cf;
    color: #986316;
    font-size: 12px;
    font-weight: 700;
}

.km-event-detail-description {
    margin: 15px 0 0;
    color: #655750;
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-line;
}

/* Footer */
.km-event-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 22px 20px;
    border-top: 1px solid #f1e8dc;
}

.km-modal-close-btn {
    border: 0;
    border-radius: 9px;
    padding: 11px 22px;
    background: linear-gradient(120deg, #8b2634, #b94d35);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.km-modal-close-btn:hover {
    background: #681d2b;
    color: #fff;
}

body.km-modal-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 576px) {

    .km-event-modal {
        padding: 12px;
    }

    .km-event-modal-dialog {
        max-height: 90vh;
        border-radius: 16px;
    }

    .km-event-modal-header {
        padding: 16px;
    }

    .km-event-modal-heading h3 {
        font-size: 16px;
    }

    .km-event-modal-body {
        padding: 15px;
    }

    .km-event-detail-card {
        padding: 14px;
    }

    .km-event-detail-title {
        font-size: 18px;
    }

    .km-event-detail-description {
        font-size: 13px;
    }
}


/* =====================================
   CALENDAR EVENT TEXT OVERFLOW FIX
===================================== */

.km-cal-day {
    min-width: 0;
    min-height: 75px;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    padding: 8px 6px;
}

.km-cal-event-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    margin-top: 5px;
}

.km-cal-label {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 700;
    color: #76212b;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.km-cal-occasion {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 600;
    color: #b17a24;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;

    overflow: hidden;
}

.km-cal-count {
    display: block;
    max-width: 100%;
    font-size: 9px;
    color: #986316;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.km-cal-day.is-outside {
    overflow: hidden;
}

@media (max-width: 576px) {
    .km-cal-day {
        min-height: 65px;
        padding: 6px 4px;
    }

    .km-cal-label {
        font-size: 9px;
    }

    .km-cal-occasion {
        font-size: 8px;
    }
}
/* Donation Layout */
.km-donate-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 35px;
    align-items: start;
}

/* Sticky Donation Intro */
.km-donate-intro {
    position: sticky;
    top: 100px;
    align-self: start;
    height: fit-content;
}

/* Form */
.km-donate-form {
    width: 100%;
    min-width: 0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .km-donate-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .km-donate-intro {
        position: relative;
        top: auto;
    }
}
/* Material Row */
.km-public-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: end;
    margin-top: 15px;
    padding: 18px;
    background: #fffaf3;
    border: 1px solid #f0dfc5;
    border-radius: 12px;
}

/* Material Select Full Width */
.km-public-item-row .km-form-field.full {
    grid-column: 1 / -1;
}

/* Quantity and Total */
.km-public-item-row .km-form-field {
    min-width: 0;
}

/* Action Buttons */
.km-material-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0;
    flex-wrap: nowrap;
}

.km-material-actions .km-btn {
    white-space: nowrap;
    padding: 11px 16px;
    min-height: 44px;
}

/* Mobile */
@media (max-width: 575px) {
    .km-public-item-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }

    .km-material-actions {
        grid-column: 1 / -1;
    }

    .km-material-actions .km-btn {
        flex: 1;
        justify-content: center;
    }
}


/* Special Bhog Booking Button */

.km-event-booking-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(110deg, #922d36, #b64b37);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: all .25s ease;
}

.km-event-booking-btn span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.km-event-booking-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(146, 45, 54, .22);
}

.km-event-booking-btn i {
    font-size: 14px;
}

.km-event-booking-btn span i {
    color: #ffe2a9;
}
