/* =====================================================
   Countdown Text (Top Content)
   ===================================================== */
.countdown_text span {
    font-size: 15px;
    font-weight: 600;
    color: #05541a;
    margin-bottom: 3px;
    display: block;
}

.countdown_text p {
    font-size: 13px;
    color: #333333;
    margin-bottom: 6px;
    font-weight: 500;
}

.countdown {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
}

#countdown_message {
    font-size: 15px;
    color: #05541a;
    font-weight: 600;
    text-align: center;
    margin-top: 6px;
}

/* =====================================================
   Sticky Countdown Box
   ===================================================== */
.sticky-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 280px;
    z-index: 9;
    transition: top 0.4s ease;
}

/* Box Design */
.countdown-wrapper {
    background: rgb(249 249 255 / 85%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 9px;
    width: 250px;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

/* =====================================================
   Title
   ===================================================== */
.countdown-title {
    display: flex;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

/* Live Dot */
.dot {
    width: 8px;
    height: 8px;
    background: red;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

/* =====================================================
   Countdown Grid
   ===================================================== */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* Item */
.countdown-item {
    /* background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 2px;
    text-align: center;
    width: 45px; */

    background: rgb(255 255 255 / 32%);
    border-radius: 10px;
    padding: 2px;
    text-align: center;
    width: 45px;
    border: 2px solid #008b0040;
}

/* Number */
.countdown-number {
    font-size: 15px;
    font-weight: 700;
    color: #fb5252;
    line-height: 1.2;
}

.countdown-number.danger {
    color: #f87171;
}

/* Label */
.countdown-label {
    font-size: 9px;
    color: #000000;
    text-transform: uppercase;
}

/* =====================================================
   Ramadan Expired Message
   ===================================================== */
.ramadan-text {
    margin-top: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
    animation: fadeInScale 0.8s ease forwards;
}

.ramadan-text span {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

/* Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================
   Toggle Countdown
   ===================================================== */
#toggle-countdown span {
    font-size: 6px;
    cursor: pointer;
}

#toggle-countdown span:hover {
    color: #22c55e;
}

/* Optional: smaller size on mobile */
@media (max-width: 768px) {
    #toggle-countdown span {
        font-size: 6px;
    }
}

#toggle-countdown {
    position: absolute;
    top: 0px;
    left: 230px;
    cursor: pointer;
    z-index: 10;
    color: red;
}

#expand-btn {
    bottom: -15px;
    font-size: 41px;
    cursor: pointer;
    position: absolute;
}

/* =====================================================
   Mobile Optimization
   ===================================================== */
@media (max-width: 768px) {
    .sticky-box {
        width: 200px; /* choto kore dilam */
        bottom: 30px; /* screen bottom e thakbe */
        left: 10px;
    }

    .countdown-wrapper {
        padding: 6px 8px; /* kom padding */
        border-radius: 10px;
    }

    .countdown-title {
        font-size: 12px; /* choto title */
        margin-bottom: 4px;
        text-align: center;
    }

    .countdown-grid {
        gap: 4px; /* grid spacing kom */
    }

    .countdown-item {
        padding: 3px 2px; /* item padding kom */
        border-radius: 6px;
        width: 38px; /* item width choto */
    }

    .countdown-number {
        font-size: 13px; /* number font choto */
        line-height: 1;
    }

    .countdown-label {
        font-size: 8px; /* label font choto */
    }

    .ramadan-text {
        font-size: 12px; /* expired message choto */
        margin-top: 4px;
    }

    .ramadan-text span {
        font-size: 11px;
        line-height: 1.2;
    }
    #expand-btn {
        bottom: -24px;
        left: 7px;
    }
}
