/*
Theme Name: Daily News Pro
Theme URI: https://example.com/daily-news-pro
Author: Custom Theme
Author URI: https://example.com
Description: A bold, high-contrast news-magazine WordPress theme inspired by modern American newspaper sites. Features a breaking-news ticker, a red masthead, a sticky category navigation bar, and a card-based homepage grid for top stories, sports, and lifestyle content.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daily-news-pro
Tags: news, magazine, blog, grid-layout, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, sticky-post, threaded-comments
*/

/* =========================================================
   RESET & BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --brand-red: #cc0000;
  --brand-dark: #101010;
  --brand-blue: #0057b8;
  --text-dark: #1a1a1a;
  --text-gray: #555555;
  --border-light: #e2e2e2;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  --font-head: Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
}

body{
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; }

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   BREAKING NEWS TICKER
   ========================================================= */
.breaking-bar{
  background: var(--brand-dark);
  color: var(--white);
  font-size: 13px;
  padding: 6px 0;
  overflow: hidden;
}
.breaking-bar .container{
  display: flex;
  align-items: center;
  gap: 12px;
}
.breaking-label{
  background: var(--brand-red);
  padding: 3px 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .05em;
  white-space: nowrap;
}
.breaking-text{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   MASTHEAD
   ========================================================= */
.site-header{
  border-bottom: 4px solid var(--brand-red);
  padding: 18px 0 12px;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-title{
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 42px;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.site-title span{ color: var(--brand-red); }
.site-description{
  font-size: 12px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.header-meta{
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-gray);
}
.header-search input[type="search"]{
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  font-size: 13px;
  width: 200px;
}
.header-search button{
  background: var(--brand-red);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

/* =========================================================
   PRIMARY NAV
   ========================================================= */
.main-navigation{
  background: var(--brand-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-navigation ul{
  display: flex;
  flex-wrap: wrap;
}
.main-navigation li{ position: relative; }
.main-navigation a{
  display: block;
  padding: 12px 16px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.main-navigation a:hover{
  background: var(--brand-red);
  text-decoration: none;
}
.main-navigation .current-menu-item > a{
  background: var(--brand-red);
}
.menu-toggle{ display: none; }

/* =========================================================
   HOMEPAGE HERO + GRID
   ========================================================= */
.home-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin: 28px 0;
}

.hero-story{ position: relative; }
.hero-story .story-thumb{ position: relative; }
.hero-story img{ width: 100%; height: 420px; object-fit: cover; }
.hero-story .kicker{
  color: var(--brand-red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .06em;
  margin: 14px 0 8px;
  display: block;
}
.hero-story h1, .hero-story h2{
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero-story p.excerpt{
  color: var(--text-gray);
  font-size: 15px;
}

.side-stories{ display: flex; flex-direction: column; gap: 18px; }
.side-stories .story-card{
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}
.side-stories .story-card img{
  width: 110px; height: 80px; object-fit: cover; flex-shrink: 0;
}
.side-stories .kicker{
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.side-stories h3{
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.25;
}

/* Section: card grid for category blocks */
.section-heading{
  border-bottom: 3px solid var(--brand-dark);
  margin: 36px 0 18px;
  padding-bottom: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-heading h2{
  font-family: var(--font-head);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.section-heading a{
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.story-card.grid-card img{ width: 100%; height: 150px; object-fit: cover; }
.story-card.grid-card h3{
  font-family: var(--font-head);
  font-size: 17px;
  margin: 10px 0 6px;
  line-height: 1.25;
}
.story-card.grid-card .kicker{
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.story-meta{
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 4px;
}

/* =========================================================
   CONTENT LAYOUT (single/page/archive)
   ========================================================= */
.content-area{
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 36px;
  margin: 32px 0;
}

article.single-post h1.entry-title{
  font-family: var(--font-head);
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.entry-meta{
  font-size: 13px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.entry-meta .author{ font-weight: 700; color: var(--text-dark); }
.entry-content{ font-size: 17px; line-height: 1.7; }
.entry-content p{ margin-bottom: 18px; }
.entry-content h2{ font-family: var(--font-head); font-size: 24px; margin: 28px 0 12px; }
.entry-content img{ margin: 20px 0; }
.entry-content blockquote{
  border-left: 4px solid var(--brand-red);
  padding-left: 18px;
  font-style: italic;
  color: var(--text-gray);
  margin: 20px 0;
}

/* Archive list */
.archive-list .story-card{
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}
.archive-list img{ width: 220px; height: 140px; object-fit: cover; flex-shrink: 0; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.widget{
  margin-bottom: 34px;
}
.widget-title{
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 16px;
  border-bottom: 3px solid var(--brand-red);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.widget ul li{
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.widget_ad-banner{
  background: var(--bg-light);
  text-align: center;
  padding: 40px 10px;
  color: var(--text-gray);
  font-size: 12px;
  text-transform: uppercase;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--brand-dark);
  color: var(--white);
  margin-top: 50px;
  padding: 40px 0 20px;
}
.footer-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.footer-grid h4{
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--brand-red);
}
.footer-grid li{ padding: 4px 0; font-size: 13px; color: #cccccc; }
.site-footer .footer-bottom{
  border-top: 1px solid #333;
  padding-top: 16px;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* =========================================================
   PAGINATION / COMMENTS / MISC
   ========================================================= */
.pagination{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 30px 0;
}
.pagination a, .pagination span{
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 700;
}
.pagination .current{
  background: var(--brand-red);
  color: var(--white);
  border-color: var(--brand-red);
}

.comments-area{ margin-top: 40px; border-top: 3px solid var(--brand-dark); padding-top: 20px; }
.comment-list li{ padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.comment-form input, .comment-form textarea{
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.comment-form button{
  background: var(--brand-red);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  .home-grid, .content-area{ grid-template-columns: 1fr; }
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: repeat(2, 1fr); }
  .site-title{ font-size: 30px; }
  .main-navigation ul{ flex-direction: column; display: none; }
  .main-navigation.toggled ul{ display: flex; }
  .menu-toggle{
    display: block;
    background: none;
    border: none;
    color: var(--white);
    padding: 12px 16px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .archive-list img{ width: 140px; height: 100px; }
}
@media (max-width: 600px){
  .card-grid{ grid-template-columns: 1fr; }
  .header-inner{ flex-direction: column; align-items: flex-start; gap: 10px; }
}
