/*
Theme Name: The News Orbit
Theme URI: https://thenewsorbit.in
Author: Connect EdTech
Description: A modern, digital-native English news theme with a dark navy and amber palette, built for The News Orbit.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: newsorbit
*/

/* ===========================
   Design tokens - deep navy & amber
=========================== */
:root {
  --color-bg-dark: #0A1628;       /* near-black navy - header/footer */
  --color-bg-dark-alt: #101E36;
  --color-primary: #1E3A5F;       /* mid navy - accents */
  --color-amber: #FF9F1C;         /* electric amber - accent/CTA */
  --color-amber-dark: #E08600;
  --color-text: #14181f;
  --color-text-light: #5c6470;
  --color-bg: #ffffff;
  --color-bg-alt: #F4F6F9;
  --color-border: #e5e8ee;
  --font-heading: 'Manrope', -apple-system, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, Arial, sans-serif;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--color-text);
  letter-spacing: -0.3px;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===========================
   Top bar
=========================== */
.top-bar { background: var(--color-bg-dark); color: #93a0b8; font-size: 12.5px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }

/* ===========================
   Header
=========================== */
.site-header { background: #fff; padding: 20px 0 0; }
.site-branding { display: flex; align-items: center; justify-content: center; padding-bottom: 14px; }
.site-title { font-family: var(--font-heading); font-size: 38px; font-weight: 900; color: var(--color-bg-dark); margin: 0; letter-spacing: -1px; }
.site-title a { color: var(--color-bg-dark); text-decoration: none; }
.site-title a::after { content: ""; display: none; }
.custom-logo-link img { max-height: 68px; width: auto; }

.primary-nav { background: var(--color-bg-dark); }
.primary-nav .container { display: flex; justify-content: center; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.primary-nav a {
  display: block; color: #cbd5e6; padding: 14px 20px; font-size: 14px; font-weight: 700;
  text-decoration: none; position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px;
  background: var(--color-amber); transform: scaleX(0); transition: transform 0.15s;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: var(--color-bg-dark); color: #fff; border: none;
  padding: 13px 20px; width: 100%; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer;
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .primary-nav ul { display: none; flex-direction: column; width: 100%; }
  .primary-nav ul.is-open { display: flex; }
  .site-title { font-size: 28px; }
  .container { padding: 0 16px; }
}

/* ===========================
   Layout
=========================== */
.content-area { padding: 32px 0 55px; }
.layout-with-sidebar { display: grid; grid-template-columns: 2.3fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 960px) { .layout-with-sidebar { grid-template-columns: 1fr; } }

/* ===========================
   Featured post
=========================== */
.featured-post {
  position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 34px;
  aspect-ratio: 21/9; background: var(--color-bg-alt); display: block;
}
.featured-post img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .overlay-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,0) 30%, rgba(10,22,40,0.94) 100%); }
.featured-post .overlay-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.featured-post .overlay-content h2 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.featured-post .overlay-meta { font-size: 13px; color: #b7c2d6; }
@media (max-width: 700px) {
  .featured-post { aspect-ratio: 4/3; }
  .featured-post .overlay-content h2 { font-size: 22px; }
}

/* ===========================
   Category badge / pill
=========================== */
.category-badge {
  display: inline-block; background: var(--color-amber); color: var(--color-bg-dark);
  font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
}
.category-badge:hover { opacity: 0.88; text-decoration: none; }

/* ===========================
   Section heading
=========================== */
.section-heading {
  font-family: var(--font-heading); font-size: 21px; color: var(--color-bg-dark);
  display: flex; align-items: center; gap: 10px; margin: 36px 0 20px;
}
.section-heading::before { content: ""; width: 6px; height: 22px; background: var(--color-amber); border-radius: 3px; display: inline-block; }

/* ===========================
   Post grid - card style with shadow
=========================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--color-border);
  transition: box-shadow 0.15s, transform 0.15s;
}
.post-card:hover { box-shadow: 0 10px 28px rgba(10,22,40,0.1); transform: translateY(-2px); }
.post-card .thumb { display: block; aspect-ratio: 16/10; background: var(--color-bg-alt); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-body { padding: 14px 16px 18px; }
.post-card h3 { font-size: 17px; margin-bottom: 6px; }
.post-card h3 a { color: var(--color-text); }
.post-card h3 a:hover { color: var(--color-amber-dark); text-decoration: none; }
.post-card .meta { font-size: 12px; color: var(--color-text-light); }

/* ===========================
   Sidebar
=========================== */
.sidebar-widget { background: var(--color-bg-alt); border-radius: 12px; padding: 22px; margin-bottom: 22px; }
.sidebar-widget h3 {
  font-family: var(--font-heading); font-size: 16px; color: var(--color-bg-dark); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--color-amber);
}
.trending-item { display: flex; gap: 12px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--color-border); }
.trending-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.trending-num {
  font-family: var(--font-heading); font-size: 15px; font-weight: 900; color: #fff;
  background: var(--color-bg-dark); min-width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trending-item h4 { font-size: 14px; margin: 0; line-height: 1.5; font-weight: 700; }
.trending-item h4 a { color: var(--color-text); }
.trending-item h4 a:hover { color: var(--color-amber-dark); }

.newsletter-box { background: var(--color-bg-dark); color: #fff; border-radius: 12px; padding: 24px; margin-bottom: 22px; }
.newsletter-box h3 { font-family: var(--font-heading); color: #fff; font-size: 18px; margin-bottom: 8px; border: none; padding: 0; }
.newsletter-box p { font-size: 13px; color: #98a5bc; margin-bottom: 14px; }
.newsletter-box input[type="email"] { width: 100%; padding: 10px 12px; border-radius: 8px; border: none; margin-bottom: 10px; font-family: var(--font-body); }
.newsletter-box button {
  width: 100%; background: var(--color-amber); color: var(--color-bg-dark); border: none; padding: 11px;
  border-radius: 8px; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.4px;
}

/* ===========================
   Single article
=========================== */
.single-article .article-header { margin-bottom: 22px; }
.single-article h1 { font-size: 34px; color: var(--color-text); margin-bottom: 12px; line-height: 1.2; }
.article-deck { font-size: 19px; color: var(--color-text-light); line-height: 1.6; margin: 0 0 22px; font-weight: 500; }
.single-article .article-meta {
  font-size: 13px; color: var(--color-text-light); border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border); padding: 12px 0; margin-bottom: 22px;
}
.single-article .featured-image { margin-bottom: 24px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.single-article .featured-image img { width: 100%; height: 100%; object-fit: cover; }
.single-article .entry-content { font-size: 18px; line-height: 1.85; }
.single-article .entry-content p { margin: 0 0 1.3em; }
.single-article .entry-content h2 { font-size: 25px; margin-top: 1.6em; }
.single-article .entry-content blockquote {
  border-left: 4px solid var(--color-amber); margin: 1.6em 0; padding: 10px 22px;
  background: var(--color-bg-alt); border-radius: 0 10px 10px 0; font-style: italic; font-size: 19px;
}
.tags-list { margin-top: 28px; }
.tags-list a {
  display: inline-block; background: var(--color-bg-alt); color: var(--color-text);
  font-size: 12.5px; padding: 5px 14px; border-radius: 20px; margin: 0 6px 6px 0;
}

.related-posts { margin-top: 44px; padding-top: 26px; border-top: 2px solid var(--color-bg-dark); }
.related-posts h3 { font-family: var(--font-heading); font-size: 19px; color: var(--color-bg-dark); margin-bottom: 18px; }

/* ===========================
   Page header
=========================== */
.page-header { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 3px solid var(--color-bg-dark); }
.page-header h1 { font-size: 27px; color: var(--color-bg-dark); margin-bottom: 4px; }
.page-header .archive-description { color: var(--color-text-light); font-size: 15px; }

/* ===========================
   Pagination
=========================== */
.pagination-wrap { margin-top: 38px; text-align: center; }
.pagination-wrap a, .pagination-wrap span {
  display: inline-block; padding: 9px 16px; margin: 0 4px; border: 1px solid var(--color-border);
  border-radius: 20px; font-size: 14px; color: var(--color-text);
}
.pagination-wrap .current { background: var(--color-bg-dark); color: #fff; border-color: var(--color-bg-dark); }
.pagination-wrap a:hover { background: var(--color-bg-alt); text-decoration: none; }

/* ===========================
   Footer
=========================== */
.site-footer { background: var(--color-bg-dark); color: #93a0b8; margin-top: 44px; padding: 44px 0 20px; font-size: 14px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 30px; }
@media (max-width: 700px) { .footer-widgets { grid-template-columns: 1fr; } }
.footer-widgets h4 { font-family: var(--font-heading); color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-widgets a { color: #8695ad; }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets li { margin-bottom: 8px; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; text-align: center; font-size: 12.5px; color: #647089;
}

/* ===========================
   Misc
=========================== */
.search-form { display: flex; gap: 8px; margin: 20px 0; }
.search-form input[type="search"] {
  flex: 1; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 15px;
}
.search-form button {
  background: var(--color-bg-dark); color: #fff; border: none; padding: 10px 22px;
  border-radius: 8px; font-weight: 700; cursor: pointer;
}
.no-results { padding: 40px 0; text-align: center; color: var(--color-text-light); }
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 10px; z-index: 999; }
