/* ============================================
   मुंबई न्यूज अपडेट - Bold Magazine Style CSS
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Mukta', 'Noto Sans Devanagari', 'Inter', Arial, sans-serif;
    background: #f8f5f0;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 15px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ BREAKING NEWS BAR ============ */
.breaking-bar {
    background: #c41e3a;
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.breaking-inner { display: flex; align-items: center; gap: 14px; }
.live-badge {
    background: #ffd700;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 2px;
    letter-spacing: 1.5px;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}
.breaking-ticker { flex: 1; overflow: hidden; }
.ticker-content {
    display: inline-flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
}
.ticker-item { font-size: 14px; font-weight: 500; color: white; }
.ticker-item:hover { text-decoration: underline; }
.ticker-sep { opacity: 0.5; }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============ TOP STRIP ============ */
.top-strip {
    background: #1a1a1a;
    color: white;
    font-size: 12px;
    padding: 6px 0;
}
.top-inner { display: flex; justify-content: space-between; align-items: center; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { font-size: 14px; opacity: 0.8; transition: opacity 0.2s; }
.social-icons a:hover { opacity: 1; }

/* ============ MAIN HEADER ============ */
.main-header {
    background: white;
    padding: 18px 0;
    border-bottom: 3px solid #1a1a1a;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { display: flex; flex-direction: column; }
.logo-main {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    line-height: 1;
}
.logo-dot { color: #c41e3a; }
.logo-sub {
    font-size: 11px;
    color: #888;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 2px;
}
.search-box form { display: flex; border: 2px solid #1a1a1a; border-radius: 3px; overflow: hidden; }
.search-box input {
    padding: 8px 12px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    width: 220px;
}
.search-box button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
}

/* ============ NAVIGATION ============ */
.main-nav {
    background: white;
    border-bottom: 1px solid #e8e3d8;
    overflow-x: auto;
    position: sticky;
    top: 40px;
    z-index: 90;
}
.nav-inner { display: flex; gap: 0; }
.nav-link {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    border-bottom-color: #c41e3a;
    color: #c41e3a;
}

/* ============ MAIN CONTENT ============ */
.main-content { padding: 24px 0; min-height: 60vh; }

/* ============ HERO SECTION ============ */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.hero-main {
    position: relative;
    height: 380px;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #c41e3a 100%);
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.badge-exclusive {
    background: #c41e3a;
    color: white;
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 1px;
}
.badge-cat {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 2px;
    font-weight: 600;
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    z-index: 2;
}
.hero-overlay h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
}
.hero-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    display: flex;
    gap: 14px;
}

.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-side-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e8e3d8;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hero-side-img {
    height: 130px;
    background: #ccc;
    position: relative;
}
.hero-side-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-img .badge-cat {
    position: absolute;
    bottom: 8px;
    left: 8px;
}
.hero-side-body { padding: 12px; flex: 1; }
.hero-side-body h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}
.hero-side-meta { font-size: 11px; color: #888; }

/* ============ SECTION HEADING ============ */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 16px;
}
.section-heading .line { flex: 1; height: 1px; background: #1a1a1a; }
.section-heading h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1a1a;
}

/* ============ NEWS GRID ============ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.news-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e8e3d8;
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.news-card-img {
    height: 140px;
    background: #ccc;
    position: relative;
    overflow: hidden;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card-img .badge-cat {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: white;
    color: #1a1a1a;
}
.news-card-body { padding: 12px; }
.news-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
    color: #1a1a1a;
}
.news-card-meta { font-size: 11px; color: #888; }

/* ============ LIST STYLE NEWS ============ */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-list-item {
    background: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e8e3d8;
    display: flex;
    gap: 12px;
    transition: background 0.2s;
}
.news-list-item:hover { background: #fafafa; }
.news-list-img {
    width: 100px;
    height: 75px;
    background: #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
}
.news-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { flex: 1; }
.news-list-body h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}
.news-list-meta { font-size: 11px; color: #888; }

/* ============ TRENDING SIDEBAR ============ */
.trending-card {
    background: white;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid #ffd700;
}
.trending-card.priority-1 { border-left-color: #c41e3a; }
.trending-card.priority-2 { border-left-color: #ffd700; }
.trending-card.priority-3 { border-left-color: #185FA5; }
.trending-label {
    font-size: 9px;
    color: #c41e3a;
    font-weight: 700;
    letter-spacing: 1px;
}
.trending-card h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 4px 0 2px;
}
.trending-card .meta { font-size: 10px; color: #888; }

/* ============ SINGLE POST PAGE ============ */
.post-detail {
    background: white;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #e8e3d8;
    max-width: 800px;
    margin: 0 auto;
}
.post-detail h1 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 12px;
    font-weight: 700;
}
.post-meta-bar {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #e8e3d8;
    border-bottom: 1px solid #e8e3d8;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}
.post-summary {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    background: #f8f5f0;
    padding: 14px 18px;
    border-left: 4px solid #c41e3a;
    border-radius: 4px;
    margin-bottom: 20px;
}
.post-featured-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 20px;
}
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #1a1a1a;
}
.post-content p { margin-bottom: 14px; }
.post-content h2 { font-size: 22px; margin: 20px 0 12px; }
.post-content h3 { font-size: 18px; margin: 16px 0 10px; }
.post-content blockquote {
    padding-left: 16px;
    border-left: 3px solid #BA7517;
    font-style: italic;
    color: #555;
    margin: 16px 0;
}
.post-content img { border-radius: 4px; margin: 12px 0; }
.post-share {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e3d8;
}
.share-btn {
    padding: 8px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-tg { background: #0088cc; }

/* ============ WHATSAPP CTA ============ */
.whatsapp-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    padding: 24px 0;
    margin-top: 30px;
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.cta-label { font-size: 12px; color: #ffd700; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.cta-title { font-size: 18px; font-weight: 600; }
.cta-btn {
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
}

/* ============ FOOTER ============ */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 30px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 24px;
}
.footer-tagline { color: #888; font-size: 13px; margin-top: 8px; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-social a {
    color: #ccc;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover, .footer-social a:hover { color: white; }
.copyright {
    background: #000;
    padding: 12px 0;
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* ============ NO POSTS / SEARCH ============ */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e8e3d8;
}
.no-posts h3 { font-size: 18px; margin-bottom: 8px; }
.no-posts p { color: #888; }

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { height: 280px; }
    .hero-overlay h2 { font-size: 20px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .logo-main { font-size: 26px; }
    .search-box input { width: 140px; }
    .post-detail { padding: 18px; }
    .post-detail h1 { font-size: 22px; }
    .nav-link { padding: 10px 14px; font-size: 13px; }
    .top-inner span { font-size: 11px; }
}

@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-list-img { width: 80px; height: 60px; }
}
/* ============================================ */
/* Devanagari Conjunct Rendering Fix            */
/* ============================================ */
* {
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "akhn" 1, "rphf" 1, "blwf" 1, "half" 1, "vatu" 1, "pres" 1, "abvs" 1, "blws" 1, "psts" 1, "haln" 1 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

body, 
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, td, th,
.card-title, .news-title, .news-summary,
.post-title, .post-content, .post-summary,
.category-badge, .badge-cat,
.breaking-ticker, .ticker-item, 
.nav-link, .hero-overlay,
input, textarea, button, select {
    font-family: 'Noto Sans Devanagari', 'Inter', 'Mangal', Arial, sans-serif !important;
}
/* ============================================ */
/* Devanagari Conjunct Rendering Fix - v2        */
/* ============================================ */
* {
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "akhn" 1, "rphf" 1, "blwf" 1, "half" 1, "vatu" 1, "pres" 1, "abvs" 1, "blws" 1, "psts" 1, "haln" 1, "nukt" 1, "cjct" 1 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    -webkit-font-feature-settings: "kern" 1, "liga" 1, "calt" 1 !important;
    font-variant-ligatures: common-ligatures contextual !important;
    font-language-override: "MAR" !important;
}

html, body, 
p, a, span, div, li, td, th,
.card-title, .news-summary,
.post-content, .post-summary,
.category-badge, .badge-cat,
.breaking-ticker, .ticker-item, 
.nav-link, .hero-overlay,
input, textarea, button, select {
    font-family: 'Mukta', 'Noto Sans Devanagari', 'Inter', 'Mangal', Arial, sans-serif !important;
    font-language-override: "MAR" !important;
}

h1, h2, h3, h4, h5, h6,
.news-title, .post-title, .site-logo {
    font-family: 'Tiro Devanagari Marathi', 'Mukta', 'Noto Sans Devanagari', 'Mangal', Arial, sans-serif !important;
    font-language-override: "MAR" !important;
    font-weight: 700;
}

.post-content, .post-title, .news-title, .news-summary,
.card-title, p, h1, h2, h3, h4, h5, h6 {
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
}