/* ========================================================
   HINDI NEWS PORTAL - PRODUCTION STYLESHEET (portal.css)
   Clean, modern, high-contrast Indian newspaper web styling
   ======================================================== */

:root {
    --primary: #c51a1a;        /* Newspaper Red */
    --primary-dark: #991313;
    --dark: #111827;            /* Deep Black-Gray */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --paper-tint: #fbfbf9;      /* Authentic Newsprint Tint */
    --accent-gold: #d97706;
    
    --font-heading: 'Rozha One', 'Mukta', 'Noto Sans Devanagari', serif;
    --font-body: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    --font-sans: 'Mukta', 'Yantramanav', sans-serif;
}

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

body.news-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 1. Topbar */
.portal-topbar {
    background: #111827;
    color: #e5e7eb;
    font-size: 13px;
    border-bottom: 1px solid #1f2937;
    padding: 6px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

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

.dateline-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f3f4f6;
    font-weight: 500;
}

.rni-badge {
    color: #9ca3af;
    font-size: 12px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.epaper-pill {
    background: var(--primary);
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.cuttings-pill {
    background: #374151;
    color: #fff !important;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.admin-pill, .login-link {
    color: #9ca3af;
    font-size: 12px;
}

.admin-pill:hover, .login-link:hover {
    color: #fff;
}

/* 2. Newspaper Masthead */
.portal-masthead {
    background: var(--bg-white);
    border-bottom: 3px double #111827;
    padding: 20px 0 16px;
}

.masthead-inner {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.masthead-side-left {
    text-align: left;
    font-size: 12px;
    color: var(--text-muted);
}

.edition-tag {
    display: block;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.masthead-center .brand-title {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 900;
    color: #000;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.masthead-center .brand-tagline {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

.masthead-side-right {
    text-align: right;
}

.weather-box {
    display: inline-block;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-align: right;
}

.weather-city {
    display: block;
    font-weight: 700;
}

/* 3. Sticky Navbar */
.portal-navbar {
    background: #000;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item a {
    display: block;
    padding: 14px 14px;
    color: #f3f4f6;
    font-size: 15px;
    font-weight: 600;
}

.nav-item.active a, .nav-item a:hover {
    color: #fff;
    background: #1f2937;
}

.nav-item.highlight-item a {
    color: #fbbf24;
}

.nav-item.epaper-item a {
    background: var(--primary);
    color: #fff;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: #1f2937;
    border-radius: 4px;
    padding: 4px 8px;
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 4px 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    width: 140px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 200px;
}

.search-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    color: #fff;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
}

/* 4. Breaking News Ticker */
.breaking-ticker-wrap {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.ticker-badge {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.ticker-items {
    display: inline-block;
    padding-left: 100%;
    animation: tickerAnim 35s linear infinite;
}

.ticker-items:hover {
    animation-play-state: paused;
}

.ticker-item {
    margin-right: 40px;
    font-weight: 600;
    color: #111;
}

@keyframes tickerAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 5. Main Hero Grid */
.portal-home-content {
    padding: 24px 16px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.hero-main-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.hero-img-link {
    position: relative;
    display: block;
    height: 380px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-img-link:hover .hero-img {
    transform: scale(1.03);
}

.hero-category-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

.hero-caption {
    padding: 20px;
}

.hero-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #000;
}

.hero-excerpt {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

.hero-side-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-sub-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sub-img-link {
    width: 110px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.sub-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-content {
    flex: 1;
}

.sub-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.sub-headline {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.sub-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* 6. Section Headers */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #111;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-heading, .section-heading-cat {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #111;
}

.section-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 8px;
}

.view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* 7. Category Grids */
.category-sections-wrapper {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

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

.cat-article-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cat-card-img-link {
    height: 160px;
    overflow: hidden;
}

.cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.cat-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* 8. Article Detail Page */
.article-detail-container {
    padding: 24px 16px 48px;
}

.article-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.article-breadcrumb a {
    color: var(--text-muted);
}

.article-content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
}

.article-header {
    margin-bottom: 24px;
}

.article-category-badge {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    color: #111;
    margin-bottom: 14px;
}

.article-lead-excerpt {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    line-height: 1.6;
    border-left: 4px solid var(--primary);
    padding-left: 14px;
    margin-bottom: 18px;
}

.article-byline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.reporter-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reporter-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.reporter-avatar-icon {
    font-size: 24px;
}

.reporter-meta .reporter-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
}

.reporter-meta .reporter-city {
    font-size: 13px;
    color: var(--text-muted);
}

.publish-time-box {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.social-share-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.share-label {
    font-size: 13px;
    font-weight: 700;
}

.share-btn {
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}

.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tw { background: #000; }
.share-tg { background: #229ED9; }

.article-hero-media {
    margin-bottom: 24px;
}

.article-hero-img {
    width: 100%;
    border-radius: 8px;
    max-height: 480px;
    object-fit: cover;
}

.article-caption {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.article-narrative {
    font-size: 18px;
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 40px;
}

.article-sidebar .sidebar-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-item {
    display: flex;
    gap: 10px;
}

.related-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.related-title-link {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.related-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* 9. Portal Footer */
.portal-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 60px;
    font-size: 14px;
}

.footer-top {
    padding: 48px 16px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-icon {
    background: #1e293b;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 16px 0;
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* 10. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #1f2937; color: #fff !important; }
.btn-secondary:hover { background: #111827; }
.btn-outline-light { background: transparent; border: 1px solid #fff; color: #fff !important; }
.btn-outline-light:hover { background: #fff; color: #000 !important; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 12px 24px; font-size: 16px; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .masthead-inner { grid-template-columns: 1fr; }
    .masthead-side-left, .masthead-side-right { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .cat-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .article-content-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; }
    .nav-links.active { display: flex; }
    .nav-search-form { display: none; }
    .cat-articles-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .article-title { font-size: 26px; }
}
