/* ==========================================================================
   DServer Offers Page Styling (Premium Web Design System)
   ========================================================================== */

:root {
    --offers-primary: #143872;
    --offers-primary-light: #1e4d94;
    --offers-success: #10b981;
    --offers-orange: #f97316;
    --offers-blue: #0066ff;
    --offers-purple: #7c3aed;
    --offers-text-dark: #0f172a;
    --offers-text-muted: #64748b;
    --offers-border: #e2e8f0;
    --offers-bg-light: #f8f9ff;
    --offers-card-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    --offers-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Page Wrapper */
.offers-page-wrapper {
    font-family: var(--offers-font);
    color: var(--offers-text-dark);
    background-color: #f8f9ff;
    overflow-x: hidden;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.offers-hero {
    background: linear-gradient(180deg, #001350 0%, #002276 100%);
    padding: 50px 0;
    color: #ffffff;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.offers-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.offers-hero-title span {
    color: #38bdf8;
}

.offers-hero-sub {
    font-size: 16.5px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 25px;
    max-width: 580px;
}

/* Bullet Features under Hero */
.offers-hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.offers-hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 240px;
}

.offers-hero-feature-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.offers-hero-feature-text {
    display: flex;
    flex-direction: column;
}

.offers-hero-feature-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.offers-hero-feature-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Interactive Overlapping Hero Container */
.offers-hero-interactive-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 340px;
    transform: translateX(-40px); /* Shift both card and image leftward */
}

/* Scissor Coupon Box in Hero */
.offers-hero-coupon-card {
    background: rgba(13, 30, 61, 0.45); /* translucent glassmorphism */
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 35px 30px;
    backdrop-filter: blur(16px);
    width: 320px;
    position: relative;
    z-index: 10;
    margin-right: 270px; /* Offset further left to overlay the enlarged image */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.offers-hero-coupon-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #cbd5e1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.offers-hero-coupon-dashed-box {
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease;
}

.offers-hero-coupon-dashed-box:hover {
    border-color: #38bdf8;
}

/* Scissor Icon overlay */
.offers-hero-coupon-scissor {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #0d1e3a;
    padding: 2px 6px;
    color: #38bdf8;
    font-size: 16px;
    transform: rotate(-30deg);
}

.offers-hero-coupon-code {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    display: block;
}

.offers-hero-coupon-desc {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* Hero image container (gift box image, absolute full-height with overflow to scale larger) */
.offers-hero-image-container {
    position: absolute;
    right: -20px; /* Shifted further right/outside container */
    top: -45px;
    bottom: -45px;
    width: 70%; /* Expanded width for larger sizing */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center; /* Center image within container */
}

.offers-hero-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.3) 0%, rgba(0, 102, 255, 0.05) 50%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: offersGlowPulse 5s infinite ease-in-out;
}

@keyframes offersGlowPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.offers-hero-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 35px rgba(0, 102, 255, 0.25));
    /* Float keyframe animation with scale */
    animation: floatOffersGift 5.5s ease-in-out infinite;
}

@keyframes floatOffersGift {
    0% { transform: scale(1.20); }
    50% { transform: scale(1.26); }
    100% { transform: scale(1.20); }
}

/* Floating Confetti Styles */
.offers-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.offers-confetti.c-blue-1 {
    background: #38bdf8;
    left: 20%;
    top: 30%;
    width: 6px;
    height: 12px;
    transform: rotate(15deg);
    animation: driftConfetti1 5.5s infinite ease-in-out;
}

.offers-confetti.c-orange-1 {
    background: #f97316;
    left: 75%;
    top: 25%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: driftConfetti2 6s infinite ease-in-out;
}

.offers-confetti.c-purple-1 {
    background: #7c3aed;
    left: 35%;
    top: 70%;
    width: 10px;
    height: 4px;
    animation: driftConfetti3 5.8s infinite ease-in-out;
}

.offers-confetti.c-blue-2 {
    background: #0066ff;
    left: 80%;
    top: 60%;
    width: 7px;
    height: 7px;
    animation: driftConfetti4 6.2s infinite ease-in-out;
}

.offers-confetti.c-orange-2 {
    background: #f97316;
    left: 15%;
    top: 55%;
    width: 5px;
    height: 10px;
    animation: driftConfetti5 5.2s infinite ease-in-out;
}

/* Confetti Keyframe Animations */
@keyframes driftConfetti1 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { transform: translate(-25px, -45px) rotate(240deg); opacity: 0; }
}

@keyframes driftConfetti2 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    15% { opacity: 0.75; }
    85% { opacity: 0.75; }
    100% { transform: translate(25px, -50px) rotate(-180deg); opacity: 0; }
}

@keyframes driftConfetti3 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.65; }
    80% { opacity: 0.65; }
    100% { transform: translate(30px, 35px) rotate(150deg); opacity: 0; }
}

@keyframes driftConfetti4 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.75; }
    90% { opacity: 0.75; }
    100% { transform: translate(-30px, -30px) rotate(320deg); opacity: 0; }
}

@keyframes driftConfetti5 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    15% { opacity: 0.6; }
    85% { opacity: 0.6; }
    100% { transform: translate(20px, -40px) rotate(-270deg); opacity: 0; }
}

/* Floating Pulsing % Symbols */
.offers-floating-percent {
    position: absolute;
    color: rgba(56, 189, 248, 0.22);
    font-family: var(--offers-font);
    font-weight: 800;
    pointer-events: none;
    z-index: 1;
}

.offers-floating-percent.p-1 {
    font-size: 26px;
    left: 25%;
    top: 15%;
    animation: floatPercent1 5.4s infinite ease-in-out;
}

.offers-floating-percent.p-2 {
    font-size: 20px;
    right: 25%;
    bottom: 20%;
    animation: floatPercent2 5.6s infinite ease-in-out;
}

@keyframes floatPercent1 {
    0% { transform: translateY(0) scale(0.9) rotate(0deg); opacity: 0.22; }
    50% { transform: translateY(-8px) scale(1.15) rotate(15deg); opacity: 0.55; text-shadow: 0 0 15px rgba(56, 189, 248, 0.4); }
    100% { transform: translateY(0) scale(0.9) rotate(0deg); opacity: 0.22; }
}

@keyframes floatPercent2 {
    0% { transform: translateY(0) scale(0.9) rotate(0deg); opacity: 0.22; }
    50% { transform: translateY(-6px) scale(1.1) rotate(-10deg); opacity: 0.5; text-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }
    100% { transform: translateY(0) scale(0.9) rotate(0deg); opacity: 0.22; }
}

/* ==========================================================================
   Active Offers Section
   ========================================================================== */
.offers-active-section {
    padding: 80px 0;
    background-color: #f8f9ff;
}

.offers-active-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}

.offers-active-title-group {
    display: flex;
    flex-direction: column;
}

.offers-active-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--offers-text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.offers-active-section-subtitle {
    font-size: 15px;
    color: var(--offers-text-muted);
}

/* How to use a coupon button */
.offers-how-to-use-btn {
    background: #ffffff;
    border: 1px solid var(--offers-border);
    color: var(--offers-text-dark) !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.offers-how-to-use-btn:hover {
    background: var(--offers-bg-light);
    border-color: #cbd5e1;
}

.offers-how-to-use-btn svg {
    color: var(--offers-text-muted);
}

/* Grid layout of active cards */
.offers-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Empty State Message styling */
.offers-empty-state-box {
    grid-column: span 4;
    text-align: center;
    padding: 60px 40px;
    border: 2px dashed var(--offers-border);
    border-radius: 16px;
    background: var(--offers-bg-light);
}

.offers-empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--offers-text-dark);
    margin-bottom: 6px;
}

.offers-empty-state-text {
    font-size: 14.5px;
    color: var(--offers-text-muted);
    margin: 0;
}

/* Dynamic Card designs */
.offers-card {
    background: #ffffff;
    border: 1px solid var(--offers-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--offers-card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offers-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

/* Top accent color stripe */
.offers-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* Card Badge */
.offers-card-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

/* Card Icons */
.offers-card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.offers-card-icon-wrapper svg,
.offers-card-icon-wrapper img {
    max-width: 32px;
    height: auto;
}

.offers-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--offers-text-dark);
    margin-bottom: 8px;
}

.offers-card-discount {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}

.offers-card-description {
    font-size: 13.5px;
    color: var(--offers-text-muted);
    font-weight: 600;
    margin-bottom: 24px;
}

/* Coupon Code copy section */
.offers-card-coupon-container {
    background: var(--offers-bg-light);
    border: 1px dashed var(--offers-border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.offers-coupon-label-group {
    display: flex;
    flex-direction: column;
}

.offers-coupon-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--offers-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offers-coupon-value {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--offers-text-dark);
}

.offers-coupon-copy-btn {
    background: transparent;
    border: none;
    color: var(--offers-text-muted);
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.offers-coupon-copy-btn:hover {
    color: var(--offers-text-dark);
}

/* Validity line */
.offers-card-validity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--offers-text-muted);
    margin-bottom: 24px;
}

.offers-card-validity-row svg {
    flex-shrink: 0;
}

/* Action button at bottom */
.offers-card-action-btn {
    text-align: center;
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
    width: 100%;
}

.offers-card-action-btn:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   Offers Themes configurations (orange, green, blue, purple)
   ========================================================================== */

/* 1. Orange Theme */
.offers-card.orange::before {
    background-color: var(--offers-orange);
}
.offers-card.orange .offers-card-badge {
    background-color: #fff3eb;
    color: var(--offers-orange);
}
.offers-card.orange .offers-card-icon-wrapper {
    background-color: #fff3eb;
    color: var(--offers-orange);
}
.offers-card.orange .offers-card-discount {
    color: var(--offers-orange);
}
.offers-card.orange .offers-card-action-btn {
    background-color: var(--offers-orange);
    color: #ffffff !important;
}
.offers-card.orange .offers-card-action-btn:hover {
    background-color: #ea580c;
}

/* 2. Green Theme */
.offers-card.green::before {
    background-color: var(--offers-success);
}
.offers-card.green .offers-card-badge {
    background-color: #ecfdf5;
    color: var(--offers-success);
}
.offers-card.green .offers-card-icon-wrapper {
    background-color: #ecfdf5;
    color: var(--offers-success);
}
.offers-card.green .offers-card-discount {
    color: var(--offers-success);
}
.offers-card.green .offers-card-action-btn {
    background-color: var(--offers-success);
    color: #ffffff !important;
}
.offers-card.green .offers-card-action-btn:hover {
    background-color: #059669;
}

/* 3. Blue Theme */
.offers-card.blue::before {
    background-color: var(--offers-blue);
}
.offers-card.blue .offers-card-badge {
    background-color: #f0f7ff;
    color: var(--offers-blue);
}
.offers-card.blue .offers-card-icon-wrapper {
    background-color: #f0f7ff;
    color: var(--offers-blue);
}
.offers-card.blue .offers-card-discount {
    color: var(--offers-blue);
}
.offers-card.blue .offers-card-action-btn {
    background-color: var(--offers-blue);
    color: #ffffff !important;
}
.offers-card.blue .offers-card-action-btn:hover {
    background-color: #0052cc;
}

/* 4. Purple Theme */
.offers-card.purple::before {
    background-color: var(--offers-purple);
}
.offers-card.purple .offers-card-badge {
    background-color: #f5f3ff;
    color: var(--offers-purple);
}
.offers-card.purple .offers-card-icon-wrapper {
    background-color: #f5f3ff;
    color: var(--offers-purple);
}
.offers-card.purple .offers-card-discount {
    color: var(--offers-purple);
}
.offers-card.purple .offers-card-action-btn {
    background-color: var(--offers-purple);
    color: #ffffff !important;
}
.offers-card.purple .offers-card-action-btn:hover {
    background-color: #6d28d9;
}

/* ==========================================================================
   Social CTA Line Bar
   ========================================================================== */
.offers-social-bar {
    background: #f0f7ff;
    border: 1px solid #d0e7ff;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.offers-social-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.offers-social-badge-icon {
    width: 44px;
    height: 44px;
    background: var(--offers-blue);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.15);
}

.offers-social-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--offers-text-dark);
}

.offers-social-desc {
    font-size: 12.5px;
    color: var(--offers-text-muted);
    margin-top: 2px;
}

/* Social icons links */
.offers-social-links {
    display: flex;
    gap: 12px;
}

.offers-social-icon-btn {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid var(--offers-border);
    color: var(--offers-text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.offers-social-icon-btn:hover {
    background: var(--offers-blue);
    color: #ffffff !important;
    border-color: var(--offers-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.15);
}

/* ==========================================================================
   Terms and Conditions Section
   ========================================================================== */
.offers-terms-section {
    padding: 60px 0;
    border-top: 1px solid var(--offers-border);
    background-color: #f8f9ff;
}

.offers-terms-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--offers-text-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.offers-terms-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--offers-blue);
    border-radius: 2px;
}

.offers-terms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.offers-terms-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.offers-terms-icon {
    color: var(--offers-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.offers-terms-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--offers-text-dark);
    font-weight: 600;
}

/* ==========================================================================
   Newsletter Subscription Banner Card
   ========================================================================== */
.offers-newsletter-section {
    padding: 0 0 60px 0;
    background-color: #ffffff;
}

.offers-newsletter-container {
    background: #020b1e;
    border-radius: 16px;
    padding: 40px;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.offers-newsletter-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.offers-newsletter-mail-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.offers-newsletter-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.offers-newsletter-desc {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Form inputs on right */
.offers-newsletter-form {
    display: flex;
    gap: 12px;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
}

.offers-newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 14px;
    width: 100%;
    max-width: 320px;
    outline: none;
    transition: all 0.2s ease;
}

.offers-newsletter-input:focus {
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.08);
}

.offers-newsletter-submit-btn {
    background-color: #0066ff;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.offers-newsletter-submit-btn:hover {
    background-color: #0052cc;
}

/* ==========================================================================
   Toast Notification Overlay
   ========================================================================== */
.offers-toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offers-toast-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.offers-toast-icon {
    color: var(--offers-success);
}

/* ==========================================================================
   Latest Announcements Section
   ========================================================================== */
.announcements-section {
    padding: 80px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--offers-border);
}

.announcements-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}

.announcements-title-group {
    display: flex;
    flex-direction: column;
}

.announcements-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--offers-text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.announcements-section-subtitle {
    font-size: 15px;
    color: var(--offers-text-muted);
}

.announcements-view-all-link {
    color: var(--offers-blue) !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.announcements-view-all-link:hover {
    transform: translateX(4px);
}

/* Announcements Grid */
.announcements-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.announcements-empty-state-box {
    grid-column: span 4;
    text-align: center;
    padding: 60px 40px;
    border: 2px dashed var(--offers-border);
    border-radius: 16px;
    background: var(--offers-bg-light);
}

.announcements-empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--offers-text-dark);
    margin-bottom: 6px;
}

.announcements-empty-state-text {
    font-size: 14.5px;
    color: var(--offers-text-muted);
    margin: 0;
}

/* Announcement Card */
.announcement-card {
    background: #ffffff;
    border: 1px solid var(--offers-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--offers-card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-height: 290px;
    position: relative;
    overflow: hidden;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

/* Top accent color stripe */
.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.announcement-card-top {
    display: flex;
    flex-direction: column;
}

.announcement-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.announcement-badge-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.announcement-category-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--offers-text-dark);
    margin: 0;
    line-height: 1.35;
}

.announcement-description {
    font-size: 13.5px;
    color: var(--offers-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 60px; /* Force consistent heights for description */
}

.announcement-cta-link {
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.announcement-cta-link .cta-arrow-icon {
    transition: transform 0.2s ease;
}

.announcement-cta-link:hover .cta-arrow-icon {
    transform: translateX(4px);
}

.announcement-card-bottom {
    border-top: 1px solid var(--offers-border);
    padding-top: 16px;
    margin-top: 20px;
}

.announcement-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--offers-text-muted);
}

.announcement-date-row svg {
    color: var(--offers-text-muted);
    flex-shrink: 0;
}

/* Color Themes for Announcements */
/* 1. Blue (New Launch) */
.announcement-card.blue::before {
    background-color: var(--offers-blue);
}
.announcement-card.blue .announcement-icon-wrapper {
    background-color: #f0f7ff;
    color: var(--offers-blue);
}
.announcement-card.blue .announcement-category-badge {
    background-color: #f0f7ff;
    color: var(--offers-blue);
}
.announcement-card.blue .announcement-cta-link {
    color: var(--offers-blue) !important;
}

/* 2. Green (Promotion) */
.announcement-card.green::before {
    background-color: var(--offers-success);
}
.announcement-card.green .announcement-icon-wrapper {
    background-color: #ecfdf5;
    color: var(--offers-success);
}
.announcement-card.green .announcement-category-badge {
    background-color: #ecfdf5;
    color: var(--offers-success);
}
.announcement-card.green .announcement-cta-link {
    color: var(--offers-success) !important;
}

/* 3. Orange (Maintenance) */
.announcement-card.orange::before {
    background-color: var(--offers-orange);
}
.announcement-card.orange .announcement-icon-wrapper {
    background-color: #fff3eb;
    color: var(--offers-orange);
}
.announcement-card.orange .announcement-category-badge {
    background-color: #fff3eb;
    color: var(--offers-orange);
}
.announcement-card.orange .announcement-cta-link {
    color: var(--offers-orange) !important;
}

/* 4. Purple (Feature Update) */
.announcement-card.purple::before {
    background-color: var(--offers-purple);
}
.announcement-card.purple .announcement-icon-wrapper {
    background-color: #f5f3ff;
    color: var(--offers-purple);
}
.announcement-card.purple .announcement-category-badge {
    background-color: #f5f3ff;
    color: var(--offers-purple);
}
.announcement-card.purple .announcement-cta-link {
    color: var(--offers-purple) !important;
}

/* ==========================================================================
   Responsive Breakpoints Overrides
   ========================================================================== */

@media (max-width: 1199px) {
    .offers-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .offers-empty-state-box {
        grid-column: span 2;
    }
    .announcements-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .announcements-empty-state-box {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    .offers-hero-title {
        font-size: 34px;
    }
    .offers-hero-interactive-container {
        margin-top: 40px;
        transform: none; /* Reset desktop horizontal shift on mobile stack */
    }
    .offers-newsletter-form {
        justify-content: flex-start;
        margin-top: 25px;
    }
    .offers-newsletter-input {
        max-width: 100%;
    }
    .offers-terms-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .offers-hero {
        padding: 50px 0;
    }
    .offers-hero-features {
        flex-direction: column;
        gap: 15px;
    }
    .offers-hero-interactive-container {
        flex-direction: column;
        gap: 20px;
        min-height: auto;
        margin-top: 30px;
    }
    .offers-hero-coupon-card {
        margin-right: 0;
        margin-bottom: -40px;
        width: 100%;
        max-width: 320px;
        z-index: 10;
    }
    .offers-hero-image-container {
        position: relative;
        width: 100%;
        max-width: 320px;
        height: 240px;
        right: auto;
        top: auto;
        bottom: auto;
        z-index: 5;
    }
    .offers-hero-image {
        animation: floatOffersGiftMobile 6s ease-in-out infinite;
    }
    .offers-hero-glow {
        width: 240px;
        height: 240px;
    }
    .offers-active-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .offers-how-to-use-btn {
        width: 100%;
        justify-content: center;
    }
    .offers-grid-container {
        grid-template-columns: 1fr;
    }
    .offers-empty-state-box {
        grid-column: span 1;
    }
    .offers-card-action-btn {
        width: 100%;
    }
    .offers-social-bar {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    .offers-social-left {
        flex-direction: column;
    }
    .offers-terms-grid {
        grid-template-columns: 1fr;
    }
    .offers-newsletter-left {
        flex-direction: column;
        text-align: center;
    }
    .offers-newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    .offers-newsletter-input {
        max-width: 100%;
    }
    .offers-newsletter-submit-btn {
        width: 100%;
    }
    .announcements-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .announcements-view-all-link {
        width: 100%;
        justify-content: flex-start;
    }
    .announcements-grid-container {
        grid-template-columns: 1fr;
    }
    .announcements-empty-state-box {
        grid-column: span 1;
    }
}

@keyframes floatOffersGiftMobile {
    0% { transform: scale(0.97); }
    50% { transform: scale(1.03); }
    100% { transform: scale(0.97); }
}
