/* ==============================================
   SPECIAL OFFERS — special-offers.css
   Dark navy band with offer cards + optional
   live countdown (only rendered when a deadline
   is set in Website Settings > special_offer_deadline).
   Enqueue via: wp_enqueue_style() — front page only.
   ============================================== */

#tx-special-offers {
    padding: 55px 0;
    background: var(--color-navy, #00406B);
}

#tx-special-offers h2 {
    font-family: 'Oswald', sans-serif;
    font-size:   clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color:       #fff;
    margin-bottom: 4px;
}

#tx-special-offers .tx-offers-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Countdown ---------- */
.tx-countdown {
    display:         flex;
    align-items:     center;
    gap:             14px;
    justify-content: flex-end;
    flex-wrap:       wrap;
}

.tx-countdown-label {
    color:       rgba(255, 255, 255, 0.75);
    font-size:   0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tx-countdown-units {
    display: flex;
    gap: 8px;
}

.tx-countdown-unit {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    justify-content: center;
    width:          52px;
    height:         52px;
    background:     rgba(255, 255, 255, 0.12);
    border:         1px solid rgba(255, 255, 255, 0.25);
    border-radius:  8px;
}

.tx-countdown-unit span {
    font-family: 'Oswald', sans-serif;
    font-size:   1.1rem;
    font-weight: 700;
    color:       #fff;
    line-height: 1;
}

.tx-countdown-unit small {
    font-size: 0.6rem;
    color:     rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    margin-top: 2px;
}

/* ---------- Offer cards ---------- */
.tx-offer-card {
    background:    #fff;
    border-radius: 12px;
    overflow:      hidden;
    height:        100%;
    box-shadow:    0 10px 26px rgba(0, 0, 0, 0.15);
    transition:    transform 0.2s ease;
}

.tx-offer-card:hover { transform: translateY(-4px); }

.tx-offer-img-wrap {
    position: relative;
    height:   140px;
    overflow: hidden;
}

.tx-offer-img-wrap .tx-offer-img {
    width:      100%;
    height:     100%;
    object-fit: cover;
}

.tx-offer-badge {
    position:       absolute;
    top:            10px;
    left:           10px;
    background:     #e63946;
    color:          #fff;
    font-family:    'Oswald', sans-serif;
    font-size:      0.7rem;
    font-weight:    700;
    padding:        4px 10px;
    border-radius:  20px;
}

.tx-offer-body {
    padding: 16px;
}

.tx-offer-title {
    font-size:   0.95rem;
    font-weight: 700;
    color:       var(--color-navy, #00406B);
    margin-bottom: 4px;
    line-height: 1.3;
}

.tx-offer-duration {
    font-size: 0.75rem;
    color:     var(--color-muted, #6c757d);
    margin-bottom: 6px;
}

.tx-offer-price {
    font-family: 'Oswald', sans-serif;
    font-size:   1rem;
    font-weight: 700;
    color:       var(--color-primary, #015285);
    margin-bottom: 12px;
}

.tx-offer-btn {
    display:          block;
    text-align:       center;
    background:       var(--color-navy, #00406B);
    color:            #fff;
    text-decoration:  none;
    font-size:        0.8rem;
    font-weight:      700;
    text-transform:   uppercase;
    letter-spacing:   0.03em;
    padding:          11px;
    border-radius:    30px;
    transition:       background 0.2s ease;
}

.tx-offer-btn:hover {
    background: var(--color-primary, #015285);
    color:      #fff;
}

@media (max-width: 767px) {
    .tx-countdown { justify-content: flex-start; margin-top: 16px; }
    .tx-countdown-unit { width: 46px; height: 46px; }
}
