/*
Theme Name: TeluguNriInfo
Theme URI: https://telugunriinfo.com
Description: Custom Telugu NRI News Portal Theme
Version: 1.0
Author: TeluguNriInfo Team
*/
/*
Theme Name: TeluguNriInfo
Theme URI: https://telugunriinfo.com
Description: Custom Telugu NRI News Portal Theme
Version: 1.0
Author: TeluguNriInfo Team
*/

:root {
  --red: #d0021b;
  --dark: #1a1a2e;
  --mid: #2d2d44;
  --light-bg: #f5f5f0;
  --border: #e2e2e2;
  --text: #222;
  --muted: #666;
  --accent: #f5a623;
  --white: #fff;
  --ticker-bg: #d0021b;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Mukta', sans-serif; background: var(--light-bg); color: var(--text); font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }

/* ── TOP BAR ── */
.topbar { background: var(--dark); color: #aaa; font-size: 12px; padding: 5px 0; }
.topbar .inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #ccc; }
.topbar .links a { margin-left: 12px; }
.topbar .links a:hover { color: var(--accent); }

/* ── LOGO HEADER ── */
.logobar { background: var(--white); border-bottom: 3px solid var(--red); padding: 10px 0; }
.logobar .inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-family: 'Noto Serif', serif; font-size: 32px; font-weight: 700; color: var(--red); letter-spacing: -1px; }
.logo-main span { color: var(--dark); }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.logo-telugu { font-family: 'Tiro Telugu', serif; font-size: 14px; color: var(--red); margin-top: 3px; }
.header-right { display: flex; gap: 12px; align-items: center; }
.search-box { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 4px; overflow: hidden; }
.search-box input, .search-box input[type="search"] { border: none; outline: none; padding: 7px 12px; font-size: 13px; width: 200px; background: var(--light-bg); }
.search-box button, .search-box input[type="submit"] { background: var(--red); color: white; border: none; padding: 7px 14px; cursor: pointer; font-size: 13px; }
.btn-subscribe { background: var(--red); color: white; padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.btn-subscribe:hover { background: #a8001a; }

/* ── MAIN NAV ── */
nav.main-nav { background: var(--dark); position: sticky; top: 0; z-index: 100; }
nav.main-nav .inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; gap: 0; align-items: stretch; overflow-x: auto; }
nav.main-nav a,
nav.main-nav ul li a { color: #ddd; font-size: 13px; font-weight: 600; padding: 12px 14px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; display: inline-block; }
nav.main-nav ul { list-style: none; display: flex; }
nav.main-nav ul li { position: relative; }
nav.main-nav a:hover, nav.main-nav ul li a:hover, nav.main-nav a.active { color: #fff; border-bottom-color: var(--accent); }
nav.main-nav a.home { background: var(--red); color: white; border-bottom-color: transparent; }
/* Hide WP nav sub-menus for now */
nav.main-nav ul li ul { display: none; }

/* ── QUICK LINKS ── */
.quick-links { background: var(--mid); padding: 8px 0; overflow: hidden; }
.quick-links .inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.quick-links a,
.quick-links ul li a { background: rgba(255,255,255,.08); color: #ddd; font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.quick-links ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.quick-links a:hover, .quick-links ul li a:hover { background: var(--red); color: white; }

/* ── TICKER ── */
.ticker-wrap { background: var(--ticker-bg); color: white; padding: 6px 0; overflow: hidden; display: flex; align-items: center; }
.ticker-label { background: var(--dark); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 4px 12px; white-space: nowrap; text-transform: uppercase; flex-shrink: 0; }
.ticker-content { overflow: hidden; flex: 1; }
.ticker-text { display: inline-block; animation: tickerScroll 30s linear infinite; white-space: nowrap; font-size: 13px; padding-left: 30px; }
.ticker-text span { margin: 0 40px; }
.ticker-text span::before { content: '• '; color: var(--accent); }
@keyframes tickerScroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 20px 0; }

/* ── SECTION HEADERS ── */
.section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--red); margin-bottom: 14px; padding-bottom: 6px; }
.section-header h2 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.section-header h2::before { content: ''; display: inline-block; width: 4px; height: 18px; background: var(--red); border-radius: 2px; }
.section-header a { font-size: 12px; color: var(--red); font-weight: 600; }

/* ── HERO ── */
.hero-section { margin-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; border-radius: 6px; overflow: hidden; }
.hero-main { position: relative; }
.hero-main img { height: 380px; object-fit: cover; width: 100%; }
.hero-main .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); padding: 30px 20px 16px; }
.hero-main .badge { background: var(--red); color: white; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 8px; }
.hero-main h1 { font-family: 'Noto Serif', serif; color: white; font-size: 22px; line-height: 1.4; font-weight: 700; }
.hero-main h1 a { color: white; }
.hero-main .meta { color: #ccc; font-size: 12px; margin-top: 8px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }
.hero-side-item { position: relative; }
.hero-side-item img { height: 189px; object-fit: cover; width: 100%; }
.hero-side-item .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 20px 12px 10px; }
.hero-side-item .badge { background: var(--accent); color: var(--dark); font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 2px; text-transform: uppercase; display: inline-block; margin-bottom: 5px; }
.hero-side-item h3 { color: white; font-size: 14px; line-height: 1.35; font-weight: 700; }
.hero-side-item h3 a { color: white; }

/* ── NEWS CARDS ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.news-card { background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: box-shadow .2s; }
.news-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.13); }
.news-card img { height: 160px; object-fit: cover; width: 100%; }
.news-card .card-body { padding: 12px; }
.news-card .cat-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--red); margin-bottom: 6px; display: inline-block; }
.news-card h3 { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--dark); margin-bottom: 6px; }
.news-card h3 a { color: var(--dark); }
.news-card h3 a:hover, .news-card h3:hover { color: var(--red); }
.news-card .excerpt { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.news-card .meta { font-size: 11px; color: #999; display: flex; gap: 10px; }

/* ── LIST NEWS ── */
.list-news { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.list-item { display: flex; gap: 12px; background: white; padding: 10px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.list-item img { width: 90px; height: 70px; flex-shrink: 0; border-radius: 3px; object-fit: cover; }
.list-item .li-body { flex: 1; }
.list-item .cat-tag { font-size: 10px; font-weight: 800; color: var(--red); text-transform: uppercase; }
.list-item h4 { font-size: 13.5px; font-weight: 700; line-height: 1.4; margin: 3px 0; color: var(--dark); }
.list-item h4 a { color: var(--dark); }
.list-item h4 a:hover { color: var(--red); }
.list-item .meta { font-size: 11px; color: #999; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.widget-header { background: var(--dark); color: white; padding: 10px 14px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.widget-header .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* WP default widget ul inside sidebar */
.sidebar .widget ul { list-style: none; padding: 10px 14px; }
.sidebar .widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar .widget ul li a { color: var(--dark); font-weight: 600; }
.sidebar .widget ul li a:hover { color: var(--red); }

/* Trending */
.trending-list { list-style: none; }
.trending-list li { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.trending-list li:last-child { border-bottom: none; }
.trending-num { font-size: 22px; font-weight: 800; color: var(--border); line-height: 1; flex-shrink: 0; width: 24px; }
.trending-list li:hover .trending-num { color: var(--red); }
.trending-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--dark); }
.trending-title:hover { color: var(--red); }
.trending-meta { font-size: 11px; color: #999; margin-top: 3px; }

/* Ad banner */
.ad-banner { background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 4px; padding: 20px; text-align: center; color: white; }
.ad-banner .ad-label { font-size: 10px; color: #888; margin-bottom: 6px; }
.ad-banner h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.ad-banner p { font-size: 12px; color: #aaa; margin-bottom: 12px; }
.ad-banner a { background: var(--accent); color: var(--dark); padding: 8px 18px; border-radius: 4px; font-size: 12px; font-weight: 800; display: inline-block; }

/* Social widget */
.social-widget { background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.social-widget .sw-header { background: var(--dark); padding: 10px 14px; color: white; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.social-item { background: white; padding: 14px; text-align: center; }
.social-item .count { font-size: 20px; font-weight: 800; color: var(--dark); }
.social-item .platform { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.social-item .platform.fb { color: #1877f2; }
.social-item .platform.yt { color: #ff0000; }
.social-item .platform.ig { color: #c13584; }
.social-item .platform.tw { color: #1da1f2; }

/* Newsletter widget */
.newsletter-widget { background: white; border-radius: 4px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.newsletter-widget h4 { font-size: 13px; font-weight: 800; color: var(--dark); margin-bottom: 8px; text-transform: uppercase; border-left: 3px solid var(--red); padding-left: 8px; }
.newsletter-widget p { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.newsletter-widget input[type="email"] { width: 100%; border: 1.5px solid var(--border); padding: 8px 10px; border-radius: 4px; font-size: 13px; margin-bottom: 8px; outline: none; }
.newsletter-widget button { width: 100%; background: var(--red); color: white; border: none; padding: 9px; border-radius: 4px; font-weight: 700; font-size: 13px; cursor: pointer; }

/* Video grid */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-card { background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.video-thumb { position: relative; }
.video-thumb img { height: 130px; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; background: rgba(208,2,27,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; }
.video-card .vc-body { padding: 10px 12px; }
.video-card h4 { font-size: 13px; font-weight: 700; line-height: 1.4; }
.video-card .meta { font-size: 11px; color: #999; margin-top: 4px; }

/* ── SINGLE ARTICLE PAGE ── */
.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 20px 0; }
.article-header { margin-bottom: 20px; }
.article-header .cat-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--red); letter-spacing: 1px; margin-bottom: 10px; display: inline-block; }
.article-header h1 { font-family: 'Noto Serif', serif; font-size: 28px; font-weight: 700; line-height: 1.4; color: var(--dark); margin-bottom: 12px; }
.article-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-featured-img { margin-bottom: 24px; border-radius: 6px; overflow: hidden; }
.article-featured-img img { width: 100%; max-height: 450px; object-fit: cover; }
.article-content { font-size: 16px; line-height: 1.85; color: #333; }
.article-content p { margin-bottom: 18px; }
.article-content h2 { font-family: 'Noto Serif', serif; font-size: 22px; font-weight: 700; margin: 28px 0 14px; color: var(--dark); border-left: 4px solid var(--red); padding-left: 12px; }
.article-content h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; color: var(--dark); }
.article-content img { border-radius: 4px; margin: 16px 0; max-height: 400px; object-fit: cover; }
.article-content blockquote { border-left: 4px solid var(--red); padding: 12px 20px; background: #fff8f0; margin: 20px 0; font-style: italic; color: #555; border-radius: 0 4px 4px 0; }
.article-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.article-tags span { font-size: 12px; font-weight: 700; color: var(--dark); text-transform: uppercase; }
.article-tags a { display: inline-block; background: var(--light-bg); border: 1px solid var(--border); padding: 4px 10px; border-radius: 20px; font-size: 12px; color: var(--muted); margin: 4px; }
.article-tags a:hover { background: var(--red); color: white; border-color: var(--red); }

/* Related posts */
.related-posts { margin-top: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }

/* ── FOOTER ── */
footer { background: var(--dark); color: #ccc; padding: 30px 0 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid #333; }
.footer-about .logo-main { font-size: 26px; color: var(--red); font-family: 'Noto Serif', serif; }
.footer-about p { font-size: 13px; color: #888; line-height: 1.7; margin-top: 10px; }
footer h5 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: white; margin-bottom: 14px; border-left: 3px solid var(--red); padding-left: 8px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul li a { font-size: 13px; color: #888; transition: color .2s; }
footer ul li a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding: 14px 0; font-size: 12px; color: #555; }
.footer-bottom span { color: var(--accent); }

/* WP category list in footer */
footer .cat-item a { font-size: 13px; color: #888; }
footer .cat-item a:hover { color: var(--accent); }

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder { background: linear-gradient(135deg, #c5c5d8 0%, #a8a8c0 100%); display: flex; align-items: center; justify-content: center; }
.img-placeholder span { color: white; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-layout, .single-layout { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .news-grid, .hero-side, .video-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-box input { width: 130px; }
  .logo-main { font-size: 24px; }
  .article-header h1 { font-size: 22px; }
}
/* ===== MOBILE FIT FIX ===== */
@media only screen and (max-width: 480px) {

    html {
        overflow-x: hidden !important;
    }

    body {
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
    }

    * {
        box-sizing: border-box !important;
    }

    body > * {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Fix for left-shifted content */
    .site-header,
    .top-bar,
    .header-inner,
    .nav-bar,
    #masthead {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }

    img, iframe, video, table {
        max-width: 100% !important;
        height: auto !important;
    }
}