/* Dedaandsons — Important Dates & Occasions */
.imp-date-card {
    --imp-accent: #2563eb;
    --imp-accent-dark: #1d4ed8;
    --imp-text: #1e293b;
    --imp-muted: #64748b;
    --imp-border: #e2e8f0;
    --imp-soft: #f8fafc;
    --imp-blue-soft: #eff6ff;

    box-sizing: border-box;
    width: 100%;
    margin: 24px 0;
    padding: clamp(18px, 4vw, 26px);
    background: #fff;
    color: var(--imp-text);
    border: 1px solid var(--imp-border);
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .05);
    font-family: inherit;
    line-height: 1.6;
}

.imp-date-card *,
.imp-date-card *::before,
.imp-date-card *::after {
    box-sizing: border-box;
}

/* Header */

.imp-date-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.imp-date-flag {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    margin: 0;
    background: #f1f5f9;
    border: 1px solid var(--imp-border);
    border-radius: 14px;
    font-size: 2rem;
}

.imp-date-heading {
    min-width: 0;
}

.imp-date-heading h2 {
    margin: 0 0 4px;
    color: var(--imp-text);
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.03em;
}

.imp-date-heading p {
    margin: 0;
    color: var(--imp-muted);
    font-size: .9rem;
}

/* Date highlight */

.imp-date-panel {
    padding: 18px;
    background: var(--imp-blue-soft);
    border: 1px solid #dbeafe;
    border-radius: 14px;
}

.imp-date-label {
    margin: 0 0 7px;
    color: var(--imp-muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.imp-date-value {
    margin: 0;
    color: var(--imp-accent-dark);
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* Divider */

.imp-date-divider {
    height: 1px;
    margin: 22px 0;
    background: var(--imp-border);
    border: 0;
}

/* Countdown heading */

.imp-countdown-heading {
    margin: 0 0 5px;
    color: var(--imp-text);
    font-size: 1.1rem;
    font-weight: 750;
}

.imp-countdown-description {
    margin: 0 0 14px;
    color: var(--imp-muted);
    font-size: .9rem;
}

/* Countdown container */

.imp-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 130px;
    padding: 20px 16px;
    background: linear-gradient(145deg, #eff6ff, #f8fbff);
    
    border: 1px solid #dbeafe;
    border-radius: 16px;
    text-align: center;
}

/* Large blue number */

.imp-countdown .countdown-number {
    display: block;
    margin: 0;
    color: var(--imp-accent-dark);
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -.055em;
    font-variant-numeric: tabular-nums;
}

/* Days remaining label */

.imp-countdown .countdown-message {
    display: block;
    margin: 6px 0 0;
    color: #475569;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Fallback for simple text countdowns */

.imp-countdown > #oman-national-day,
.imp-countdown > div:not(.countdown-number):not(.countdown-message) {
    color: var(--imp-accent-dark);
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Optional footer */

.imp-date-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    color: var(--imp-muted);
    font-size: .82rem;
}

.imp-date-footer span {
    color: var(--imp-accent);
}

/* Mobile */

@media (max-width: 480px) {
    .imp-date-card {
        margin: 18px 0;
        padding: 16px;
        border-radius: 16px;
    }

    .imp-date-header {
        gap: 11px;
        margin-bottom: 18px;
    }

    .imp-date-flag {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        font-size: 1.7rem;
    }

    .imp-date-panel {
        padding: 15px;
    }

    .imp-countdown {
        min-height: 115px;
        padding: 17px 12px;
    }

    .imp-countdown .countdown-number {
        font-size: clamp(2.8rem, 14vw, 3.8rem);
    }

    .imp-countdown .countdown-message {
        font-size: .88rem;
        
    }
}