html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 80px;
}

/* Mobile navigation menu */
#mobileMenu {
    display: none;
    flex-direction: column;
}

#mobileMenu.is-open {
    display: flex;
}

@media (min-width: 768px) {
    #mobileMenu {
        display: none;
    }
}

.slide{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    /* یا گرادیان */
    /* background: linear-gradient(to top,
        rgba(0,0,0,.70),
        rgba(0,0,0,.40),
        rgba(0,0,0,.20)); */
}

.slide > div{
    position: relative;
    z-index: 1;
}

/* ---------- تقویم فارسی ---------- */
.pf-dp { position: relative; }

.pf-dp__popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 288px;
    max-width: 100%;
    max-height: min(420px, calc(100vh - 120px));
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    padding: 12px;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.pf-dp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.pf-dp__nav {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.pf-dp__nav:hover { background: #f3f4f6; }

.pf-dp__title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #172554;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.pf-dp__title:hover { color: #1d4ed8; }

.pf-dp__weekdays,
.pf-dp__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.pf-dp__weekdays { margin-bottom: 4px; }

.pf-dp__weekdays span {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    padding: 4px 0;
}

.pf-dp__cell {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.pf-dp__day {
    font-size: 13px;
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
}

.pf-dp__day:hover:not(.is-disabled) { background: #eff6ff; color: #1d4ed8; }

.pf-dp__day.is-today {
    color: #1d4ed8;
    font-weight: 700;
    border: 1px solid #bfdbfe;
}

.pf-dp__day.is-selected {
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
}

.pf-dp__day.is-disabled { color: #d1d5db; cursor: not-allowed; }

.pf-dp__months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pf-dp__month {
    padding: 8px 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    cursor: pointer;
}

.pf-dp__month:hover { border-color: #93c5fd; color: #1d4ed8; }

.pf-dp__month.is-selected {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

.pf-dp__yearnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pf-dp__yearnav input {
    width: 84px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
    font-size: 13px;
    font-family: 'Vazirmatn', sans-serif;
}

.pf-dp__yearnav input:focus { outline: 2px solid #93c5fd; outline-offset: 0; border-color: #1d4ed8; }

.pf-dp__foot {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
}

.pf-dp__today {
    border: none;
    background: none;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pf-dp__today:hover { text-decoration: underline; }
