/* Theme Name: TeluguNow V5.1 Theme URI: https://telugunow.com Author: TeluguNow Description: Professional Telugu News Theme Version: 5.1.0 Requires PHP: 7.4 */ /* ===================================================== BASE ===================================================== */ body { margin: 0; font-family: Arial, sans-serif; } /* ===================================================== DESKTOP HEADER ===================================================== */ .tn-desktop-header { background: #222; color: #fff; } .tn-desktop-header .tn-logo a { color: #fff; font-weight: bold; text-decoration: none; } .tn-nav .tn-menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; } .tn-nav .tn-menu a { color: #fff; text-decoration: none; } /* ===================================================== MOBILE HEADER + NAV (SINGLE SOURCE) ===================================================== */ .tn-mobile-header { display: none; } /* ===================== MOBILE ====================== */ @media (max-width: 768px) { /* Hide desktop header */ .tn-desktop-header { display: none !important; } /* Sticky mobile header */ .tn-mobile-header { display: flex; align-items: center; justify-content: center; position: sticky; top: 0; height: 60px; background: #ffffff; border-bottom: 1px solid #e5e5e5; z-index: 10002; } /* Burger */ .tn-burger { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); background: transparent; border: none; cursor: pointer; } .tn-burger span { display: block; width: 22px; height: 2px; background: #000; margin: 5px 0; } /* Logo */ .tn-mobile-logo img { max-height: 40px; width: auto; } /* Search icon */ .tn-mobile-search { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 18px; cursor: pointer; color: #000; } /* Drawer menu */ .tn-mobile-nav { position: fixed; top: 0; left: 0; width: 50%; /* reduced width */ max-width: 320px; height: 100%; background: #ffffff; padding: 80px 20px; /* clears header height */ z-index: 10003; /* ABOVE header */ transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; } .tn-mobile-nav.active { transform: translateX(0); } /* Menu items */ .tn-mobile-menu { list-style: none; margin: 0; padding: 0; } .tn-mobile-menu li { margin-bottom: 16px; } .tn-mobile-menu a { color: #000; font-size: 16px; font-weight: 600; text-decoration: none; } /* Lock background scroll */ body.tn-menu-open { overflow: hidden; } } /* ===================== DESKTOP SAFETY ===================== */ @media (min-width: 769px) { .tn-mobile-header, .tn-mobile-nav, .tn-mobile-search-overlay { display: none !important; } } /* ===================================================== BREAKING NEWS – ALWAYS BELOW HEADER ===================================================== */ @media (max-width: 768px) { .tn-breaking-news, .breaking-news, .breaking-news-bar { position: relative !important; margin-top: 0 !important; z-index: 1 !important; } } /* ===================================================== MOBILE SEARCH OVERLAY ===================================================== */ @media (max-width: 768px) { .tn-mobile-search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 10004; /* highest layer */ } .tn-mobile-search-overlay.active { display: flex; } .tn-mobile-search-overlay form { background: #ffffff; width: 90%; max-width: 400px; padding: 20px; border-radius: 6px; display: flex; gap: 10px; } .tn-mobile-search-overlay input { flex: 1; padding: 10px; font-size: 16px; border: 1px solid #ccc; } .tn-mobile-search-overlay button { padding: 10px 14px; font-size: 16px; background: #000; color: #fff; border: none; cursor: pointer; } } /* =============================== GLOBAL 2-COLUMN LAYOUT =============================== */ .tn-container { max-width: 1200px; margin: auto; padding: 16px; display: grid; grid-template-columns: 70% 30%; gap: 24px; } .tn-content { min-width: 0; } .tn-sidebar { min-width: 0; } /* Widgets */ .tn-widget { margin-bottom: 24px; } .tn-widget-title { font-size: 18px; margin-bottom: 12px; border-bottom: 2px solid #eee; padding-bottom: 6px; } /* Mobile: stack sidebar */ @media (max-width: 768px) { .tn-container { grid-template-columns: 1fr; } .tn-sidebar { margin-top: 24px; } } /* Homepage category blocks */ .tn-home-category { margin-bottom: 32px; } .tn-home-category h2 { margin-bottom: 12px; } .tn-bullet-post { font-size: 15px; margin-bottom: 8px; } .tn-bullet-post a { text-decoration: none; color: #000; } .tn-read-more { display: block; text-align: right; color: red; font-weight: bold; margin-top: 8px; } /* =============================== MOBILE HOMEPAGE UX =============================== */ @media (max-width: 768px) { .tn-home-category { margin-bottom: 24px; } .tn-featured-post img { width: 100%; height: auto; } .tn-bullet-post { font-size: 16px; line-height: 1.5; } .tn-read-more { text-align: right; color: red; font-weight: bold; } /* Breaking ticker */ .tn-breaking-ticker { white-space: nowrap; overflow-x: auto; } .tn-breaking-ticker span { display: inline-block; margin-right: 20px; font-weight: bold; } } /* ===================================================== TELUGUNOW PAGINATION UX ===================================================== */ .tn-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 40px 0; flex-wrap: wrap; } .tn-pagination a, .tn-pagination span.current { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; font-weight: 600; text-decoration: none; color: #000; background: #fff; transition: all 0.2s ease; } .tn-pagination a:hover { background: #f2f2f2; } .tn-pagination span.current { background: #d32f2f; /* TeluguNow red */ color: #fff; border-color: #d32f2f; cursor: default; } /* Disable dots styling */ .tn-pagination span.dots { border: none; background: none; min-width: auto; } /* Mobile tuning */ @media (max-width: 768px) { .tn-pagination a, .tn-pagination span.current { min-width: 40px; height: 40px; font-size: 15px; } } /* HEADER BACKGROUND + MENU COLORS */ .tn-desktop-header { background: #ffffff; padding: 15px; border-bottom: 1px solid #e5e5e5; } .tn-desktop-header .tn-menu a { color: #000000; font-weight: 500; } .tn-desktop-header .tn-menu a:hover { color: #c00; } /* Logo alignment safety */ .tn-logo img { max-height: 60px; height: auto; } /* =============================== CATEGORY PAGE UX =============================== */ .tn-category-header { margin-bottom: 24px; } .tn-category-post { display: flex; gap: 16px; margin-bottom: 24px; } .tn-category-thumb img { width: 68px; height: 68px; object-fit: cover; } .tn-category-body h2 { margin: 0 0 8px; font-size: 18px; } .tn-category-body a { color: #000; text-decoration: none; } .tn-excerpt { font-size: 15px; color: #444; } /* Mobile */ @media (max-width: 768px) { .tn-category-post { flex-direction: column; } .tn-category-thumb img { width: 100%; height: auto; } } .tn-breaking-wrap { background: #f4f4f4; border-bottom: 1px solid #ddd; } .tn-breaking-inner { max-width: 1200px; margin: auto; padding: 10px 15px; display: flex; align-items: center; gap: 15px; } .tn-breaking-label { background: #c00; color: #fff; font-weight: 600; padding: 4px 10px; white-space: nowrap; } .tn-breaking-list { margin: 0; padding: 0; list-style: disc; display: flex; gap: 20px; overflow: hidden; } .tn-breaking-list li { white-space: nowrap; } .tn-breaking-list a { color: #000; text-decoration: none; } .tn-breaking-wrap { display: flex; align-items: center; background: #f4f4f4; border-bottom: 1px solid #ddd; overflow: hidden; padding: 8px 0; } .tn-breaking-label { background: #c00; color: #fff; font-weight: 600; padding: 6px 12px; white-space: nowrap; margin-right: 15px; } .tn-breaking-ticker { overflow: hidden; flex: 1; } .tn-breaking-track { display: inline-flex; gap: 40px; list-style: none; padding: 0; margin: 0; animation: tnTicker 30s linear infinite; } .tn-breaking-wrap:hover .tn-breaking-track { animation-play-state: paused; } .tn-breaking-track li { white-space: nowrap; } .tn-breaking-track a { color: #000; text-decoration: none; font-weight: 500; } @keyframes tnTicker { from { transform: translateX(100%); } to { transform: translateX(-100%); } } /* HEADER COLORS ONLY – NO LAYOUT CHANGE */ .tn-desktop-header { background: #ffffff !important; border-bottom: 1px solid #e5e5e5; } .tn-menu a { color: #000000 !important; font-weight: 500; } .tn-menu a:hover { color: #c00; } .tn-logo-text { color: #000; font-weight: bold; text-decoration: none; } /* =============================== HOMEPAGE TWO COLUMN LAYOUT =============================== */ .tn-home-two-col { display: flex; gap: 12px; } .tn-home-col { flex: 1; } /* Right column slightly narrower */ .tn-home-right { max-width: 380px; } /* Simple list */ .tn-simple-list { list-style: none; padding: 0; margin: 0; } .tn-simple-list li { padding: 6px 0; border-bottom: 1px solid #eee; } /* Mobile */ @media (max-width: 768px) { .tn-home-two-col { flex-direction: column; } .tn-home-right { max-width: 100%; } } .tn-home-two-col { display:flex; gap:30px } .tn-home-col { width:50% } @media (max-width:768px){ .tn-home-two-col { flex-direction:column } .tn-home-col { width:100% } } .tn-home-two-col { display: flex; gap: 30px; } .tn-home-col { width: 50%; } .tn-read-more { display: inline-block; margin-top: 10px; font-weight: 600; } @media (max-width:768px){ .tn-home-two-col { flex-direction:column } .tn-home-col { width:100% } } .tn-home-two-col { display:flex; gap:30px } .tn-home-col { width:50% } .tn-read-more { display:inline-block; margin-top:10px; font-weight:600 } @media (max-width:768px){ .tn-home-two-col{flex-direction:column} .tn-home-col{width:100%} } /* Ensure breaking ticker is visible on desktop */ @media (min-width: 769px) { .breaking-wrapper { display: flex !important; } } /* FORCE breaking ticker to survive header sibling rules (DESKTOP FIX) */ .tn-site-header + .breaking-wrapper { display: flex !important; } /* ================= DESKTOP HEADER ALIGNMENT FIX ================= */ .tn-header-inner { display: flex; align-items: center; justify-content: space-between; } <div class="tn-breaking-wrap"> <div class="tn-breaking-label">BREAKING</div> <div class="tn-breaking-ticker"> <ul class="tn-breaking-track"> <li><a href="#">Test Headline One</a></li> <li><a href="#">Test Headline Two</a></li> <li><a href="#">Test Headline Three</a></li> </ul> </div> </div> .tn-breaking-wrap { display: flex !important; visibility: visible !important; } /* ---------- READ MORE LINK ---------- */ .home .tn-home-category .tn-read-more { display: block; text-align: right; margin-top: 10px; font-weight: 600; } /* Bullet post layout */ .tn-home-post-bullet { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 8px; } .tn-bullet { color: #c00; font-size: 14px; line-height: 1.2; flex-shrink: 0; } /* Homepage featured post: thumbnail + title side by side */ .tn-home-post-thumb { display: flex; align-items: flex-start; gap: 12px; } /* Thumbnail width < 50% */ .tn-home-post-thumb img { max-width: 45%; height: auto; object-fit: cover; flex-shrink: 0; } /* ===================================================== FIX: HOMEPAGE FEATURED THUMB SIZE ===================================================== */ /* Reset any inherited size constraints */ .tn-home-post-thumb img { width: auto !important; max-width: 45% !important; height: auto !important; display: block; } /* Category / Archive list with thumbnails */ .tn-category-post { display: flex; gap: 16px; margin-bottom: 24px; } .tn-category-thumb img { width: 180px; height: 120px; object-fit: cover; display: block; } /* Mobile stacking */ @media (max-width: 768px) { .tn-category-post { flex-direction: column; } .tn-category-thumb img { width: 100%; height: auto; } } /* ===================================================== SINGLE POST CONTENT IMAGES — CENTER & RESPONSIVE ===================================================== */ /* Target images inside post content only */ .single .tn-single-content img, .single .entry-content img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; height: auto; } /* Gutenberg images (extra safety) */ .single figure.wp-block-image { text-align: center; } .single figure.wp-block-image img { max-width: 100%; height: auto; } /* Prevent images from exceeding viewport on small devices */ @media (max-width: 768px) { .single .tn-single-content img, .single .entry-content img { width: 100%; } } /* ===================================================== SINGLE POST — RESPONSIVE EMBEDDED VIDEOS ===================================================== */ /* Generic responsive iframe wrapper */ .single .tn-single-content iframe, .single .entry-content iframe { max-width: 100%; } /* WordPress video embeds (YouTube, Vimeo, etc.) */ .single .wp-block-embed, .single .wp-block-embed__wrapper { max-width: 100%; } /* Maintain aspect ratio (16:9) */ .single .wp-block-embed__wrapper, .single .video-container { position: relative; padding-bottom: 56.25%; /* 16:9 */ height: 0; overflow: hidden; } /* Responsive iframe inside wrapper */ .single .wp-block-embed__wrapper iframe, .single .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } /* Center embeds */ .single .wp-block-embed { margin-left: auto; margin-right: auto; } /* ===================================================== HOMEPAGE — LIGHT GREY BACKGROUND FOR COLUMNS ===================================================== */ .home .tn-home-two-col { align-items: flex-start; } /* Left & Right columns */ .home .tn-home-col { background: #f5f5f5; /* light grey */ padding: 16px; border-radius: 6px; } /* Maintain spacing between columns */ .home .tn-home-col + .tn-home-col { margin-left: 0; } /* Mobile: keep clean stacking */ @media (max-width: 768px) { .home .tn-home-col { padding: 14px; margin-bottom: 16px; } } /* ===================================================== RELATED / READ MORE POSTS — RESPONSIVE FINAL ===================================================== */ /* Desktop & base layout: thumb left, title right */ .tn-related-posts li, .tn-related-posts article, .related-posts li, .related-posts article { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; } /* Thumbnail uniform size */ .tn-related-posts img, .related-posts img { width: 120px; height: 80px; object-fit: cover; flex-shrink: 0; display: block; } /* Title wrapping */ .tn-related-posts a, .related-posts a { display: block; font-size: 15px; line-height: 1.4; text-decoration: none; color: #000; } .tn-related-posts a:hover, .related-posts a:hover { color: #c00; } /* ================= MOBILE ================= */ /* Tablets & mobiles: slightly smaller thumbs */ @media (max-width: 768px) { .tn-related-posts img, .related-posts img { width: 100px; height: 70px; } } /* Very small screens: stack thumb + title */ @media (max-width: 480px) { .tn-related-posts li, .tn-related-posts article, .related-posts li, .related-posts article { flex-direction: column; align-items: flex-start; } .tn-related-posts img, .related-posts img { width: 100%; height: auto; } } /* ===================================================== RELATED POSTS — DEFINITIVE FIX (GRID → LIST → FLEX) ===================================================== */ /* Kill grid completely */ .tn-related-posts .tn-related-grid { display: block !important; } /* Each related post row */ .tn-related-posts .tn-related-item { display: flex !important; align-items: flex-start; gap: 12px; width: 100%; margin-bottom: 14px; } /* Thumbnail */ .tn-related-posts .tn-related-thumb { flex: 0 0 auto; } .tn-related-posts .tn-related-thumb img { width: 120px !important; height: 80px !important; object-fit: cover; display: block; } /* Title container — THIS ENABLES WRAPPING */ .tn-related-posts .tn-related-title { flex: 1 1 0%; min-width: 0 !important; margin: 0; } /* Title text */ .tn-related-posts .tn-related-title a { display: block; line-height: 1.4; word-break: break-word; white-space: normal; } /* Mobile */ @media (max-width: 768px) { .tn-related-posts .tn-related-thumb img { width: 80px !important; height: 60px !important; } } /* ===================================================== RELATED POSTS — MOBILE SMALL THUMBNAILS ===================================================== */ /* ===================================================== RELATED POSTS — CONFLICT OVERRIDE (ABSOLUTE) ===================================================== */ .tn-related-posts .tn-related-grid { display: block !important; /* neutralize grid */ } .tn-related-posts .tn-related-item { display: flex !important; align-items: flex-start; gap: 12px; width: 100%; } /* Thumbnail */ .tn-related-posts .tn-related-thumb { flex: 0 0 auto; } .tn-related-posts .tn-related-thumb img { width: 120px !important; height: 80px !important; object-fit: cover; display: block; } /* Title */ .tn-related-posts .tn-related-title { flex: 1 1 auto; min-width: 0 !important; margin: 0; } .tn-related-posts .tn-related-title a { display: block; line-height: 1.4; word-break: break-word; } /* Mobile */ @media (max-width: 768px) { .tn-related-posts .tn-related-thumb img { width: 80px !important; height: 60px !important; } } /* ===================================================== FORCE BREAKING TICKER VISIBILITY (FINAL FIX) ===================================================== */ .tn-breaking-wrap { display: flex !important; width: 100%; background: #f4f4f4; border-bottom: 1px solid #ddd; position: relative; z-index: 5; } .tn-site-header + .tn-breaking-wrap { margin-top: 0; } /* ================================================== FOOTER – BASE ================================================== */ .tn-footer { background-color: #111; color: #ddd; padding: 40px 0 20px; font-size: 14px; } .tn-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; } /* ================================================== FOOTER TOP LAYOUT ================================================== */ .tn-footer-top { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; } /* ================================================== FOOTER BRAND ================================================== */ .tn-footer-logo { font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; } .tn-footer-desc { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #aaa; } /* ================================================== FOOTER MENUS ================================================== */ .tn-footer-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; list-style: none; margin: 0; padding: 0; } .tn-footer-menu > li > a { display: block; font-weight: 600; color: #fff; margin-bottom: 12px; text-decoration: none; } .tn-footer-menu li ul { list-style: none; padding: 0; margin: 0; } .tn-footer-menu li ul li a { display: block; font-size: 13px; color: #bbb; padding: 4px 0; text-decoration: none; } .tn-footer-menu li ul li a:hover { color: #fff; } /* ================================================== FOOTER BOTTOM ================================================== */ .tn-footer-bottom { margin-top: 30px; padding-top: 15px; border-top: 1px solid #222; text-align: center; font-size: 13px; color: #888; } /* ================================================== MOBILE FOOTER ACCORDION ================================================== */ @media (max-width: 768px) { .tn-footer-top { grid-template-columns: 1fr; } .tn-footer-menu { grid-template-columns: 1fr; } .tn-footer-menu > li > a { padding: 10px 0; position: relative; cursor: pointer; } .tn-footer-menu > li > a::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 16px; color: #aaa; } .tn-footer-menu li ul { display: none; padding-left: 10px; } .tn-footer-menu li.is-open > ul { display: block; } .tn-footer-menu li.is-open > a::after { content: '−'; } } /* ================================================== LAYOUT LOCK – DO NOT MODIFY Header, Home Grid, Global Spacing ================================================== */ /* Breaking News – Montblanc Flower Icon */ .breaking-ticker li { position: relative; padding-left: 18px; } .breaking-ticker li::before { content: "✽"; /* Montblanc-style flower */ position: absolute; left: 0; top: 2px; font-size: 12px; color: #c9a14a; /* premium gold */ } @media (min-width: 1280px) { .container, .site-content, .content-wrap { padding-left: 120px; padding-right: 120px; } } /* Breaking Ticker – Montblanc Flower Icon */ .tn-breaking-ticker ul li { position: relative; padding-left: 20px; } .tn-breaking-ticker ul li::before { content: "✽"; /* Montblanc-style flower */ position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 12px; color: #c9a14a; /* premium gold */ line-height: 1; } /* ================================ FIX-2: Desktop Header Alignment ================================ */ @media (min-width: 1024px) { .tn-desktop-header { display: flex; align-items: center; justify-content: center; /* center entire header content */ gap: 16px; /* tight logo–menu spacing */ } .tn-desktop-header .site-logo, .tn-desktop-header .logo { margin-right: 0; padding-right: 0; } .tn-desktop-header nav { margin-left: 2; } } /* ================================ FIX-3: Home Page Column Gaps ================================ */ .home .tn-content, .home .site-content, .home .content-area { gap: 1px !important; column-gap: 1px !important; } .home .tn-sidebar, .home .sidebar { margin-left: 1px !important; } .tn-footer { border-top: 1px solid #e5e5e5; } /* ====================================== Home page category heading underline TeluguNow V5.1 ====================================== */ .home .tn-home-category > h2 { position: relative; padding-bottom: 10px; margin-bottom: 16px; } /* Full-width underline */ .home .tn-home-category > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background-color: #000; /* change if needed */ opacity: 0.9; } .tn-related-posts { background: #f7f7f7; padding: 12px 15px; margin: 20px 0; border-left: 4px solid #0073aa; } .tn-related-posts ul { margin: 8px 0 0; padding-left: 18px; } .tn-related-posts li { margin-bottom: 6px; } /* Unified Read More highlight – Desktop & Mobile */ .tn-related-posts { background: #fff1f1; /* light red background */ padding: 12px 16px; margin: 22px 0; border-left: 4px solid #d90000; font-size: 16px; line-height: 1.6; } /* Read More label in RED */ .tn-related-posts strong { color: #d90000; font-weight: 700; margin-right: 6px; } /* Link styling */ .tn-related-posts a { color: #000; font-weight: 600; text-decoration: none; } .tn-related-posts a:hover { color: #d90000; text-decoration: underline; } /* Force Read More block styling */ .tn-related-posts { background: #fff1f1 !important; padding: 12px 16px !important; margin: 22px 0 !important; border-left: 4px solid #d90000 !important; font-size: 16px !important; line-height: 1.6 !important; } /* Force Read More label in RED */ .tn-related-posts strong { color: #d90000 !important; font-weight: 700 !important; margin-right: 6px; } /* 🔴 FORCE link color (theme override fix) */ .tn-related-posts a, .tn-related-posts a:visited { color: #000000 !important; font-weight: 600 !important; text-decoration: none !important; } /* Hover state */ .tn-related-posts a:hover { color: #d90000 !important; text-decoration: underline !important; } /* =====================================================
   HOMEPAGE — FINAL OVERRIDE
   Let PHP control thumbnail size
===================================================== */

/* Post row layout */
.home .tn-home-post-thumb {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ❌ REMOVE all forced widths */
.home .tn-home-post-thumb img {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    flex: 0 0 auto;
}

/* Title */
.home .tn-home-post-thumb a {
    flex: 1;
    min-width: 0;
    display: block;
}

/* =====================================================
   FINAL FIX — HOMEPAGE FIRST POST FULL WIDTH
===================================================== */

/* Force ALL homepage posts to same row layout */
.home .tn-home-post-thumb {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

/* Never allow image to stretch container */
.home .tn-home-post-thumb img {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    flex: 0 0 auto;
}

/* Title column */
.home .tn-home-post-thumb a {
    flex: 1;
    min-width: 0;
    display: block;
}
/* =====================================================
   CATEGORY / ARCHIVE ROW LAYOUT
===================================================== */

.tn-archive-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.tn-archive-thumb {
    flex: 0 0 80px;
}

.tn-archive-thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.tn-archive-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.tn-archive-title a {
    text-decoration: none;
    color: #000;
}

.tn-archive-title a:hover {
    color: #c00;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .tn-archive-thumb {
        flex: 0 0 64px;
    }

    .tn-archive-thumb img {
        width: 64px;
        height: 64px;
    }

    .tn-archive-title {
        font-size: 15px;
    }
}

/* =====================================================
   PAGINATION — BOXED & CENTERED
===================================================== */

.tn-pagination {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.tn-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    color: #000;
    background: #fff;
}

.tn-pagination .page-numbers:hover {
    background: #f2f2f2;
}

.tn-pagination .page-numbers.current {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

/* Mobile touch comfort */
@media (max-width: 768px) {
    .tn-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
/* =====================================================
   SINGLE POST — MOBILE IMAGE RESPONSIVENESS (FINAL FIX)
===================================================== */

/* Prevent horizontal scroll globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure single content never exceeds viewport */
.single .tn-single-content,
.single .entry-content,
.single article,
.single main {
    max-width: 100%;
    overflow-x: hidden;
}

/* ALL images inside single post */
.single .tn-single-content img,
.single .entry-content img,
.single article img,
.single main img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Gutenberg image blocks */
.single figure,
.single figure.wp-block-image {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.single figure.wp-block-image img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* Safety: remove fixed widths added by editor */
.single img[width],
.single img[height] {
    width: auto !important;
    height: auto !important;
}

/* Mobile hard enforcement */
@media (max-width: 768px) {
    .single * {
        max-width: 100%;
        box-sizing: border-box;
    }
}
/* =====================================================
   CLEAN BOXED PAGINATION — CENTERED
   TeluguNow V5.1
===================================================== */

.tn-pagination,
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* Page numbers */
.tn-pagination .page-numbers,
.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover */
.tn-pagination .page-numbers:hover,
.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    background: #f2f2f2;
}

/* Current page */
.tn-pagination .page-numbers.current,
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: #c00;            /* TeluguNow red */
    color: #fff;
    border-color: #c00;
    cursor: default;
}

/* Remove default arrows text spacing */
.page-numbers.prev,
.page-numbers.next {
    padding: 0 14px;
}

/* Dots */
.page-numbers.dots {
    border: none;
    background: none;
    min-width: auto;
    padding: 0 6px;
    cursor: default;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .tn-pagination .page-numbers,
    .pagination .page-numbers,
    .nav-links .page-numbers {
        min-width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* ==================================================
   TeluguNow V5.1 – Read More (HORIZONTAL, FINAL)
================================================== */

.tn-related-posts .tn-related-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tn-related-posts .tn-related-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Thumbnail column */
.tn-related-posts .tn-related-thumb {
    flex: 0 0 160px;
    max-width: 160px;
    display: block;
}

/* Thumbnail wrapper */
.tn-related-posts .tn-thumb-wrap {
    width: 160px;
    height: 90px; /* 16:9 */
    overflow: hidden;
    border-radius: 4px;
    background: #e5e5e5;
}

/* Image */
.tn-related-posts .tn-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title */
.tn-related-posts .tn-related-title {
    margin: 0;
    flex: 1;
}

.tn-related-posts .tn-related-title a {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
    text-decoration: none;
}

.tn-related-posts .tn-related-title a:hover {
    text-decoration: underline;
}

/* Mobile stack */
@media (max-width: 600px) {
    .tn-related-posts .tn-related-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .tn-related-posts .tn-related-thumb,
    .tn-related-posts .tn-thumb-wrap {
        width: 100%;
        max-width: 100%;
        height: 180px;
    }
}

/* Sidebar list layout */
.tn-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tn-sidebar-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
}

.tn-sidebar-thumb {
    flex-shrink: 0;
}

.tn-sidebar-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #000;
    text-decoration: none;
}

.tn-sidebar-title:hover {
    text-decoration: underline;
}
