/*
Theme Name: TT News Site
Theme URI: https://technicalthought.com/Demo/News-Site/
Author: Technical Thought
Author URI: https://technicalthought.com/
Description: TT News Site is a clean, fast and responsive Hindi news portal theme for WordPress. Inspired by leading Hindi news websites, it features a breaking-news ticker, logo + category nav, hero grid, multi-column news sections, a "Latest News" right sidebar, and a fully populated footer. Built as a lightweight standalone classic WordPress theme (no parent theme required).
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tt-news-site
Tags: news, hindi, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, rtl-language-support
*/

/* ------------------------------------------------------------------
   1. CSS Variables
------------------------------------------------------------------ */
:root {
    /* Brand colors */
    --tt-red: #d60000;
    --tt-red-dark: #b50000;
    --tt-red-soft: rgba(209, 25, 25, 0.81);

    /* Neutrals */
    --tt-bg: #ffffff;
    --tt-bg-alt: #f5f5f5;
    --tt-bg-dark: #1a1a1a;
    --tt-text: #1a1a1a;
    --tt-text-soft: #555555;
    --tt-text-muted: #888888;
    --tt-border: #e5e5e5;
    --tt-link: #1a1a1a;
    --tt-link-hover: var(--tt-red);

    /* Typography */
    --tt-font-base: "Mukta", "Noto Sans Devanagari", "Hind", "Roboto", "Segoe UI", Arial, sans-serif;
    --tt-font-head: "Mukta", "Noto Sans Devanagari", "Hind", "Roboto", Arial, sans-serif;

    /* Layout */
    --tt-container: 1300px;
    --tt-radius: 6px;
    --tt-radius-sm: 4px;
    --tt-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    --tt-shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.10);
    --tt-transition: 0.25s ease;

    /* Header */
    --tt-header-h: 70px;
    --tt-logo-h: 50px;
}

/* ------------------------------------------------------------------
   2. Reset & Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--tt-font-base);
    font-size: 16px;
    line-height: 1.55;
    color: var(--tt-text);
    background: var(--tt-bg);
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

img { border: 0; }

a {
    color: var(--tt-link);
    text-decoration: none;
    transition: color var(--tt-transition);
}
a:hover, a:focus, a:active { color: var(--tt-link-hover); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-family: var(--tt-font-head);
    font-weight: 700;
    line-height: 1.25;
    color: var(--tt-text);
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em 1.2em; padding: 0; }
ul ul, ol ol { margin: 0.3em 0 0.3em 1.2em; }

blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1em;
    border-left: 4px solid var(--tt-red);
    background: var(--tt-bg-alt);
    color: var(--tt-text-soft);
    font-style: italic;
}

pre, code, kbd, samp {
    font-family: "Courier New", monospace;
    font-size: 0.9em;
}
pre {
    background: var(--tt-bg-alt);
    padding: 1em;
    border-radius: var(--tt-radius-sm);
    overflow: auto;
}

hr { border: 0; border-top: 1px solid var(--tt-border); margin: 1.5em 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.95em;
}
th, td {
    padding: 0.6em 0.8em;
    border: 1px solid var(--tt-border);
    text-align: left;
}
th { background: var(--tt-bg-alt); font-weight: 700; }

button, input, select, optgroup, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.4;
    margin: 0;
}

/* ------------------------------------------------------------------
   3. Accessibility helpers
------------------------------------------------------------------ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: var(--tt-bg);
    clip: auto !important;
    clip-path: none;
    color: var(--tt-text);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}
.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--tt-red);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ------------------------------------------------------------------
   4. Layout containers
------------------------------------------------------------------ */
.tt-container {
    max-width: var(--tt-container);
    margin: 0 auto;
    padding: 0 18px;
}

.site {
    overflow: hidden;
}

.site-content {
    padding: 24px 0 40px;
}

#primary {
    width: 75%;
    padding-right: 24px;
    float: left;
}
#secondary {
    width: 25%;
    float: left;
}

.tt-row::after,
.site-content::after,
.entry-content::after,
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ------------------------------------------------------------------
   5. Breaking news ticker (top bar)
------------------------------------------------------------------ */
.breaking-news-bar {
    display: flex;
    align-items: center;
    background: var(--tt-bg-dark);
    color: #fff;
    font-size: 13.5px;
    overflow: hidden;
}
.breaking-news-label {
    background: var(--tt-red);
    color: #fff;
    padding: 7px 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.breaking-news-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: tt-blink 1.2s infinite;
}
@keyframes tt-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.breaking-news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 6px 0;
}
.breaking-news-ticker ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tt-marquee 35s linear infinite;
}
.breaking-news-ticker:hover ul { animation-play-state: paused; }
.breaking-news-ticker li {
    padding: 0 22px;
    position: relative;
}
.breaking-news-ticker li::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}
.breaking-news-ticker a {
    color: #fff;
    font-weight: 500;
}
.breaking-news-ticker a:hover { color: #ffd4d4; }
.breaking-news-ticker .arrow {
    color: var(--tt-red);
    margin-right: 5px;
    font-weight: 700;
}
.breaking-news-close {
    padding: 0 14px;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    background: transparent;
    border: 0;
    flex-shrink: 0;
    line-height: 1;
}
.breaking-news-close:hover { background: rgba(255,255,255,0.08); }

@keyframes tt-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------
   6. Header / Masthead
------------------------------------------------------------------ */
.site-header {
    background: var(--tt-bg);
    border-bottom: 1px solid var(--tt-border);
    position: relative;
    z-index: 50;
}

/* Top mini bar: date + (optional) social */
.tt-top-bar {
    background: var(--tt-bg-alt);
    border-bottom: 1px solid var(--tt-border);
    font-size: 12.5px;
    color: var(--tt-text-soft);
}
.tt-top-bar .tt-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
}
.tt-top-bar .tt-date { font-weight: 500; }
.tt-top-bar .tt-social-mini { display: flex; gap: 8px; }
.tt-top-bar .tt-social-mini a {
    color: var(--tt-text-soft);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.tt-top-bar .tt-social-mini a:hover {
    background: var(--tt-red);
    color: #fff;
}

/* Main masthead row: logo + (optional) ad */
.tt-masthead {
    padding: 14px 0;
}
.tt-masthead .tt-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo img {
    max-height: var(--tt-logo-h);
    width: auto;
    display: block;
}
.site-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tt-red);
    line-height: 1.1;
    letter-spacing: -0.3px;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--tt-red-dark); }
.site-tagline {
    margin: 0;
    font-size: 12.5px;
    color: var(--tt-text-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.tt-header-ad {
    flex-shrink: 0;
    text-align: right;
    color: var(--tt-text-muted);
    font-size: 12px;
}

/* Primary navigation */
.main-navigation {
    background: var(--tt-red);
    color: #fff;
    position: relative;
    z-index: 40;
}
.main-navigation .tt-container {
    display: flex;
    align-items: center;
    min-height: 46px;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.main-navigation li { position: relative; }
.main-navigation a {
    color: #fff;
    display: block;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
}
.main-navigation a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--tt-transition);
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after { transform: scaleX(1); }
.main-navigation a:hover,
.main-navigation .current-menu-item > a { background: var(--tt-red-dark); }

.main-navigation li:hover > ul { display: block; }
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--tt-red-dark);
    min-width: 200px;
    flex-direction: column;
    display: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.main-navigation ul ul a { padding: 10px 16px; font-size: 13px; text-transform: none; }
.main-navigation ul ul a::after { display: none; }

/* Nav extras (search + dark mode + mobile toggle) */
.nav-extras {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-extras button,
.nav-extras a {
    background: transparent;
    border: 0;
    color: #fff;
    width: 40px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
}
.nav-extras button:hover,
.nav-extras a:hover { background: var(--tt-red-dark); }

/* Mobile menu toggle */
.menu-toggle {
    background: transparent;
    border: 0;
    color: #fff;
    width: 40px;
    height: 46px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; fill: currentColor; }

/* Search modal */
.gp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
}
.gp-modal.is-open { display: flex; }
.gp-modal__container {
    background: #fff;
    width: min(640px, 90vw);
    border-radius: var(--tt-radius);
    overflow: hidden;
    box-shadow: var(--tt-shadow-hover);
}
.search-modal-form {
    display: flex;
    align-items: center;
    padding: 6px;
}
.search-modal-form input[type="search"] {
    flex: 1;
    border: 0;
    padding: 14px 16px;
    font-size: 16px;
    background: transparent;
    outline: none;
}
.search-modal-form button {
    background: var(--tt-red);
    color: #fff;
    border: 0;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: var(--tt-radius-sm);
}
.search-modal-form button:hover { background: var(--tt-red-dark); }

/* ------------------------------------------------------------------
   7. Section heading (red bar with white text + side accent)
------------------------------------------------------------------ */
.tt-section-head {
    background: var(--tt-red);
    color: #fff;
    padding: 8px 14px;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 18px;
    border-radius: var(--tt-radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
}
.tt-section-head::before {
    content: "";
    width: 6px;
    height: 22px;
    background: #fff;
    border-radius: 2px;
    flex-shrink: 0;
}
.tt-section-head .tt-view-all {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-transform: none;
    letter-spacing: 0;
}
.tt-section-head .tt-view-all:hover { color: #ffe5e5; }

/* ------------------------------------------------------------------
   8. Hero grid (1 large + 4 small)
------------------------------------------------------------------ */
.tt-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}
.tt-hero-main {
    position: relative;
    border-radius: var(--tt-radius);
    overflow: hidden;
    background: #000;
    min-height: 360px;
}
.tt-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.tt-hero-main:hover img { transform: scale(1.05); }
.tt-hero-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 22px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: #fff;
}
.tt-hero-overlay .tt-cat-pill {
    background: var(--tt-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}
.tt-hero-overlay h2 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
}
.tt-hero-overlay .tt-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}
.tt-hero-overlay a { color: #fff; }

.tt-hero-side {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
}
.tt-hero-side-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: var(--tt-radius);
    background: var(--tt-bg-alt);
    transition: background var(--tt-transition);
}
.tt-hero-side-item:hover {
    background: #eee;
}
.tt-hero-side-item figure {
    margin: 0;
    border-radius: var(--tt-radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 11;
}
.tt-hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tt-hero-side-item h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.tt-hero-side-item .tt-meta {
    display: block;
    font-size: 11px;
    color: var(--tt-text-muted);
    margin-top: 4px;
}

/* Category pill (compact) */
.tt-cat-pill {
    background: var(--tt-red);
    color: #fff;
    padding: 3px 9px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1.3;
}

/* ------------------------------------------------------------------
   9. News grid (4 large + 4 small layout, like the demo)
------------------------------------------------------------------ */
.tt-news-section {
    margin-bottom: 32px;
}
.tt-news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
}
.tt-news-grid .tt-news-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.tt-news-grid .tt-news-side {
    display: grid;
    gap: 14px;
}

/* Card – large */
.tt-card {
    background: #fff;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    overflow: hidden;
    transition: box-shadow var(--tt-transition), transform var(--tt-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tt-card:hover {
    box-shadow: var(--tt-shadow-hover);
    transform: translateY(-2px);
}
.tt-card .tt-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tt-bg-alt);
    position: relative;
}
.tt-card .tt-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.tt-card:hover .tt-card-img img { transform: scale(1.04); }
.tt-card .tt-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tt-card .tt-card-body .tt-cat-pill { margin-bottom: 6px; align-self: flex-start; }
.tt-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tt-text);
}
.tt-card h3 a:hover { color: var(--tt-red); }
.tt-card .tt-meta {
    font-size: 11.5px;
    color: var(--tt-text-muted);
    margin-top: auto;
}

/* Card – small (horizontal) */
.tt-card-mini {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 8px;
    border-radius: var(--tt-radius);
    background: var(--tt-bg-alt);
    transition: background var(--tt-transition);
}
.tt-card-mini:hover { background: #ececec; }
.tt-card-mini figure {
    margin: 0;
    border-radius: var(--tt-radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 11;
}
.tt-card-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tt-card-mini h3 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tt-text);
}
.tt-card-mini h3 a:hover { color: var(--tt-red); }
.tt-card-mini .tt-meta {
    font-size: 11px;
    color: var(--tt-text-muted);
    margin-top: 4px;
    display: block;
}

/* Meta line */
.tt-meta {
    color: var(--tt-text-muted);
    font-size: 12px;
}
.tt-meta .tt-meta-date::before {
    content: "📅";
    display: inline-block;
    margin-right: 4px;
    filter: grayscale(1) opacity(0.7);
}

/* ------------------------------------------------------------------
   10. Pagination
------------------------------------------------------------------ */
.tt-pagination {
    margin: 30px 0 10px;
    text-align: center;
}
.tt-pagination .page-numbers,
.tt-pagination a,
.tt-pagination span {
    display: inline-block;
    padding: 9px 16px;
    margin: 0 3px;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius-sm);
    background: #fff;
    color: var(--tt-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tt-transition);
}
.tt-pagination a:hover,
.tt-pagination .current {
    background: var(--tt-red);
    color: #fff;
    border-color: var(--tt-red);
}
.tt-pagination .dots { border: 0; background: transparent; }

.tt-loadmore {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 26px;
    background: var(--tt-red);
    color: #fff !important;
    border-radius: var(--tt-radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}
.tt-loadmore:hover { background: var(--tt-red-dark); }
.tt-loadmore svg { width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; }

/* ------------------------------------------------------------------
   11. Sidebar
------------------------------------------------------------------ */
.widget-area .widget {
    margin-bottom: 26px;
    background: #fff;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    overflow: hidden;
}
.widget .widget-title,
.widget h2.widget-title {
    background: var(--tt-red);
    color: #fff;
    margin: 0;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget .widget-title::before {
    content: "⚡";
    font-size: 14px;
}

/* Sidebar posts widget (Latest News) */
.tt-sidebar-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tt-sidebar-posts li {
    padding: 12px 14px;
    border-bottom: 1px solid var(--tt-border);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    align-items: center;
    transition: background var(--tt-transition);
}
.tt-sidebar-posts li:last-child { border-bottom: 0; }
.tt-sidebar-posts li:hover { background: var(--tt-bg-alt); }
.tt-sidebar-posts figure {
    margin: 0;
    border-radius: var(--tt-radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 11;
}
.tt-sidebar-posts img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tt-sidebar-posts h3,
.tt-sidebar-posts h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.tt-sidebar-posts h3 a:hover,
.tt-sidebar-posts h4 a:hover { color: var(--tt-red); }
.tt-sidebar-posts .tt-meta {
    font-size: 10.5px;
    margin-top: 3px;
    display: block;
}

/* Popular posts (numbered) */
.tt-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: tt-pop;
}
.tt-popular-list li {
    counter-increment: tt-pop;
    padding: 12px 14px 12px 50px;
    border-bottom: 1px solid var(--tt-border);
    position: relative;
    transition: background var(--tt-transition);
}
.tt-popular-list li::before {
    content: counter(tt-pop, decimal-leading-zero);
    position: absolute;
    left: 14px;
    top: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--tt-red);
    line-height: 1;
}
.tt-popular-list li:hover { background: var(--tt-bg-alt); }
.tt-popular-list h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}
.tt-popular-list .tt-meta { font-size: 11px; display: block; margin-top: 3px; }

/* Newsletter widget */
.tt-newsletter {
    padding: 18px 14px;
    background: var(--tt-bg-dark);
    color: #fff;
    text-align: center;
}
.tt-newsletter h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.tt-newsletter p { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.tt-newsletter input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--tt-radius-sm);
    margin-bottom: 8px;
    font-size: 14px;
}
.tt-newsletter button {
    width: 100%;
    padding: 10px 16px;
    background: var(--tt-red);
    color: #fff;
    border: 0;
    border-radius: var(--tt-radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.tt-newsletter button:hover { background: var(--tt-red-dark); }

/* Tags / Categories widgets */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 8px 14px;
}
.widget ul li {
    padding: 7px 0;
    border-bottom: 1px dashed var(--tt-border);
    font-size: 14px;
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--tt-text); }
.widget ul li a:hover { color: var(--tt-red); }
.widget ul li ul { padding: 7px 0 7px 14px; margin-top: 7px; }

.tagcloud {
    padding: 12px 14px;
}
.tagcloud a {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 4px 6px 0;
    background: var(--tt-bg-alt);
    border-radius: 16px;
    font-size: 12px !important;
    color: var(--tt-text);
    transition: all var(--tt-transition);
}
.tagcloud a:hover { background: var(--tt-red); color: #fff; }

/* ------------------------------------------------------------------
   12. Single post
------------------------------------------------------------------ */
.entry-header {
    margin-bottom: 18px;
}
.entry-title {
    margin: 8px 0 6px;
    font-size: 1.9rem;
    line-height: 1.2;
}
.entry-meta {
    color: var(--tt-text-muted);
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tt-border);
}
.entry-meta .author,
.entry-meta .tt-meta-date,
.entry-meta .tt-cats { display: inline-flex; align-items: center; gap: 4px; }
.entry-meta .author a { color: var(--tt-red); font-weight: 600; }

.entry-thumb {
    margin: 0 0 18px;
    border-radius: var(--tt-radius);
    overflow: hidden;
}
.entry-thumb img { width: 100%; display: block; }
.entry-thumb figcaption {
    font-size: 12px;
    color: var(--tt-text-muted);
    padding: 6px 0;
    text-align: center;
}

.entry-content { font-size: 16px; line-height: 1.75; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.2em; }
.entry-content img { border-radius: var(--tt-radius-sm); }
.entry-content a { color: var(--tt-red); text-decoration: underline; }
.entry-content a:hover { color: var(--tt-red-dark); }

.entry-content blockquote {
    margin: 1.4em 0;
    padding: 14px 20px;
    border-left: 4px solid var(--tt-red);
    background: var(--tt-bg-alt);
    color: var(--tt-text);
    font-style: italic;
    border-radius: 0 var(--tt-radius-sm) var(--tt-radius-sm) 0;
}

.entry-footer {
    margin-top: 24px;
    padding: 14px 0;
    border-top: 1px solid var(--tt-border);
    border-bottom: 1px solid var(--tt-border);
    font-size: 13.5px;
    color: var(--tt-text-soft);
}
.entry-footer .tt-tags,
.entry-footer .tt-cats-list { display: block; margin-bottom: 6px; }
.entry-footer a { color: var(--tt-red); }
.entry-footer strong { color: var(--tt-text); }

/* Share buttons */
.tt-share {
    margin: 22px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.tt-share .tt-share-label { font-weight: 700; font-size: 14px; margin-right: 4px; }
.tt-share a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: transform var(--tt-transition);
}
.tt-share a:hover { transform: translateY(-2px); }
.tt-share .tt-share-fb { background: #1877f2; }
.tt-share .tt-share-tw { background: #000; }
.tt-share .tt-share-wa { background: #25d366; }
.tt-share .tt-share-tg { background: #0088cc; }
.tt-share .tt-share-ln { background: #06c755; }

/* Author box */
.tt-author-box {
    margin: 26px 0;
    padding: 18px;
    background: var(--tt-bg-alt);
    border-radius: var(--tt-radius);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.tt-author-box .avatar {
    border-radius: 50%;
    width: 70px;
    height: 70px;
}
.tt-author-box h4 { margin: 0 0 4px; font-size: 16px; }
.tt-author-box .tt-author-role { font-size: 12px; color: var(--tt-text-muted); margin-bottom: 6px; }
.tt-author-box p { margin: 0; font-size: 14px; color: var(--tt-text-soft); }

/* Related posts */
.tt-related {
    margin: 28px 0 8px;
}
.tt-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.tt-related-grid .tt-card h3 { font-size: 14px; }

/* ------------------------------------------------------------------
   13. Page header (archive / search)
------------------------------------------------------------------ */
.tt-page-header {
    background: var(--tt-bg-dark);
    color: #fff;
    padding: 22px 0;
    margin-bottom: 24px;
}
.tt-page-header h1 {
    color: #fff;
    margin: 0;
    font-size: 1.6rem;
}
.tt-page-header .tt-breadcrumb {
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
}
.tt-page-header .tt-breadcrumb a { color: #fff; }
.tt-page-header .tt-breadcrumb a:hover { color: var(--tt-red); }

/* ------------------------------------------------------------------
   14. Footer
------------------------------------------------------------------ */
.site-footer {
    background: var(--tt-bg-dark);
    color: #cfcfcf;
    margin-top: 40px;
    padding-top: 40px;
}
.site-footer a { color: #d6d6d6; }
.site-footer a:hover { color: var(--tt-red); }

.tt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid #2a2a2a;
}
.tt-footer-grid h3,
.tt-footer-grid h2 {
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tt-red);
    display: inline-block;
}
.tt-footer-about img {
    max-height: 50px;
    margin-bottom: 12px;
}
.tt-footer-about p { font-size: 13.5px; line-height: 1.65; color: #b5b5b5; }
.tt-footer-cats ul,
.tt-footer-more ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tt-footer-cats li,
.tt-footer-more li { padding: 6px 0; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.tt-footer-cats li::before,
.tt-footer-more li::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid var(--tt-red);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    flex-shrink: 0;
}
.tt-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #fff;
    margin: 4px 4px 0 0;
    font-size: 16px;
    transition: background var(--tt-transition);
}
.tt-footer-social a:hover { background: var(--tt-red); color: #fff; }
.tt-footer-social h3 { margin-bottom: 12px; }

.site-info {
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: #9d9d9d;
}
.site-info a { color: var(--tt-red); }

/* Back to top */
#tt-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    background: var(--tt-red);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: var(--tt-shadow);
    transition: background var(--tt-transition);
}
#tt-back-to-top:hover { background: var(--tt-red-dark); }
#tt-back-to-top.is-visible { display: flex; }

/* ------------------------------------------------------------------
   15. 404 page
------------------------------------------------------------------ */
.tt-404 {
    text-align: center;
    padding: 60px 0;
}
.tt-404 h1 {
    font-size: 6rem;
    color: var(--tt-red);
    line-height: 1;
    margin-bottom: 8px;
}
.tt-404 h2 { font-size: 1.4rem; margin-bottom: 14px; }
.tt-404 p { color: var(--tt-text-soft); max-width: 500px; margin: 0 auto 18px; }
.tt-404 .tt-search-404 {
    max-width: 480px;
    margin: 20px auto;
    display: flex;
    gap: 6px;
}
.tt-404 .tt-search-404 input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius-sm);
    font-size: 14px;
}
.tt-404 .tt-search-404 button {
    background: var(--tt-red);
    color: #fff;
    border: 0;
    padding: 0 22px;
    border-radius: var(--tt-radius-sm);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------
   16. Comments
------------------------------------------------------------------ */
.comments-area { margin-top: 32px; }
.comments-title {
    font-size: 1.3rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tt-red);
    display: inline-block;
    margin-bottom: 18px;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .children { list-style: none; padding-left: 30px; margin: 14px 0 0; }
.comment-body {
    padding: 14px 0;
    border-bottom: 1px solid var(--tt-border);
}
.comment-author { font-weight: 700; font-size: 14px; }
.comment-author .avatar { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.comment-meta { font-size: 12px; color: var(--tt-text-muted); margin-bottom: 6px; }
.comment-content { font-size: 14.5px; line-height: 1.6; }
.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--tt-red);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#respond {
    margin-top: 24px;
    background: var(--tt-bg-alt);
    padding: 18px;
    border-radius: var(--tt-radius);
}
#respond h3 { margin-top: 0; }
#respond .comment-form-comment label,
#respond .comment-form-author label,
#respond .comment-form-email label,
#respond .comment-form-url label { font-weight: 600; display: block; margin-bottom: 4px; font-size: 13.5px; }
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius-sm);
    margin-bottom: 12px;
    background: #fff;
}
#respond input[type="submit"] {
    background: var(--tt-red);
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: var(--tt-radius-sm);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}
#respond input[type="submit"]:hover { background: var(--tt-red-dark); }

/* ------------------------------------------------------------------
   17. Alignment & block classes (WP core blocks compatibility)
------------------------------------------------------------------ */
.alignleft { float: left; margin: 0 18px 18px 0; }
.alignright { float: right; margin: 0 0 18px 18px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; clear: both; }
.alignwide, .alignfull { margin-left: calc(-1 * (50vw - 50%)); margin-right: calc(-1 * (50vw - 50%)); max-width: 100vw; }
.alignfull { margin-left: calc(-1 * (50vw - 50%)); margin-right: calc(-1 * (50vw - 50%)); width: 100vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 12.5px;
    color: var(--tt-text-muted);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}
.gallery { display: grid; gap: 8px; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.sticky { display: block; }
.bypostauthor { display: block; }

/* ------------------------------------------------------------------
   18. Responsive
------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .tt-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .tt-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .tt-hero { grid-template-columns: 1fr; }
    .tt-hero-side { grid-template-rows: auto; grid-template-columns: repeat(2, 1fr); }
    .tt-news-grid { grid-template-columns: 1fr; }
    .tt-news-grid .tt-news-main { grid-template-columns: repeat(2, 1fr); }
    #primary { width: 100%; padding-right: 0; }
    #secondary { width: 100%; margin-top: 32px; }
    .menu-toggle { display: inline-flex; }
    .main-navigation ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--tt-red-dark); }
    .main-navigation.toggled ul { display: flex; }
    .main-navigation li { width: 100%; }
    .main-navigation a { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-navigation ul ul {
        position: static;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
    }
}

@media (max-width: 640px) {
    .tt-top-bar .tt-container { flex-direction: column; gap: 4px; padding: 4px 18px; text-align: center; }
    .tt-masthead .tt-container { flex-direction: column; gap: 10px; text-align: center; }
    .site-branding { justify-content: center; }
    .tt-header-ad { display: none; }
    .tt-hero-side { grid-template-columns: 1fr; }
    .tt-news-grid .tt-news-main { grid-template-columns: 1fr; }
    .tt-related-grid { grid-template-columns: 1fr; }
    .tt-footer-grid { grid-template-columns: 1fr; }
    .entry-title { font-size: 1.5rem; }
    .tt-hero-overlay h2 { font-size: 1.15rem; }
    .tt-hero-overlay { padding: 18px 14px 12px; }
    .breaking-news-label { padding: 7px 10px; font-size: 12px; }
    .main-navigation a { padding: 11px 14px; font-size: 13px; }
    .nav-extras button,
    .nav-extras a { width: 36px; }
}

@media (max-width: 420px) {
    .tt-card-mini,
    .tt-hero-side-item { grid-template-columns: 90px 1fr; }
    .tt-sidebar-posts li { grid-template-columns: 70px 1fr; }
}

/* ------------------------------------------------------------------
   19. Print
------------------------------------------------------------------ */
@media print {
    .main-navigation,
    .breaking-news-bar,
    .tt-top-bar,
    .site-footer,
    #secondary,
    #tt-back-to-top,
    .tt-share,
    .nav-extras,
    .gp-modal { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
    .entry-content a::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}
