/* === Leading Swing Badge Highlight === */
.news-update-item.leading-swing .news-date-badge {
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
    color: #fff;
    transform: scale(1.15) rotate(2deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
}

.news-update-item.leading-swing .news-date-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(91, 134, 229, 0.7);
    pointer-events: none;
}

/* === FASTER TICKER SCROLLING === */
.news-ticker-scroll-content {
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) !important; /* Faster */
    will-change: transform;
    backface-visibility: hidden;
}

/* Very slow speed - FASTER */
.ticker-speed-very-slow .news-ticker-scroll-content {
    transition-duration: 1.2s !important;
}

/* Slow speed - FASTER */
.ticker-speed-slow .news-ticker-scroll-content {
    transition-duration: 0.8s !important;
}

/* Disable other transitions that might conflict */
.news-ticker-wrapper,
.news-ticker-container,
.ticker-item {
    scroll-behavior: auto !important;
    overflow-anchor: none !important;
}

/* ================================
   FIXED NAVIGATION BUTTONS
=================================== */
.nav-controls {
    display: flex !important;
    gap: 5px !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1000 !important;
}

.control-btn {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100 !important;
    min-width: 36px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: Arial, sans-serif !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #0056b3 !important;
    color: #0056b3 !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}



.control-btn.prev-btn:hover:not(:disabled),
.control-btn.next-btn:hover:not(:disabled) {
    background: #0056b3 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.3) !important;
}

.control-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Fix tab buttons */
.news-tab-btn {
    background: transparent !important;
    color: #3FB9BE !important;
    border: none !important;
    padding: 10px 15px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    border-bottom: 3px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: 80px !important;
}

.news-tab-btn.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-bottom-color: #0056b3 !important;
}

.news-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

/* Fix tab scroll buttons */
.tab-scroll-btn {
    background: rgba(0, 86, 179, 0.8) !important;
    color: white !important;
    font-family: Arial, sans-serif !important;
}

.tab-scroll-btn:hover:not(:disabled) {
    background: #0056b3 !important;
}

/* Clickable ticker items */
.ticker-item {
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    position: relative;
}

.ticker-item:hover {
    background-color: rgba(0, 86, 179, 0.05) !important;
}

/* Ensure buttons inside are clickable too */
.ticker-item .download-btn,
.ticker-item .action-btn {
    position: relative;
    z-index: 2;
}

/* Tab transitions */
.news-tab-pane {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.news-tab-pane.active {
    opacity: 1;
    display: block;
}

/* ================================
   DESKTOP vs MOBILE SCROLLING FIX
=================================== */

/* DESKTOP: Smooth animated scrolling */
@media (min-width: 769px) {
    .news-ticker-wrapper {
        overflow: hidden !important;
        position: relative !important;
    }
    
    .news-ticker-scroll-content {
        position: absolute !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) !important; /* Faster */
    }
    
    .nav-controls {
        display: flex !important;
    }
}

/* MOBILE: Normal scrolling */
@media (max-width: 768px) {
    .news-ticker-wrapper {
        overflow: hidden !important;
        position: relative !important;
        height: calc(100% - 45px) !important;
    }
    
    .news-ticker-scroll-content {
        position: absolute !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) !important; /* Faster */
        transform: translateY(0px) !important;
    }
    
    .nav-controls {
        display: flex !important;
    }
    
    .news-ticker-scroll-content {
        transition-duration: 0.8s !important; /* Faster */
    }
    
    .ticker-speed-very-slow .news-ticker-scroll-content {
        transition-duration: 1.2s !important;
    }
    
    .ticker-speed-slow .news-ticker-scroll-content {
        transition-duration: 0.9s !important;
    }
}

@media (max-width: 480px) {
    .news-ticker-scroll-content {
        transition-duration: 0.7s !important; /* Faster */
    }
    
    .ticker-speed-very-slow .news-ticker-scroll-content {
        transition-duration: 1s !important;
    }
    
    .ticker-speed-slow .news-ticker-scroll-content {
        transition-duration: 0.8s !important;
    }
}

/* === Navigation Button Styles === */
.prev-btn, .next-btn {
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
}

/* Responsive button sizing */
@media (max-width: 768px) {
    .prev-btn, .next-btn {
        min-width: 35px !important;
        padding: 4px 6px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .prev-btn, .next-btn {
        min-width: 32px !important;
        padding: 3px 5px !important;
        font-size: 11px !important;
    }
}

/* ================================
   NEWS UPDATES PLUGIN STYLES - COMPACT VERSION
=================================== */

.news-tabs-container {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #e1e5e9;
}

.news-tabs-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* NEW: Top Header Styles */
.news-tabs-wrapper > .news-ticker-header {
    padding: 12px 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 45px !important;
    border-bottom: 1px solid #e1e5e9 !important;
    margin: 0 !important;
}

/* Arrow icon colors */
.control-btn.prev-btn,
.control-btn.next-btn {
    color: #0056b3 !important;
    border-color: #0056b3 !important;
}

.control-btn.prev-btn:hover,
.control-btn.next-btn:hover {
    background-color: #0056b3 !important;
    color: white !important;
}

.news-tabs-nav-container {
    position: relative;
    border-bottom: 1px solid #e1e5e9;
    overflow: hidden;
}

.news-tabs-nav-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 45px;
}

.news-tabs-nav-scroll::-webkit-scrollbar {
    display: none;
}

.news-tab-btn {
    background: transparent;
    color: #3FB9BE;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 75px;
}

.news-tab-btn.active {
    color: white;
    background: rgba(255,255,255,0.2);
    border-bottom-color: #2c3e50;
}

.tab-scroll-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    background: #f8f9fa;
    border: none;
    color: #2c3338;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.tab-scroll-btn:hover {
    background: rgba(0,0,0,0.1);
    opacity: 1;
}

.tab-scroll-btn.left {
    left: 0;
    border-right: 1px solid #e1e5e9;
}

.tab-scroll-btn.right {
    right: 0;
    border-left: 1px solid #e1e5e9;
}

.tab-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tab-scroll-btn.hidden {
    display: none;
}

.news-tabs-content {
    padding: 0;
    height: calc(100% - 90px);
    position: relative;
    overflow: hidden;
}

.news-tab-pane {
    display: none;
    padding: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.news-tab-pane.active {
    display: block;
}

.news-ticker-container {
    padding: 0;
    background: white;
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.news-ticker-header {
    padding: 10px 12px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 45px;
    flex-wrap: wrap;
    gap: 8px;
}

.news-ticker-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    color: #fff;
}

.ticker-controls {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-controls {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.control-btn {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.control-btn:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-1px);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.news-ticker-wrapper {
    height: calc(100% - 45px);
    overflow: hidden;
    position: relative;
    background: white;
}

/* Faster smooth scrolling */
.news-ticker-scroll-content {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* Faster */
}

/* COMPACT TICKER ITEM */
.ticker-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: white;
    transition: all 0.3s ease;
    min-height: 90px !important;
    height: 90px !important;
    box-sizing: border-box;
    cursor: pointer;
    flex-direction: row !important;
}

.ticker-item:hover {
    background: #f8f9fa;
    border-left: 4px solid #2c3e50;
}

/* ================================
   NEW SMALL DATE BADGE DESIGN
=================================== */

.ticker-date-badge,
.card-date-badge,
.news-update-date {
    color: white;
    padding: 5px 8px;
    border-radius: 6px;
    text-align: center;
    min-width: 45px;
    flex-shrink: 0;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Simple corner accent */
.ticker-date-badge::before,
.card-date-badge::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 12px 0;
    border-color: transparent rgba(255,255,255,0.3) transparent transparent;
}

.date-month-year,
.card-date-month-year {
    display: block;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.date-day,
.card-date-day {
    display: block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    margin: 2px 0;
}

.date-weekday,
.card-date-weekday {
    display: block;
    font-size: 7px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ================================
   COLOR THEMES
=================================== */

/* Professional Blue Theme */
.news-updates-header.professional,
.news-ticker-header.professional {
    background: linear-gradient(135deg, #2c3e50, #4ba29e) !important;
    color: white !important;
}

.news-update-item:hover,
.ticker-item:hover,
.news-card:hover {
    background: #eef6ff !important;
}

.action-btn:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

/* Modern Gradient Theme */
.news-updates-header.modern,
.news-ticker-header.modern {
    background: linear-gradient(135deg, #667eea, #4b98a2) !important;
    color: white !important;
}

.news-update-item.modern:hover,
.ticker-item.modern:hover,
.news-card.modern:hover {
    background: #f8f9ff !important;
}

.action-btn.modern:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

/* Official Blue Theme */
.news-updates-header.vibrant,
.news-ticker-header.vibrant {
    background: linear-gradient(135deg, #0056b3, #007bff) !important;
    color: white !important;
}

.news-update-item.vibrant:hover,
.ticker-item.vibrant:hover,
.news-card.vibrant:hover {
    background: #e6f2ff !important;
}

.action-btn.vibrant:hover {
    background: #0056b3 !important;
    color: white !important;
    border-color: #0056b3 !important;
}

/* Warm Orange Theme */
.news-updates-header.warm,
.news-ticker-header.warm {
    background: linear-gradient(135deg, #f46b45, #eea849) !important;
    color: white !important;
}

.news-update-item.warm:hover,
.ticker-item.warm:hover,
.news-card.warm:hover {
    background: #fff3e0 !important;
}

.action-btn.warm:hover {
    background: #f46b45 !important;
    color: white !important;
    border-color: #f46b45 !important;
}

/* Fresh Green Theme */
.news-updates-header.fresh,
.news-ticker-header.fresh {
    background: linear-gradient(135deg, #0ba360, #4ba272) !important;
    color: white !important;
}

.news-update-item.fresh:hover,
.ticker-item.fresh:hover,
.news-card.fresh:hover {
    background: #e8f5e8 !important;
}

.action-btn.fresh:hover {
    background: #0ba360 !important;
    color: white !important;
    border-color: #0ba360 !important;
}

/* Default Professional Blue */
.news-updates-header,
.news-ticker-header {
    background: linear-gradient(135deg, #2c3e50, #4a6fa1) !important;
    color: white !important;
}

.news-update-item:hover,
.ticker-item:hover,
.news-card:hover {
    background: #eef6ff !important;
}

.action-btn:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

.ticker-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    justify-content: space-between;
}

/* COMPACT TEXT LAYOUT: 3 Lines Title, 3 Lines Content, 1 Line Icons */
.ticker-title {
    margin: 0 0 6px 0;
    color: #2c3338;
    font-size: 13px;
    font-weight: 700;
    line-height: 14px;
    height: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ticker-description {
    color: #6c757d;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 0 8px 0;
    height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ticker-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #868e96;
    font-weight: 500;
}

.ticker-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
    height: 50px;
    align-items: flex-start;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3338;
    flex-shrink: 0;
    min-width: 75px;
    min-height: 30px;
}

.action-btn:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* COMPACT ICON STYLES */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3338;
    flex-shrink: 0;
    margin-bottom: 3px;
}

.icon-btn:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 12px;
    line-height: 1;
}

/* Different download colors for each category */
#tab-all .download-btn:hover,
#tab-all .download-btn:hover {
    background: #667eea !important;
    border-color: #667eea !important;
}

/* ================================
   CATEGORY-SPECIFIC DOWNLOAD BUTTON COLORS
=================================== */
.category-color-1 .download-btn:hover { background: #667eea !important; border-color: #667eea !important; }
.category-color-2 .download-btn:hover { background: #f46b45 !important; border-color: #f46b45 !important; }
.category-color-3 .download-btn:hover { background: #0ba360 !important; border-color: #0ba360 !important; }
.category-color-4 .download-btn:hover { background: #8e2de2 !important; border-color: #8e2de2 !important; }
.category-color-5 .download-btn:hover { background: #ff6b6b !important; border-color: #ff6b6b !important; }
.category-color-6 .download-btn:hover { background: #4ecdc4 !important; border-color: #4ecdc4 !important; }
.category-color-7 .download-btn:hover { background: #ffd166 !important; border-color: #ffd166 !important; color: #333 !important; }
.category-color-8 .download-btn:hover { background: #118ab2 !important; border-color: #118ab2 !important; }
.category-color-9 .download-btn:hover { background: #ef476f !important; border-color: #ef476f !important; }
.category-color-10 .download-btn:hover { background: #06d6a0 !important; border-color: #06d6a0 !important; }

/* Small "Go to Downloads Page" button */
.custom-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 6px;
    border: 1px solid #e1e5e9;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #6c757d;
    color: white;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 3px;
    min-height: 26px;
}

.custom-page-btn:hover {
    background: #495057;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-divider {
    color: #adb5bd;
    font-size: 9px;
    margin: 0 3px;
    user-select: none;
}

.news-cards-grid {
    background: #f8f9fa;
    height: calc(100% - 20px);
    overflow-y: auto;
}

/* COMPACT NEWS CARD */
.news-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: all 0.3s ease;
    min-height: 150px !important;
    height: 150px !important;
    cursor: pointer;
}

.news-card:hover {
    border-color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* COMPACT TEXT LAYOUT FOR CARDS */
.card-title {
    margin: 0 0 6px 0;
    color: #2c3338;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-description {
    color: #6c757d;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 0 8px 0;
    height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
    height: 50px;
    align-items: flex-start;
}

.no-items-message {
    text-align: center;
    padding: 20px 10px;
    color: #868e96;
    font-size: 12px;
}

/* ================================
   COMPACT RESPONSIVE DESIGN
=================================== */

/* Base compact styles for all devices */
.ticker-item,
.news-card {
    display: flex !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

.news-card {
    padding: 10px 12px !important;
    min-height: 150px !important;
    height: 150px !important;
    gap: 10px !important;
    flex-direction: row !important;
}

/* Tablet (768px - 1024px) - SAME COMPACT LAYOUT */
@media (max-width: 1024px) {
    .news-tabs-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px auto !important;
        height: 400px !important;
    }
    
    .news-card {
        padding: 10px 12px !important;
        min-height: 150px !important;
        height: 150px !important;
        gap: 10px !important;
    }
    
    .ticker-date-badge,
    .card-date-badge {
        min-width: 45px !important;
    }
    
    .date-day,
    .card-date-day {
        font-size: 16px !important;
    }
    
    .card-title {
        font-size: 13px !important;
        height: 50px !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .ticker-description,
    .card-description {
        font-size: 11px !important;
        height: 50px !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .action-btn {
        padding: 5px 8px !important;
        font-size: 10px !important;
        min-width: 75px !important;
        min-height: 30px !important;
    }
    
    .icon-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
    
    .ticker-actions,
    .card-actions {
        height: 50px !important;
    }
}

/* Mobile (480px - 767px) - COMPACT LAYOUT */
@media (max-width: 767px) {
    .news-tabs-container {
        height: 400px !important;
        min-height: 400px !important;
        margin: 10px auto !important;
        border-radius: 12px !important;
    }
    
    .ticker-item {
        flex-direction: row !important;
    }
    
    .news-card {
        padding: 10px 12px !important;
        min-height: 150px !important;
        height: 150px !important;
        gap: 10px !important;
        flex-direction: row !important;
    }
    
    .ticker-date-badge,
    .card-date-badge {
        min-width: 45px !important;
        padding: 5px 8px !important;
    }
    
    .date-day,
    .card-date-day {
        font-size: 16px !important;
    }
    
    .date-month-year,
    .card-date-month-year,
    .date-weekday,
    .card-date-weekday {
        font-size: 7px !important;
    }
    
    .card-title {
        font-size: 13px !important;
        height: 50px !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .ticker-description,
    .card-description {
        font-size: 11px !important;
        height: 50px !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .action-btn {
        padding: 5px 8px !important;
        font-size: 10px !important;
        min-width: 75px !important;
        min-height: 30px !important;
    }
    
    .icon-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
    
    .ticker-actions,
    .card-actions {
        gap: 5px !important;
        height: 50px !important;
    }
    
    .news-ticker-header {
        padding: 10px 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .control-btn {
        padding: 5px 8px !important;
        font-size: 10px !important;
    }
    
    .news-tabs-nav-container {
        min-height: 45px !important;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
    .news-tabs-container {
        border-radius: 12px !important;
        margin: 10px auto !important;
        height: 400px !important;
        min-height: 400px !important;
    }
    
    .news-card {
        padding: 10px 12px !important;
        min-height: 150px !important;
        height: 150px !important;
        gap: 10px !important;
    }
    
    .ticker-date-badge,
    .card-date-badge {
        min-width: 45px !important;
        padding: 5px 8px !important;
    }
    
    .date-day,
    .card-date-day {
        font-size: 16px !important;
    }
    
    .card-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        height: 50px !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .ticker-description,
    .card-description {
        font-size: 11px !important;
        line-height: 1.4 !important;
        height: 50px !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .action-btn {
        padding: 5px 8px !important;
        font-size: 10px !important;
        min-width: 75px !important;
        min-height: 30px !important;
    }
    
    .icon-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
    
    .ticker-actions,
    .card-actions {
        justify-content: flex-start !important;
        height: 50px !important;
    }
}

/* Very Small Mobile (below 360px) */
@media (max-width: 360px) {
    .news-card {
        flex-wrap: nowrap !important;
        padding: 8px 10px !important;
        min-height: 140px !important;
        height: 140px !important;
        gap: 8px !important;
    }
    
    .news-card {
        min-height: 150px !important;
        height: 150px !important;
    }
    
    .ticker-date-badge,
    .card-date-badge {
        align-self: flex-start !important;
        min-width: 45px !important;
    }
    
    .ticker-actions,
    .card-actions {
        width: auto !important;
        justify-content: flex-start !important;
        margin-top: auto !important;
        height: 50px !important;
    }
    
    .action-btn {
        flex: 0 !important;
        text-align: center !important;
        justify-content: center !important;
        min-width: 75px !important;
    }
    .card-title {
        font-size: 12px !important;
        height: 48px !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .ticker-description,
    .card-description {
        font-size: 10px !important;
        height: 48px !important;
        -webkit-line-clamp: 3 !important;
    }
}

/* Mobile-like design for all screen sizes */
.news-tabs-container {
    width: 100% !important;
    max-width: 100%;
    height: 495px !important;
}

@media (max-width: 768px) {
    .news-ticker-header {
        padding: 10px 12px !important;
    }
    
    .control-btn {
        font-size: 10px !important;
        padding: 5px 8px !important;
    }
    
    .news-card {
        padding: 10px 12px !important;
        min-height: 150px !important;
        height: 150px !important;
    }
    
    .action-btn {
        font-size: 10px !important;
        padding: 5px 8px !important;
        min-width: 75px !important;
    }
    
    .custom-page-btn {
        font-size: 8px !important;
        padding: 3px 6px !important;
    }
}

@media (max-width: 480px) {
    .news-tabs-nav-container {
        min-height: 45px !important;
    }
    
    .control-btn {
        font-size: 10px !important;
        padding: 5px 8px !important;
    }
    
    .ticker-date-badge,
    .card-date-badge {
        min-width: 45px !important;
        padding: 5px 8px !important;
    }
    
    .date-day,
    .card-date-day {
        font-size: 16px !important;
    }
    
    .card-title {
        font-size: 13px !important;
        height: 50px !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .ticker-description,
    .card-description {
        font-size: 11px !important;
        height: 50px !important;
        -webkit-line-clamp: 3 !important;
    }

    .tab-scroll-btn {
        width: 28px !important;
        font-size: 14px !important;
    }
    
    .ticker-actions,
    .card-actions {
        gap: 5px !important;
        height: 50px !important;
    }
    
    .action-btn {
        font-size: 10px !important;
        padding: 5px 8px !important;
        min-width: 75px !important;
        min-height: 30px !important;
    }
    
    .custom-page-btn {
        font-size: 8px !important;
        padding: 3px 6px !important;
        min-height: 26px !important;
    }
    
    .btn-divider {
        display: inline !important;
    }
}

/* ================================
   SCROLL SPEED SETTINGS
=================================== */

/* Very slow speed */
.ticker-speed-very-slow .news-ticker-scroll-content {
    transition-duration: 1.8s !important;
}

/* Slow speed */
.ticker-speed-slow .news-ticker-scroll-content {
    transition-duration: 1.2s !important;
}

/* Medium speed */
.ticker-speed-medium .news-ticker-scroll-content {
    transition-duration: 0.8s !important;
}

/* Mobile speed adjustments */
@media (max-width: 768px) {
    .ticker-speed-very-slow .news-ticker-scroll-content {
        transition-duration: 1.5s !important;
    }
    
    .ticker-speed-slow .news-ticker-scroll-content {
        transition-duration: 1s !important;
    }
    
    .ticker-speed-medium .news-ticker-scroll-content {
        transition-duration: 0.6s !important;
    }
}