/*
Theme Name: The Nation Eye
Author: You
Version: 1.0
*/


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

:root {
    --blue: #1565C0;
    --blue-dark: #0D47A1;
    --blue-mid: #1976D2;
    --yellow: #FFC107;
    --red: #E53935;
    --white: #ffffff;
    --off: #F4F6F9;
    --border: #DDE3EC;
    --text: #1a1a2e;
    --muted: #6b7280;
    --card-bg: #ffffff;
    --tag-green: #2e7d32;
    --tag-purple: #6a1b9a;
    --tag-orange: #e65100;
    --golden: #ffc72d;
}

body {
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    background: var(--off);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}

/* ── TOP BAR ── */
.top-bar {
    background: var(--blue);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo-the {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    font-style: italic;
    letter-spacing: -0.5px;
    margin-right: 6px;
}

.logo-name {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.logo-dot {
    width: 14px;
    height: 14px;
    background: var(--golden);
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Social icons */
.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.18s, opacity 0.18s;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.social-btn.yt {
    background: #FF0000;
}

.social-btn.fb {
    background: linear-gradient(135deg, #1877F2, #0b56c4);
}

.social-btn.ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Date bar */
.date-bar {
    background: var(--blue-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 24px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.date-bar span b {
    color: var(--golden);
}

/* ── NAV ── */
.nav-wrap {
    background: #fff;
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 3px solid var(--yellow);
}

nav {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    padding: 0 12px;
}

nav::-webkit-scrollbar {
    display: none;
}

nav a {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    padding: 13px 14px;
    white-space: nowrap;
    position: relative;
    transition: color 0.18s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: var(--blue);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s;
}

nav a:hover {
    color: var(--blue);
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

nav a.active {
    color: var(--blue);
}

nav .sep {
    color: var(--border);
    padding: 0;
    user-select: none;
    font-size: 16px;
}

/* ── BREAKING NEWS ── */
.breaking-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 44px;
    padding: 0 16px;
    gap: 14px;
}

.breaking-badge {
    background: var(--blue);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-inner {
    display: flex;
    gap: 48px;
    animation: ticker 28s linear infinite;
    white-space: nowrap;
}

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

.ticker-inner span {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticker-inner span::before {
    content: '●';
    color: var(--red);
    font-size: 10px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-arrows {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ticker-arrows button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.ticker-arrows button:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* ── LAYOUT ── */
.page-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 16px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

/* ── SECTION HEADER ── */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.section-label .lbar {
    width: 4px;
    height: 22px;
    background: var(--blue);
    border-radius: 2px;
}

.section-label h2 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
}

/* ── HERO CARD ── */
.hero-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

.hero-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.13);
}

.hero-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 280px;
}

.hero-img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-img-grid img:first-child {
    border-right: 3px solid #fff;
}

.hero-body {
    padding: 22px 24px 26px;
}

.hero-category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-category::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--blue);
    display: inline-block;
}

.hero-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 12px;
}

.hero-card p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.meta-text span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.meta-text small {
    font-size: 11.5px;
    color: var(--muted);
}

.read-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    text-decoration: none;
}

.read-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

/* ── NEWS GRID ── */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.news-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 14px 16px 16px;
}



.tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.tag.crime {
    background: #fce4ec;
    color: #c62828;
}

.tag.politics {
    background: #e3f2fd;
    color: #1565c0;
}

.tag.edu {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag.meerut {
    background: #f3e5f5;
    color: #6a1b9a;
}

.tag.india {
    background: #fff3e0;
    color: #e65100;
}

.tag.world {
    background: #e0f7fa;
    color: #006064;
}

.news-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 8px;
}

.news-card h3 a{
    text-decoration:none;
	color:var(--text);
}

.news-card-time {
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-time svg {
    width: 13px;
    height: 13px;
}

/* ── SIDEBAR ── */
/* .sidebar {} */

/* Subscribe */
.subscribe-block {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscribe-block button {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
}

.subscribe-block button:hover {
    background: var(--blue-dark);
}

.subscribe-block .user-icon {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.15s;
    margin-left: auto;
}

.subscribe-block .user-icon:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* Latest news widget */
.latest-widget {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 20px;
}

.widget-header {
    background: var(--blue);
    color: #fff;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header .dot {
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.latest-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.latest-item:last-child {
    border-bottom: none;
}

.latest-item:hover {
    background: var(--off);
}

.latest-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.latest-item-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 5px;
}

.latest-item-text span {
    font-size: 11.5px;
    color: var(--muted);
}

.view-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    border-top: 1px solid var(--border);
    transition: background 0.15s;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.view-more-btn:hover {
    background: #EBF2FF;
}

/* Trending widget */
.trending-widget {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 20px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background: var(--off);
}

.trending-num {
    font-size: 22px;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    color: var(--border);
    width: 30px;
    flex-shrink: 0;
    line-height: 1;
}

.trending-item:hover .trending-num {
    color: var(--blue);
}

.trending-item h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

/* Weather widget */
.weather-widget {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
    border-radius: 10px;
    padding: 18px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(21, 101, 192, 0.3);
}

.weather-widget .city {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 6px;
}

.weather-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.weather-icon {
    font-size: 42px;
    line-height: 1;
}

.weather-temp {
    font-size: 38px;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.weather-desc {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.weather-extras {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-extra {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-extra small {
    font-size: 11px;
    opacity: 0.7;
}

.weather-extra span {
    font-size: 14px;
    font-weight: 700;
}

/* Special news full-width strip */
.special-strip {
    grid-column: 1 / -1;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: 4px;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.special-item {
    cursor: pointer;
    transition: transform 0.18s;
}

.special-item:hover {
    transform: translateY(-3px);
}

.special-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.special-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 4px;
}

.special-item small {
    font-size: 11.5px;
    color: var(--muted);
}

/* ── FOOTER ── */
footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 24px 20px;
    margin-top: 40px;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-about .logo-block {
    margin-bottom: 14px;
}

.footer-about p {
    font-size: 13px;
    line-height: 1.65;
    opacity: 0.75;
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1240px;
    margin: 18px auto 0;
    font-size: 12px;
    opacity: 0.55;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── MODAL OVERLAY ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 14px;
    max-width: 480px;
    width: 90%;
    padding: 32px;
    position: relative;
}

.modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 8px;
}

.modal p {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 20px;
}

.modal input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.18s;
}

.modal input:focus {
    border-color: var(--blue);
}

.modal .modal-btn {
    width: 100%;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .page-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-img-grid {
        height: 200px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .special-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .logo-the {
        font-size: 20px;
    }

    .logo-name {
        font-size: 22px;
    }

    .hero-card h1 {
        font-size: 22px;
    }

    .special-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-img-grid {
        grid-template-columns: 1fr;
        height: 180px;
    }

    .hero-img-grid img:last-child {
        display: none;
    }
}


/* Container Layout */
.wb-article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #2c3e50;
    line-height: 1.8;
}

/* Header & Meta */
.wb-article__header {
    margin-bottom: 30px;
    text-align: center;
}

.wb-article__meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.wb-article__divider {
    margin: 0 8px;
    color: #bdc3c7;
}

.wb-article__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0;
}

/* Featured Image */
.wb-article__featured-image-wrapper {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.wb-article__featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Body Content Beautification */
.wb-article__content {
    font-size: 1.15rem;
    color: #333333;
}

.wb-article__content p {
    margin-bottom: 25px;
}

.wb-article__content h2, 
.wb-article__content h3 {
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Footer & Tags */
.wb-article__footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wb-article__tag-label {
    font-weight: bold;
    color: #7f8c8d;
}

.wb-article__tags a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wb-article__tags a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wb-article-container {
        padding: 30px 15px;
    }
    .wb-article__title {
        font-size: 2rem;
    }
}

/* Fix text and element overflow inside the content area */
.wb-article__content {
    /* Ensures long URLs or words wrap nicely onto a new line */
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Force image blocks, embeds, and iframe elements to stay in bounds */
.wb-article__content img,
.wb-article__content iframe,
.wb-article__content video,
.wb-article__content table {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* If the overflow is caused by code blocks or pre-formatted text */
.wb-article__content pre,
.wb-article__content code {
    white-space: pre-wrap;       /* CSS3 */
    white-space: -moz-pre-wrap;  /* Mozilla */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* IE */
    max-width: 100%;
    overflow-x: auto;            /* Adds a scrollbar only if it absolutely needs it */
}

/*
 * ============================================================
 *  responsive.css — The Nation Eye
 *  Link after the main <style> block:
 *  <link rel="stylesheet" href="responsive.css" />
 *
 *  Breakpoints
 *  ─────────────────────────────────────
 *  ≤ 1024px  Tablet landscape / small desktop
 *  ≤  900px  Tablet portrait
 *  ≤  640px  Large phone / small tablet
 *  ≤  480px  Phone portrait  (primary mobile)
 *  ≤  360px  Small / narrow phone
 *
 *  Plus:
 *  (prefers-reduced-motion)  Pause animations
 *  (hover: none)             Remove hover lifts on touch
 * ============================================================
 */


/* ============================================================
   1. TABLET LANDSCAPE  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {

    /* Layout: shrink sidebar */
    .page-wrap {
        grid-template-columns: 1fr 300px;
        gap: 20px;
        padding: 18px 16px;
    }

    /* Hero headline */
    .hero-card h1 {
        font-size: 24px;
    }

    /* Special grid: 2×2 */
    .special-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Footer: 2-col */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}


/* ============================================================
   2. TABLET PORTRAIT  ≤ 900px
   ============================================================ */
@media (max-width: 900px) {

    /* ── Header ── */
    .top-bar {
        height: 60px;
        padding: 0 16px;
    }

    .logo-the {
        font-size: 24px;
    }

    .logo-name {
        font-size: 26px;
        letter-spacing: 1px;
    }

    .logo-dot {
        width: 12px;
        height: 12px;
    }

    .social-btn {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .social-btn svg {
        width: 17px;
        height: 17px;
    }

    .top-right {
        gap: 8px;
    }

    /* Date bar */
    .date-bar {
        padding: 4px 16px;
    }

    /* ── Nav ── */
    nav {
        padding: 0 8px;
    }

    nav a {
        font-size: 13px;
        padding: 12px 11px;
    }

    /* ── Breaking bar ── */
    .breaking-bar {
        padding: 0 12px;
        gap: 10px;
    }

    .breaking-badge {
        font-size: 11.5px;
        padding: 5px 10px;
    }

    .ticker-inner span {
        font-size: 13px;
    }

    /* ── Layout: single column ── */
    .page-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px 14px;
    }

    /* Sidebar moves below main content */
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }

    /* Full-width sidebar items */
    .subscribe-block {
        grid-column: 1 / -1;
    }

    .weather-widget {
        grid-column: span 1;
    }

    .latest-widget {
        grid-column: 1 / -1;
    }

    .trending-widget {
        grid-column: span 1;
    }

    /* ── Hero ── */
    .hero-img-grid {
        height: 240px;
    }

    .hero-card h1 {
        font-size: 22px;
    }

    .hero-body {
        padding: 18px 20px 22px;
    }

    /* ── News grid: 2 cols ── */
    .news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .news-card img {
        height: 150px;
    }

    /* ── Special grid: 2×2 ── */
    .special-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .special-item img {
        height: 110px;
    }

    /* ── Footer ── */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}


/* ============================================================
   3. LARGE PHONE / SMALL TABLET  ≤ 640px
   ============================================================ */
@media (max-width: 640px) {

    /* ── Header ── */
    .top-bar {
        height: 56px;
        padding: 0 14px;
    }

    .logo-the {
        font-size: 20px;
        margin-right: 4px;
    }

    .logo-name {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    .logo-dot {
        width: 10px;
        height: 10px;
        margin-left: 5px;
    }

    /* Hide Instagram on small screens to save space */
    .social-btn.ig {
        display: none;
    }

    .top-right {
        gap: 7px;
    }

    /* Date bar: hide clock, show only date */
    .date-bar {
        font-size: 11px;
        padding: 4px 14px;
    }

    #live-time {
        display: none;
    }

    /* ── Nav ── */
    nav a {
        font-size: 12.5px;
        padding: 11px 10px;
    }

    nav .sep {
        font-size: 13px;
    }

    /* ── Breaking bar ── */
    .breaking-bar {
        height: 40px;
        padding: 0 10px;
        gap: 8px;
    }

    .breaking-badge {
        font-size: 10.5px;
        padding: 4px 8px;
        letter-spacing: 0.5px;
    }

    .ticker-inner span {
        font-size: 12.5px;
    }

    /* Hide arrow buttons — swipe is sufficient */
    .ticker-arrows {
        display: none;
    }

    /* ── Layout ── */
    .page-wrap {
        padding: 14px 12px;
        gap: 18px;
    }

    /* Sidebar: single column */
    .sidebar {
        grid-template-columns: 1fr;
    }

    .weather-widget {
        grid-column: auto;
    }

    .trending-widget {
        grid-column: auto;
    }

    /* ── Hero ── */
    .hero-img-grid {
        height: 200px;
        grid-template-columns: 1fr;
        /* show only first image */
    }

    .hero-img-grid img:last-child {
        display: none;
    }

    .hero-body {
        padding: 16px 16px 20px;
    }

    .hero-category {
        font-size: 11px;
    }

    .hero-card h1 {
        font-size: 19px;
        line-height: 1.3;
    }

    .hero-card p {
        font-size: 13.5px;
    }

    /* Hero meta: stack on small screens */
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .read-btn {
        width: 100%;
        text-align: center;
        padding: 11px 0;
    }

    /* ── News grid: single column ── */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .news-card img {
        height: 180px;
    }

    .news-card h3 {
        font-size: 15.5px;
    }

    /* ── Section labels ── */
    .section-label {
        margin-bottom: 14px;
    }

    .section-label h2 {
        font-size: 13px;
    }

    /* ── Special grid: single column ── */
    .special-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .special-strip {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .special-item {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .special-item img {
        width: 90px;
        height: 70px;
        flex-shrink: 0;
        border-radius: 7px;
        margin-bottom: 0;
    }

    .special-item h4 {
        font-size: 13.5px;
        line-height: 1.35;
    }

    .special-item small {
        font-size: 11px;
    }

    /* ── Subscribe block ── */
    .subscribe-block {
        gap: 8px;
        padding: 14px;
    }

    .subscribe-block button {
        padding: 9px 16px;
        font-size: 12.5px;
    }

    /* ── Weather widget ── */
    .weather-widget {
        padding: 16px;
    }

    .weather-temp {
        font-size: 32px;
    }

    .weather-icon {
        font-size: 36px;
    }

    .weather-extras {
        gap: 12px;
    }

    /* ── Latest widget ── */
    .latest-item img {
        width: 70px;
        height: 52px;
    }

    .latest-item-text h4 {
        font-size: 13px;
    }

    .widget-header {
        font-size: 13px;
        padding: 12px 16px;
    }

    /* ── Trending ── */
    .trending-item h4 {
        font-size: 12.5px;
    }

    .trending-num {
        font-size: 19px;
    }

    /* ── Footer ── */
    footer {
        padding: 30px 16px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-col h5 {
        margin-bottom: 10px;
    }

    .footer-col ul li {
        margin-bottom: 6px;
    }

    .footer-bottom {
        font-size: 11px;
    }

    /* ── Modal ── */
    .modal {
        padding: 24px 20px;
        border-radius: 12px;
        width: 95%;
    }

    .modal h2 {
        font-size: 19px;
    }

    .modal p {
        font-size: 13px;
    }
}


/* ============================================================
   4. PHONE PORTRAIT  ≤ 480px
   ============================================================ */
@media (max-width: 480px) {

    /* ── Header ── */
    .top-bar {
        height: 52px;
        padding: 0 12px;
    }

    .logo-the {
        font-size: 18px;
    }

    .logo-name {
        font-size: 19px;
    }

    .logo-dot {
        width: 9px;
        height: 9px;
    }

    .social-btn {
        width: 30px;
        height: 30px;
        border-radius: 5px;
    }

    .social-btn svg {
        width: 15px;
        height: 15px;
    }

    /* Date bar: single line */
    .date-bar {
        justify-content: center;
        font-size: 10.5px;
        padding: 3px 12px;
    }

    /* ── Nav ── */
    nav a {
        font-size: 12px;
        padding: 10px 9px;
    }

    /* ── Breaking bar ── */
    .breaking-bar {
        height: 38px;
        padding: 0 8px;
        gap: 7px;
    }

    .breaking-badge {
        font-size: 10px;
        padding: 3px 7px;
        border-radius: 3px;
    }

    .ticker-inner span {
        font-size: 12px;
    }

    .ticker-inner {
        gap: 32px;
    }

    /* ── Layout ── */
    .page-wrap {
        padding: 12px 10px;
        gap: 16px;
    }

    /* ── Hero ── */
    .hero-img-grid {
        height: 180px;
    }

    .hero-body {
        padding: 14px 14px 18px;
    }

    .hero-card h1 {
        font-size: 17px;
        line-height: 1.28;
    }

    .hero-card p {
        font-size: 13px;
        line-height: 1.6;
    }

    .author-avatar {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .meta-text span {
        font-size: 11.5px;
    }

    .meta-text small {
        font-size: 11px;
    }

    /* ── News cards ── */
    .news-card img {
        height: 165px;
    }

    .news-card-body {
        padding: 12px 14px 14px;
    }

    .news-card h3 {
        font-size: 14.5px;
    }

    .tag {
        font-size: 10px;
        padding: 2px 7px;
    }

    .news-card-time {
        font-size: 11px;
    }

    /* ── Section label ── */
    .lbar {
        height: 18px;
    }

    .section-label h2 {
        font-size: 12px;
    }

    /* ── Subscribe block ── */
    .subscribe-block {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 12px;
    }

    .subscribe-block button {
        flex: 1;
        padding: 9px 0;
        font-size: 12px;
    }

    /* ── Weather ── */
    .weather-widget {
        padding: 14px;
    }

    .weather-temp {
        font-size: 28px;
    }

    .weather-icon {
        font-size: 32px;
    }

    .weather-row {
        gap: 10px;
    }

    .weather-desc {
        font-size: 12px;
    }

    .weather-extras {
        margin-top: 12px;
        padding-top: 12px;
    }

    .weather-extra small {
        font-size: 10.5px;
    }

    .weather-extra span {
        font-size: 13px;
    }

    /* ── Latest news ── */
    .latest-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .latest-item img {
        width: 62px;
        height: 48px;
        border-radius: 5px;
    }

    .latest-item-text h4 {
        font-size: 12.5px;
    }

    .latest-item-text span {
        font-size: 11px;
    }

    .view-more-btn {
        padding: 11px;
        font-size: 12.5px;
    }

    /* ── Trending ── */
    .trending-item {
        padding: 11px 14px;
        gap: 11px;
    }

    .trending-num {
        font-size: 17px;
        width: 26px;
    }

    .trending-item h4 {
        font-size: 12px;
    }

    /* ── Special section ── */
    .special-strip {
        padding: 16px 14px;
    }

    .special-item {
        gap: 10px;
    }

    .special-item img {
        width: 80px;
        height: 62px;
    }

    .special-item h4 {
        font-size: 13px;
    }

    /* ── Footer ── */
    footer {
        padding: 24px 14px 14px;
    }

    .footer-col h5 {
        font-size: 12px;
    }

    .footer-col ul li a {
        font-size: 12.5px;
    }

    .footer-bottom {
        gap: 4px;
        font-size: 10.5px;
    }

    /* ── Modal ── */
    .modal {
        padding: 22px 16px;
    }

    .modal h2 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .modal p {
        font-size: 12.5px;
        margin-bottom: 16px;
    }

    .modal input {
        padding: 10px 12px;
        font-size: 13.5px;
    }

    .modal .modal-btn {
        padding: 11px;
        font-size: 13.5px;
    }

    .modal-close {
        font-size: 19px;
        top: 12px;
        right: 14px;
    }
}


/* ============================================================
   5. NARROW PHONE  ≤ 360px
   ============================================================ */
@media (max-width: 360px) {

    /* ── Header: tightest layout ── */
    .top-bar {
        height: 48px;
        padding: 0 10px;
    }

    .logo-the {
        font-size: 16px;
        margin-right: 3px;
    }

    .logo-name {
        font-size: 17px;
        letter-spacing: 0;
    }

    .logo-dot {
        width: 8px;
        height: 8px;
        margin-left: 4px;
    }

    /* Hide both social icons — keep only YT to save space */
    .social-btn.fb {
        display: none;
    }

    .social-btn {
        width: 28px;
        height: 28px;
    }

    /* Date bar: center, minimal */
    .date-bar {
        font-size: 10px;
    }

    /* ── Nav: slightly smaller ── */
    nav a {
        font-size: 11.5px;
        padding: 9px 8px;
    }

    /* ── Breaking bar ── */
    .breaking-bar {
        height: 36px;
    }

    .breaking-badge {
        font-size: 9.5px;
        padding: 3px 6px;
    }

    .ticker-inner span {
        font-size: 11.5px;
    }

    /* ── Hero ── */
    .hero-img-grid {
        height: 160px;
    }

    .hero-card h1 {
        font-size: 15.5px;
    }

    .hero-body {
        padding: 12px 12px 16px;
    }

    /* ── News cards ── */
    .news-card img {
        height: 150px;
    }

    .news-card h3 {
        font-size: 14px;
    }

    /* ── Page padding ── */
    .page-wrap {
        padding: 10px 8px;
        gap: 14px;
    }
}


/* ============================================================
   6. REDUCED MOTION  (accessibility)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    .ticker-inner {
        animation: none;
        /* Show only the first headline when motion is disabled */
        overflow: hidden;
        width: 100%;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
    }

    .ticker-inner span:not(:first-child) {
        display: none;
    }

    .logo-dot {
        animation: none;
    }

    .widget-header .dot {
        animation: none;
        opacity: 1;
    }

    .news-card,
    .special-item,
    .hero-card,
    .social-btn {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}


/* ============================================================
   7. TOUCH DEVICES  (hover: none)
   Remove lift/scale effects that feel awkward without a cursor
   ============================================================ */
@media (hover: none) {

    .news-card:hover,
    .special-item:hover,
    .hero-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .social-btn:hover {
        transform: none;
        opacity: 1;
    }

    .read-btn:hover {
        transform: none;
    }

    .ticker-inner:hover {
        animation-play-state: running;
    }

    /* Ensure minimum 44px touch targets (WCAG 2.5.5) */
    nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .read-btn {
        min-height: 44px;
    }

    .latest-item {
        min-height: 44px;
    }

    .view-more-btn {
        min-height: 44px;
    }

    .trending-item {
        min-height: 44px;
    }

    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }

    .ticker-arrows button {
        min-width: 44px;
        min-height: 44px;
    }

    /* Active state feedback for touch */
    .news-card:active,
    .latest-item:active,
    .trending-item:active {
        background: #EBF2FF;
    }

    .read-btn:active,
    .subscribe-block button:active,
    .modal .modal-btn:active {
        opacity: 0.88;
    }
}


/* ============================================================
   8. PRINT  (bonus — clean single-column print layout)
   ============================================================ */
@media print {

    .top-bar,
    .date-bar,
    .nav-wrap,
    .breaking-bar,
    .subscribe-block,
    .weather-widget,
    .trending-widget,
    footer,
    .modal-overlay,
    .read-btn,
    .ticker-arrows,
    .social-btn {
        display: none !important;
    }

    .page-wrap {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .special-grid {
        grid-template-columns: 1fr 1fr;
    }

    body {
        background: #fff;
        font-size: 12pt;
    }

    .hero-card,
    .news-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}