/* বাংলা ক্যালেন্ডার ও সরকারি ছুটি — namaz-time.css-এর ওপর */
.cal-hero { padding-bottom: 80px; }
.cal-hero h1 span { color: #fde047; }
.cal-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.cal-tabs a { color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.cal-tabs a i { margin-right: 6px; opacity: .8; }
.cal-tabs a.active, .cal-tabs a:hover { background: #fde047; color: #3b2a05; border-color: #fde047; }

.cal-today { display: inline-flex; gap: 18px; align-items: stretch; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.cal-today-main { background: #fff; color: #0f172a; border-radius: 22px; padding: 18px 30px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .45); display: flex; flex-direction: column; justify-content: center; }
.cal-today-main small { color: #0a6b0a; font-weight: 700; font-size: 1rem; }
.cal-today-main b { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.2; }
.cal-today-main span { color: #64748b; font-weight: 600; }
.cal-today-side { display: grid; gap: 8px; text-align: left; }
.cal-today-side div { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 8px 14px; display: grid; grid-template-columns: 22px auto; column-gap: 8px; align-items: center; }
.cal-today-side i { grid-row: span 2; color: #fde047; }
.cal-today-side small { opacity: .8; font-size: .75rem; }
.cal-today-side b { font-size: 1rem; }

.cal-main { margin-top: -50px; }
.cal-card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 10px 30px -16px rgba(15, 23, 42, .22); }
.cal-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cal-card-head h2 { font-weight: 800; font-size: 1.15rem; margin: 0; }
.cal-card-head h2 a { color: #0f172a; text-decoration: none; }
.cal-card-head h2 a:hover { color: #0a6b0a; }
.cal-month-sub { font-size: .8rem; color: #64748b; font-weight: 600; margin-bottom: 8px; }
.cal-month-sub span { margin: 0 4px; color: #cbd5e1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: .78rem; font-weight: 700; color: #475569; padding: 4px 0; }
.cal-wd:nth-child(6), .cal-wd:nth-child(7) { color: #dc2626; }
.cal-cell { position: relative; min-height: 74px; border-radius: 12px; background: #f8fafc; padding: 6px 7px; display: flex; flex-direction: column; border: 1px solid transparent; }
.cal-cell.empty { background: transparent; }
.cal-cell b { font-size: 1.15rem; color: #0f172a; line-height: 1.1; }
.cal-cell .bn { font-size: .72rem; color: #0a6b0a; font-weight: 600; margin-top: 2px; }
.cal-cell .hj { font-size: .66rem; color: #94a3b8; }
.cal-cell .cal-hname { font-style: normal; font-size: .62rem; font-weight: 700; color: #b91c1c; margin-top: auto; line-height: 1.2; }
.cal-cell.weekend b { color: #dc2626; }
.cal-cell.holiday { background: #fef2f2; border-color: #fecaca; }
.cal-cell.holiday b { color: #b91c1c; }
.cal-cell.optional { background: #fffbeb; border-color: #fde68a; }
.cal-cell.today { border: 2px solid #0a6b0a; background: #f0fdf4; }
.cal-month.compact .cal-cell { min-height: 46px; padding: 4px 5px; border-radius: 9px; }
.cal-month.compact .cal-cell b { font-size: .95rem; }
.cal-month.compact .cal-cell .bn { font-size: .62rem; }
.cal-big .cal-cell { min-height: 96px; }
.cal-big .cal-cell b { font-size: 1.4rem; }

.cal-year { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cal-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: #475569; margin: 18px 0 12px; }
.cal-legend span { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 8px; }
.cal-legend .lg-h { background: #fef2f2; border: 1px solid #fecaca; }
.cal-legend .lg-w { background: #f8fafc; border: 1px solid #fca5a5; }
.cal-legend .lg-o { background: #fffbeb; border: 1px solid #fde68a; }
.cal-legend .lg-t { background: #f0fdf4; border: 2px solid #0a6b0a; }

.cal-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cal-facts > div { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 26px -16px rgba(15, 23, 42, .25); display: grid; grid-template-columns: 34px auto; column-gap: 10px; align-items: center; }
.cal-facts i { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: #f0fdf4; color: #0a6b0a; display: flex; align-items: center; justify-content: center; }
.cal-facts small { color: #64748b; font-size: .78rem; font-weight: 600; }
.cal-facts b { font-size: 1rem; color: #0f172a; }

.cal-approx { display: inline-block; font-size: .66rem; font-weight: 700; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.cal-type { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.cal-type.general { background: #dcfce7; color: #166534; }
.cal-type.executive { background: #e0f2fe; color: #075985; }
.cal-hol-table td:first-child { text-align: left; }
.cal-hol-table td { font-weight: 500; }

.cal-up { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cal-up-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 22px -16px rgba(15, 23, 42, .3); }
.cal-up-item small { display: block; color: #64748b; font-size: .8rem; }
.cal-up-date { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 14px; background: #fef2f2; color: #b91c1c; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.cal-up-date b { font-size: 1.3rem; }
.cal-up-date small { color: #b91c1c; font-size: .68rem; font-weight: 700; }
.cal-up-date.long { background: #ecfdf5; color: #065f46; }
.cal-up-date.long small { color: #065f46; }

.cal-status { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.cal-status i { font-size: 1.3rem; margin-top: 2px; }
.cal-status b { display: block; }
.cal-status span { font-size: .88rem; }
.cal-status.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.cal-status.warn { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.cal-opt { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cal-opt h3 { font-size: 1rem; font-weight: 800; color: #0a6b0a; }
.cal-opt ul { list-style: none; padding: 0; margin: 0; }
.cal-opt li { padding: 6px 0; border-bottom: 1px dashed #e2e8f0; font-size: .9rem; }
.cal-opt li span { display: inline-block; min-width: 140px; font-weight: 700; color: #334155; }
.cal-pn { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
.cal-pn a { background: #fff; border-radius: 999px; padding: 8px 16px; text-decoration: none; color: #0f172a; font-weight: 600; box-shadow: 0 6px 18px -12px rgba(15, 23, 42, .3); }
.cal-pn a.mid { background: #0a6b0a; color: #fff; }
.cal-day-table td small { display: block; color: #b91c1c; font-size: .72rem; }

@media (max-width: 991px) {
    .cal-year { grid-template-columns: repeat(2, 1fr); }
    .cal-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .cal-year { grid-template-columns: 1fr; }
    .cal-up, .cal-opt { grid-template-columns: 1fr; }
    .cal-grid { gap: 3px; }
    .cal-cell { min-height: 58px; padding: 4px; border-radius: 9px; }
    .cal-cell b { font-size: .95rem; }
    .cal-cell .bn { font-size: .6rem; }
    .cal-cell .hj { display: none; }
    .cal-cell .cal-hname { font-size: .55rem; }
    .cal-big .cal-cell { min-height: 70px; }
    .cal-big .cal-cell b { font-size: 1.05rem; }
    .cal-today-main { padding: 14px 20px; }
    .cal-pn a { padding: 7px 12px; font-size: .85rem; }
}
@media print {
    header, footer, nav, .cal-tabs, .cal-legend button, .nt-faq, .nc-faq, .nt-chips, .cal-pn { display: none !important; }
    .nt-hero { background: none !important; color: #000; padding: 0 !important; }
    .cal-main { margin-top: 0; }
    .cal-card { box-shadow: none; border: 1px solid #e2e8f0; break-inside: avoid; }
}

/* ফটোকার্ড ডাউনলোড */
.cal-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; }
.cal-dl canvas { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .35); }
@media (max-width: 767px) { .cal-cards-grid { grid-template-columns: 1fr; } .cal-dl { max-width: 400px; margin: 0 auto; width: 100%; } }
@media print { .cal-cards { display: none !important; } }
