/*
Theme Name: USA Techniques News
Theme URI: https://usatechniques.com
Author: USA Techniques
Author URI: https://usatechniques.com
Description: Custom News Portal Theme for USA Techniques News
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: usa-techniques-news
*/

/* ========= RESET & BASE ========= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1B2A6B;
  --navy-dark: #111d4e;
  --red: #C8102E;
  --red-dark: #a00d24;
  --white: #ffffff;
  --light-gray: #f4f5f7;
  --mid-gray: #e2e5ea;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --shadow: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.15);
  --font-main: 'Georgia', 'Times New Roman', serif;
  --font-ui: 'Segoe UI', Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-ui); color: var(--text-dark); background: var(--light-gray); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ========= TOP BAR ========= */
.top-bar { background: var(--navy-dark); color: #cdd5f0; font-size: 12px; padding: 6px 0; border-bottom: 2px solid var(--red); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .date-time { font-weight: 600; letter-spacing: 0.5px; }
.top-bar .social-links a { color: #cdd5f0; margin-left: 12px; font-size: 13px; transition: color 0.2s; }
.top-bar .social-links a:hover { color: var(--red); }

/* ========= BREAKING NEWS TICKER ========= */
.breaking-bar { background: var(--red); color: var(--white); display: flex; align-items: center; overflow: hidden; height: 36px; }
.breaking-label { background: var(--navy-dark); color: var(--white); font-weight: 800; font-size: 11px; letter-spacing: 1.5px; padding: 0 16px; height: 100%; display: flex; align-items: center; white-space: nowrap; text-transform: uppercase; flex-shrink: 0; }
.ticker-wrap { flex: 1; overflow: hidden; position: relative; }
.ticker-content { display: flex; animation: ticker 40s linear infinite; white-space: nowrap; }
.ticker-content span { font-size: 13px; font-weight: 500; padding: 0 40px; }
.ticker-content span::before { content: '●'; margin-right: 10px; font-size: 10px; opacity: 0.8; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ========= HEADER ========= */
.site-header { background: var(--white); border-bottom: 3px solid var(--navy); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; max-width: 1200px; margin: 0 auto; }
.site-logo img { height: 70px; width: auto; }
.site-logo a { display: flex; align-items: center; }
.header-search { display: flex; align-items: center; gap: 8px; }
.header-search form { display: flex; border: 2px solid var(--navy); border-radius: 4px; overflow: hidden; }
.header-search input { padding: 8px 14px; border: none; outline: none; font-size: 14px; width: 220px; font-family: var(--font-ui); }
.header-search button { background: var(--navy); color: var(--white); border: none; padding: 8px 16px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.header-search button:hover { background: var(--red); }

/* ========= NAVIGATION ========= */
.main-nav { background: var(--navy); position: relative; }
.main-nav .container { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: block; color: var(--white); padding: 13px 18px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.2s, color 0.2s; }
.nav-menu > li > a:hover, .nav-menu > li.current-menu-item > a { background: var(--red); color: var(--white); }
.nav-menu .sub-menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; box-shadow: var(--shadow-hover); border-top: 3px solid var(--red); display: none; z-index: 999; }
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a { display: block; padding: 10px 18px; font-size: 13px; color: var(--text-dark); border-bottom: 1px solid var(--mid-gray); transition: background 0.2s, color 0.2s; }
.nav-menu .sub-menu li a:hover { background: var(--light-gray); color: var(--red); padding-left: 24px; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; padding: 10px 16px; }

/* ========= MAIN LAYOUT ========= */
.site-main { padding: 28px 0; }
.content-area { display: grid; grid-template-columns: 1fr 320px; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ========= SECTION HEADINGS ========= */
.section-title { font-size: 18px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; padding-bottom: 10px; border-bottom: 3px solid var(--red); margin-bottom: 20px; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 50px; height: 3px; background: var(--navy); }

/* ========= FEATURED / HERO POST ========= */
.featured-section { margin-bottom: 32px; }
.featured-post { position: relative; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy-dark); }
.featured-post .post-thumbnail { width: 100%; height: 420px; object-fit: cover; opacity: 0.75; }
.featured-post .post-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(17,29,78,0.95)); padding: 32px 28px 24px; }
.featured-post .post-category { background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; display: inline-block; margin-bottom: 10px; }
.featured-post .post-title { font-family: var(--font-main); font-size: 26px; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 10px; }
.featured-post .post-title a { color: var(--white); }
.featured-post .post-title a:hover { color: #ffd0d0; }
.featured-post .post-meta { color: #b0bcd8; font-size: 12px; }
.featured-post .post-meta span { margin-right: 14px; }

/* ========= NEWS GRID ========= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.news-card { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news-card .card-thumb { width: 100%; height: 185px; object-fit: cover; }
.news-card .card-thumb-placeholder { width: 100%; height: 185px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 48px; }
.news-card .card-body { padding: 16px; }
.news-card .card-category { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 7px; }
.news-card .card-title { font-family: var(--font-main); font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--text-dark); }
.news-card .card-title a:hover { color: var(--red); }
.news-card .card-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }

/* ========= LIST NEWS ========= */
.news-list-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--mid-gray); }
.news-list-item:last-child { border-bottom: none; }
.news-list-item .list-thumb { width: 90px; height: 68px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.news-list-item .list-thumb-placeholder { width: 90px; height: 68px; background: var(--navy); border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 24px; }
.news-list-item .list-content { flex: 1; }
.news-list-item .list-category { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.news-list-item .list-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text-dark); margin-bottom: 4px; font-family: var(--font-main); }
.news-list-item .list-title a:hover { color: var(--red); }
.news-list-item .list-meta { font-size: 11px; color: var(--text-muted); }

/* ========= SIDEBAR ========= */
.widget { background: var(--white); border-radius: 6px; box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden; }
.widget-title { background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 12px 18px; border-left: 4px solid var(--red); }
.widget-body { padding: 16px 18px; }
.popular-post-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mid-gray); align-items: flex-start; }
.popular-post-item:last-child { border-bottom: none; }
.popular-post-item .pp-num { font-size: 22px; font-weight: 900; color: var(--mid-gray); line-height: 1; flex-shrink: 0; width: 28px; }
.popular-post-item .pp-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-dark); }
.popular-post-item .pp-title a:hover { color: var(--red); }
.popular-post-item .pp-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.cat-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--mid-gray); font-size: 13px; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { color: var(--text-dark); font-weight: 500; }
.cat-list li a:hover { color: var(--red); }
.cat-list li .cat-count { background: var(--navy); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.ad-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); text-align: center; padding: 28px 20px; border-radius: 6px; }
.ad-banner .ad-label { font-size: 10px; letter-spacing: 2px; opacity: 0.6; margin-bottom: 8px; }
.ad-banner .ad-text { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.ad-banner .ad-sub { font-size: 12px; opacity: 0.8; margin-bottom: 16px; }
.ad-banner .ad-btn { display: inline-block; background: var(--red); color: var(--white); padding: 10px 24px; border-radius: 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ========= SINGLE POST ========= */
.single-article { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.single-article .article-header { padding: 32px 36px 0; }
.single-article .article-category { background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 2px; display: inline-block; margin-bottom: 14px; }
.single-article .article-title { font-family: var(--font-main); font-size: 32px; font-weight: 700; line-height: 1.3; color: var(--text-dark); margin-bottom: 16px; }
.single-article .article-meta { display: flex; align-items: center; gap: 20px; color: var(--text-muted); font-size: 13px; padding-bottom: 20px; border-bottom: 2px solid var(--mid-gray); flex-wrap: wrap; }
.single-article .article-meta .author { color: var(--navy); font-weight: 600; }
.single-article .article-featured-img { width: 100%; max-height: 480px; object-fit: cover; }
.single-article .article-body { padding: 32px 36px; font-family: var(--font-main); font-size: 17px; line-height: 1.8; color: #2d2d2d; }
.single-article .article-body p { margin-bottom: 20px; }
.single-article .article-body h2 { font-size: 24px; color: var(--navy); margin: 28px 0 14px; }
.single-article .article-body h3 { font-size: 20px; color: var(--navy); margin: 24px 0 12px; }
.single-article .article-body blockquote { border-left: 4px solid var(--red); background: var(--light-gray); padding: 16px 20px; margin: 20px 0; font-style: italic; color: var(--navy); }
.single-article .article-body a { color: var(--red); text-decoration: underline; }
.article-share { padding: 20px 36px; border-top: 2px solid var(--mid-gray); display: flex; align-items: center; gap: 12px; }
.share-label { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--white); cursor: pointer; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }

/* ========= PAGINATION ========= */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 32px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; font-size: 14px; font-weight: 600; border: 2px solid var(--mid-gray); color: var(--text-dark); transition: all 0.2s; }
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ========= FOOTER ========= */
.site-footer { background: var(--navy-dark); color: #cdd5f0; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 32px; margin-bottom: 24px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.footer-col p { font-size: 13px; line-height: 1.7; opacity: 0.85; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #cdd5f0; font-size: 13px; transition: color 0.2s, padding-left 0.2s; }
.footer-col ul li a:hover { color: var(--red); padding-left: 6px; }
.footer-logo { height: 60px; width: auto; margin-bottom: 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 14px; transition: background 0.2s; }
.footer-social a:hover { background: var(--red); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: 0.7; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #cdd5f0; }
.footer-bottom a:hover { color: var(--red); }

/* ========= ARCHIVE PAGE ========= */
.archive-header { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: var(--white); padding: 30px 36px; border-radius: 8px 8px 0 0; }
.archive-header h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.archive-header p { font-size: 13px; opacity: 0.85; }
.archive-grid { background: var(--white); padding: 28px; border-radius: 0 6px 6px; box-shadow: var(--shadow); }

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search input { width: 140px; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; width: 100%; flex-direction: column; }
  .nav-menu.active { display: flex; }
  .nav-menu > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .featured-post .post-thumbnail { height: 280px; }
  .featured-post .post-title { font-size: 20px; }
  .single-article .article-header { padding: 20px 20px 0; }
  .single-article .article-body { padding: 20px; }
  .article-share { padding: 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 8px; }
  .header-search { display: none; }
}