/*
Theme Name: Jat Bulletin Pro
Author: KSR Technologies
Description: Premium Institutional Portal for Banking and Identity Utilities.
Version: 1.0
*/

:root {
    --slate-900: #0f172a;
    --blue-600: #2563eb;
    --jat-red: #dc2626;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --text-main: #334155;
    --text-light: #64748b;
}

* { box-sizing: border-box; }
body { 
    margin: 0; 
    /* FIXED: Added Noto Sans Devanagari fallback for clean Hindi rendering across all platforms */
    font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif; 
    background-color: #ffffff; 
    color: var(--text-main); 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}

/* --- NAVIGATION & LOGO --- */
nav.global-nav {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.premium-logo {
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--slate-900);
}
.logo-red { color: var(--jat-red); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.kl-lang-selector select {
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    font-weight: 600; font-size: 13px; padding: 8px; cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 5% 100px;
    text-align: center;
    background: #0f172a radial-gradient(circle at top right, #1e293b, #0f172a);
    color: white;
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); margin: 0 0 15px; font-weight: 700; }
.hero p { font-size: 18px; color: #94a3b8; max-width: 700px; margin: 0 auto; }

/* --- LAYOUT STRUCTURE --- */
.layout-wrapper {
    max-width: 1200px;
    margin: -40px auto 80px;
    display: flex;
    gap: 30px;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

.main-content { flex: 3; min-width: 0; }
.sidebar { flex: 1; min-width: 280px; }

/* --- CARD COMPONENTS & WIDGET SUPPORT --- */
/* FIXED: Added fallback selector so dashboard widgets look identical to standard theme cards */
.card-module, .sidebar-widget {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Fixed spacing rule to keep widgets compact inside sidebars */
.sidebar .sidebar-widget, .sidebar .card-module {
    padding: 20px;
}

.card-links { list-style: none; padding: 0; margin: 20px 0 0 0; }
.card-links li { margin-bottom: 12px; }
.card-links a { text-decoration: none; color: var(--blue-600); font-weight: 500; font-size: 15px; }
.card-links a:hover { color: var(--jat-red); text-decoration: underline; }

/* --- NEW: PREMIUM ANNOUNCEMENT TICKER LAYOUT --- */
.ticker-wrap {
    width: 100%;
    background-color: var(--slate-900);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ticker-title {
    background: var(--jat-red);
    color: #fff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    z-index: 5;
}
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-slide 25s linear infinite;
    color: #cbd5e1;
    font-size: 13px;
}
@keyframes ticker-slide {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- MOBILE --- */
@media (max-width: 991px) {
    .layout-wrapper { flex-direction: column; margin-top: -30px; }
    .sidebar { order: 2; }
    .hero { padding: 60px 5% 80px; }
}