/*
Theme Name: NewsHub Professional
Author: Yogesh Sharma
Version: 3.2
Description: Professional Modern News Portal - Optimized Layout & UI
*/

/* ===============================
   Global
================================ */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f7fa;
  color: #1f2937;
}

a {
  transition: all 0.25s ease;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ===============================
   HEADER / NAVIGATION
================================ */

.main-navbar {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  z-index: 999;
}

.header-spacer {
  height: 90px;
}

/* Logo */
.custom-logo {
  max-height: 55px;
  width: auto;
}

/* Menu */
.main-menu .menu-item {
  margin-left: 28px;
}

.main-menu .menu-item > a {
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  padding: 6px 0;
  position: relative;
  transition: all 0.3s ease;
}

.main-menu .menu-item > a:hover {
  color: #2563eb;
}

/* Active state */
.main-menu .current-menu-item > a,
.main-menu .current-menu-parent > a,
.main-menu .current-category-ancestor > a {
  color: #2563eb;
  font-weight: 600;
}

/* Animated underline */
.main-menu .menu-item > a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: 0.3s ease;
}

.main-menu .menu-item:hover > a::after,
.main-menu .current-menu-item > a::after {
  width: 100%;
}

/* Mobile toggle */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Sticky shrink effect */
.main-navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* ===============================
   Hero Section
================================ */

.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
}

/* ===============================
   Cards
================================ */

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.1);
}

.card img {
  transition: 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* ===============================
   Sidebar
================================ */

.sidebar-section {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
}

.sidebar-section ul li {
  margin-bottom: 12px;
}

.sidebar-section ul li a {
  color: #374151;
  font-weight: 500;
}

.sidebar-section ul li a:hover {
  color: #2563eb;
}

/* ===============================
   Page Content
================================ */

.page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 35px;
  margin-bottom: 15px;
  border-left: 4px solid #2563eb;
  padding-left: 12px;
}

.page p {
  line-height: 1.8;
  color: #4b5563;
}

.page hr {
  margin: 30px 0;
  opacity: 0.08;
}

/* ===============================
   Page Hero
================================ */

.page-hero {
  position: relative;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
}

.page-section {
  background: #eef2f7;
  padding: 60px 0;
}

.content-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  padding: 40px;
}

/* ===============================
   Footer
================================ */

.site-footer {
  background: #0b1c2d;
  color: #cfd6e4;
  padding: 70px 0 30px;
}

.site-footer a {
  color: #9aa7bd;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 16px;
}

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

.footer-menu a {
  font-size: 14px;
}

.footer-tags a {
  display: inline-block;
  margin: 5px 6px 0 0;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 12px;
  transition: 0.3s ease;
}

.footer-tags a:hover {
  background: #2563eb;
  color: #fff;
}

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-logo-img {
  max-width: 240px;
  height: auto;
}

.footer-divider {
  border-color: rgba(255,255,255,0.08);
}

.footer-copy {
  font-size: 13px;
  color: #94a3b8;
}

.social-icon {
  font-size: 14px;
  margin-left: 15px;
}

.social-icon:hover {
  color: #2563eb;
}