/**
 * Public CSS - Hindi News Ticker & Notice Board
 */

/* Ticker Core Structure */
.hnt-public-ticker-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    margin: 15px 0;
}

.hnt-ticker-badge-title {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05em;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.hnt-ticker-scroll-container {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.hnt-ticker-scroll-content {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    will-change: transform;
    padding-left: 20px;
}

.hnt-ticker-item {
    display: inline-block;
    padding: 0 10px;
}

.hnt-ticker-item a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hnt-ticker-item a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.hnt-ticker-divider {
    display: inline-block;
    margin: 0 15px;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Pause scroll on hover */
.hnt-public-ticker-wrapper.hnt-paused .hnt-ticker-scroll-content {
    animation-play-state: paused !important;
}

/* ---------------- Ticker Themes ---------------- */

/* 1. Modern Blue Gradient (Default) */
.hnt-theme-default {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
}
.hnt-theme-default .hnt-ticker-badge-title {
    background: #ff9900;
    color: #000000;
}

/* 2. Saffron & Gold (Hindi Traditional) */
.hnt-theme-traditional {
    background: #d44f1c;
    color: #ffffff;
    border: 2px solid #ffd700;
}
.hnt-theme-traditional .hnt-ticker-badge-title {
    background: #ffd700;
    color: #d44f1c;
}

/* 3. Glassmorphism */
.hnt-theme-glassmorphism {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #2c3e50;
}
.hnt-theme-glassmorphism .hnt-ticker-badge-title {
    background: rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
}

/* 4. Neon Glow */
.hnt-theme-neon {
    background: #0d0e15;
    color: #39ff14;
    border: 1px solid #39ff14;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}
.hnt-theme-neon .hnt-ticker-badge-title {
    background: #39ff14;
    color: #000000;
}

/* 5. Premium Dark Gold */
.hnt-theme-dark {
    background: #121212;
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
}
.hnt-theme-dark .hnt-ticker-badge-title {
    background: #ffd700;
    color: #121212;
}

/* 6. Minimalist Border */
.hnt-theme-minimal {
    background: transparent;
    color: #2c3e50;
    border-top: 1px solid #bdc3c7;
    border-bottom: 1px solid #bdc3c7;
    box-shadow: none;
    border-radius: 0;
}
.hnt-theme-minimal .hnt-ticker-badge-title {
    background: #2c3e50;
    color: #ffffff;
}

/* 7. Breaking News Red */
.hnt-theme-breaking {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    color: #ffffff;
}
.hnt-theme-breaking .hnt-ticker-badge-title {
    background: #f1c40f;
    color: #c0392b;
    animation: hnt-blink-badge 1.5s infinite;
}

/* 8. Royal Forest Green */
.hnt-theme-green {
    background: #1b4d3e;
    color: #f5f6fa;
}
.hnt-theme-green .hnt-ticker-badge-title {
    background: #dcdde1;
    color: #1b4d3e;
}

@keyframes hnt-blink-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ---------------- Notices Styles ---------------- */

/* Inline Shortcode Notice */
.hnt-notice-box-inline {
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
}

.hnt-notice-title-inline {
    margin: 0 0 10px 0;
    font-size: 1.15em;
    font-weight: 700;
    font-family: inherit;
    color: inherit;
}

.hnt-notice-content-inline {
    line-height: 1.6;
    font-family: inherit;
    color: inherit;
}

/* Sticky Banners (Top/Bottom) */
.hnt-sticky-bar {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 99999;
    padding: 14px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hnt-sticky-top {
    top: 0;
    animation: hnt-slide-down 0.5s ease-out;
}

.hnt-sticky-bottom {
    bottom: 0;
    animation: hnt-slide-up 0.5s ease-out;
}

.hnt-sticky-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hnt-sticky-text {
    flex: 1;
    padding-right: 30px;
    line-height: 1.5;
}

.hnt-sticky-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 5px;
}

.hnt-sticky-close:hover {
    opacity: 1;
}

@keyframes hnt-slide-down {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes hnt-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Popup Modal Styles */
.hnt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: hnt-fade-in 0.3s ease-out;
}

.hnt-modal-box {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    animation: hnt-scale-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hnt-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.hnt-modal-close:hover {
    opacity: 1;
}

.hnt-notice-title {
    margin: 0 0 15px 0;
    font-size: 1.25em;
    font-weight: bold;
    color: inherit;
}

.hnt-notice-content {
    line-height: 1.6;
    color: inherit;
}

@keyframes hnt-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hnt-scale-up {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ---------------- Notice Themes (Front-end) ---------------- */

/* Blue Info (Default) */
.hnt-notice-theme-default {
    background: #e0f2fe;
    color: #0369a1;
    border-left: 5px solid #0284c7;
}

/* Green Success */
.hnt-notice-theme-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 5px solid #10b981;
}

/* Red Danger */
.hnt-notice-theme-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 5px solid #ef4444;
}

/* Yellow Warning */
.hnt-notice-theme-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 5px solid #f59e0b;
}

/* Saffron Traditional */
.hnt-notice-theme-saffron {
    background: #fff3e0;
    color: #d84315;
    border-left: 5px solid #ff9800;
}

/* Glassmorphism */
.hnt-notice-theme-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #334155;
    border: 1px solid rgba(255,255,255,0.4);
    border-left: 5px solid #94a3b8;
}

/* Midnight Gold (Dark) */
.hnt-notice-theme-dark {
    background: #1e293b;
    color: #f8fafc;
    border-left: 5px solid #fbbf24;
}
.hnt-notice-theme-dark .hnt-notice-title {
    color: #fbbf24;
}

/* Universal High-Contrast Rules for Notice Titles */
.hnt-notice-title-inline,
.hnt-notice-title,
.hnt-board-notice-item-title {
    color: inherit !important; /* Force to inherit high contrast theme color and bypass general theme styles */
}

/* Explicit contrasting title colors for Dark Notice Themes to look extremely premium */
.hnt-notice-theme-dark .hnt-notice-title-inline,
.hnt-notice-theme-dark .hnt-notice-title,
.hnt-notice-theme-dark .hnt-board-notice-item-title {
    color: #fbbf24 !important; /* Gold on Dark Slate */
}
.hnt-notice-theme-glass .hnt-notice-title-inline,
.hnt-notice-theme-glass .hnt-notice-title,
.hnt-notice-theme-glass .hnt-board-notice-item-title {
    color: #0f172a !important; /* Dark Slate on semi-transparent white */
}

/* ---------------- Notice Board Styles ---------------- */
.hnt-notice-board-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.hnt-notice-board-header {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #ffffff;
    padding: 15px 20px;
    border-bottom: 2px solid #ffd700;
}

/* Notice Board Themes */

/* 1. Modern Blue & Gold (Default) */
.hnt-board-theme-default .hnt-notice-board-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298) !important;
    color: #ffffff !important;
    border-bottom: 3px solid #ff9900 !important;
}

/* 2. Hindi Saffron & Gold */
.hnt-board-theme-traditional .hnt-notice-board-header {
    background: linear-gradient(135deg, #d44f1c, #e65100) !important;
    color: #ffd700 !important;
    border-bottom: 3px solid #ffd700 !important;
}

/* 3. Premium Dark Gold */
.hnt-board-theme-dark .hnt-notice-board-header {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    color: #fbbf24 !important;
    border-bottom: 3px solid #fbbf24 !important;
}

/* 4. Clean Light Blue */
.hnt-board-theme-light .hnt-notice-board-header {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe) !important;
    color: #0369a1 !important;
    border-bottom: 3px solid #0284c7 !important;
}

/* 5. Emerald Green */
.hnt-board-theme-success .hnt-notice-board-header {
    background: linear-gradient(135deg, #064e3b, #065f46) !important;
    color: #a7f3d0 !important;
    border-bottom: 3px solid #10b981 !important;
}

/* 6. Maroon & Gold */
.hnt-board-theme-danger .hnt-notice-board-header {
    background: linear-gradient(135deg, #800000, #5c0000) !important;
    color: #ffd700 !important;
    border-bottom: 3px solid #ffd700 !important;
}

/* 7. Neon Cyberpunk */
.hnt-board-theme-neon .hnt-notice-board-header {
    background: #0d0e15 !important;
    color: #39ff14 !important;
    border-bottom: 3px solid #39ff14 !important;
}

/* 8. Soft Saffron Cream */
.hnt-board-theme-saffron-light .hnt-notice-board-header {
    background: linear-gradient(135deg, #fff3e0, #ffe082) !important;
    color: #d84315 !important;
    border-bottom: 3px solid #ff9800 !important;
}

.hnt-notice-board-header h3 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 700;
    font-family: 'Mukta', 'Hind', sans-serif;
    color: inherit !important; /* Force heading to inherit contrast color from header theme */
}

.hnt-notice-board-scroll-wrap {
    height: 410px; /* Fits approximately 4 notice items */
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    padding: 15px;
    box-sizing: border-box;
}

.hnt-notice-board-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hnt-board-notice-item {
    border-radius: 8px;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.hnt-board-notice-item:hover {
    transform: translateY(-2px);
}

.hnt-board-notice-item-title {
    margin: 0 0 6px 0;
    font-size: 1.05em;
    font-weight: 700;
    color: inherit;
    font-family: inherit;
}

.hnt-board-notice-item-content {
    line-height: 1.5;
    color: inherit;
    font-family: inherit;
}

/* ---------------- Download Desk Styles ---------------- */
.hnt-download-desk-wrapper {
    width: 100%;
    margin: 25px 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.hnt-download-desk-header {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #ffffff;
    padding: 18px 24px;
    border-bottom: 3px solid #ff9900;
}

.hnt-download-desk-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    font-family: 'Mukta', 'Hind', sans-serif;
    color: #ffffff !important;
}

.hnt-download-desk-body {
    padding: 20px;
    background: #f8fafc;
}

.hnt-download-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 10px;
    font-style: italic;
    font-size: 14px;
}

.hnt-download-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hnt-download-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.hnt-download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.hnt-download-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.hnt-download-icon span.dashicons {
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.hnt-download-info {
    flex: 1;
}

.hnt-download-title {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Mukta', sans-serif;
}

.hnt-download-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: 'Hind', sans-serif;
}

.hnt-meta-divider {
    opacity: 0.5;
}

.hnt-download-action {
    margin-left: 20px;
}

.hnt-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4f46e5;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Mukta', sans-serif;
    transition: background 0.2s ease;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.15);
}

.hnt-download-btn:hover {
    background: #4338ca;
}

.hnt-download-btn span.dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .hnt-download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .hnt-download-action {
        margin-left: 0;
        width: 100%;
    }
    .hnt-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------------- Download Desk Tabs Styles ---------------- */
.hnt-download-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.hnt-download-tab-btn {
    background: #ffffff;
    color: #4b5563;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Mukta', 'Hind', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.hnt-download-tab-btn:hover {
    background: #f1f5f9;
    color: #1f2937;
    border-color: rgba(0, 0, 0, 0.15);
}

.hnt-download-tab-btn.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.hnt-download-category-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 10px;
    font-style: italic;
    font-size: 14px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.03);
    width: 100%;
}

/* ---------------- PDF Viewer Modal Styles ---------------- */
.hnt-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0ea5e9;
    color: #ffffff !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Mukta', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.15);
    margin-right: 8px;
    vertical-align: middle;
    text-decoration: none !important;
}

.hnt-view-btn:hover {
    background: #0284c7;
}

.hnt-view-btn span.dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.hnt-pdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: hntFadeIn 0.3s ease;
}

.hnt-pdf-modal-container {
    width: 90%;
    max-width: 960px;
    height: 85%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: hntScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hnt-pdf-modal-header {
    background: #1e293b;
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hnt-pdf-modal-header h3 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    color: #ffffff !important;
    font-family: 'Mukta', sans-serif;
}

.hnt-pdf-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.hnt-pdf-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.hnt-pdf-modal-body {
    flex: 1;
    position: relative;
    background: #f1f5f9;
}

.hnt-pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

@keyframes hntFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hntScaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
    .hnt-view-btn {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 8px;
    }
    .hnt-pdf-modal-container {
        width: 95%;
        height: 90%;
    }
}


.hnt-category-heading{background:#0d6efd;color:#fff;padding:10px 15px;margin:30px 0 15px;border-radius:6px;font-size:20px;font-weight:700;}
.hnt-category-heading:first-child{margin-top:0;}
