/*
Theme Name: Yojana360
Theme URI: https://yojana360.com
Author: Yojana360 Team
Author URI: https://yojana360.com
Description: A blazing-fast, AMP-compatible WordPress theme for Sarkari Yojana (Government Schemes) blog. Built with Accelerated Mobile Pages support, custom Schema markup, LLM-optimized structure, ad slots, and SEO-first architecture.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yojana360
Tags: amp, government, blog, seo, fast-loading, mobile-responsive, schema-markup, hindi

/* =====================================================
   YOJANA360 — BASE VARIABLES & RESET
   Color Palette:
   --saffron:    #FF6B00  (primary - India saffron energy)
   --navy:       #0A2240  (deep gov trust navy)
   --emerald:    #1A7A4A  (growth / success green)
   --cream:      #FFF8F0  (warm background)
   --slate:      #4A5568  (body text)
   --light-gray: #F3F4F6  (card backgrounds)
   --white:      #FFFFFF
===================================================== */

:root {
  --saffron: #FF6B00;
  --saffron-light: #FF8C33;
  --saffron-pale: #FFF0E6;
  --navy: #0A2240;
  --navy-mid: #1A3A5C;
  --emerald: #1A7A4A;
  --emerald-light: #22A05F;
  --cream: #FFF8F0;
  --slate: #4A5568;
  --slate-dark: #2D3748;
  --light-gray: #F3F4F6;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --radius: 8px;
  --radius-lg: 14px;
  --font-display: 'Noto Sans', 'Hind', 'Mukta', sans-serif;
  --font-body: 'Noto Sans', 'Hind', sans-serif;
  --font-ui: system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--slate-dark);
  line-height: 1.7;
  min-height: 100vh;
}

img, video, amp-img, amp-video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--saffron); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 3px; }

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1.1em; }

/* =====================================================
   LAYOUT CONTAINERS
===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}
.grid-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .grid-main { grid-template-columns: 1fr; }
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(10,34,64,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 62px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-360 { color: var(--saffron); }

/* Top utility bar */
.top-bar {
  background: var(--saffron);
  padding: 5px 16px;
  font-size: 0.78rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--white); font-weight: 600; }
.top-bar-scroll { overflow: hidden; white-space: nowrap; flex: 1; margin: 0 16px; }
.top-bar-marquee { display: inline-block; animation: marquee 28s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,0.88);
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover, .site-nav a.current { background: rgba(255,255,255,0.12); color: var(--white); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
}
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--navy); padding: 12px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* =====================================================
   HERO / FEATURED SECTION
===================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1A4A7A 100%);
  padding: 36px 16px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 20 L55 40 L30 55 L5 40 L5 20Z' fill='none' stroke='%23FF6B00' stroke-width='0.4' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,107,0,0.2);
  border: 1px solid rgba(255,107,0,0.4);
  color: var(--saffron-light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-title { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 10px; }
.hero-title span { color: var(--saffron); }
.hero-desc { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 520px; margin-bottom: 24px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
}
.hero-cta:hover { background: var(--saffron-light); color: var(--white); transform: translateY(-1px); }

/* =====================================================
   CATEGORY TABS (YOJANA CATEGORIES)
===================================================== */
.category-tabs {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.category-tabs-inner {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  white-space: nowrap;
}
.cat-tab {
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-tab:hover, .cat-tab.active { color: var(--saffron); border-bottom-color: var(--saffron); }

/* =====================================================
   AD SLOTS
===================================================== */
.ad-slot {
  background: var(--light-gray);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}
.ad-slot-leaderboard { min-height: 90px; }
.ad-slot-banner { min-height: 250px; }
.ad-slot-inline { min-height: 200px; margin: 24px 0; }
.ad-slot-sidebar { min-height: 250px; margin-bottom: 20px; }
.ad-container { margin: 20px 0; }

/* AMP-specific ad */
amp-ad { display: block; }

/* =====================================================
   POST CARDS
===================================================== */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.15s;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--light-gray);
}
.post-card-thumb img, .post-card-thumb amp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-body { padding: 16px; }
.post-card-cat {
  display: inline-block;
  background: var(--saffron-pale);
  color: var(--saffron);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #9CA3AF;
}
.post-card-meta span { display: flex; align-items: center; gap: 4px; }

/* Featured Card */
.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}
@media (max-width: 640px) { .post-card-featured { grid-template-columns: 1fr; } }
.post-card-featured .post-card-thumb { aspect-ratio: auto; min-height: 240px; }
.post-card-featured .post-card-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.post-card-featured .post-card-title { font-size: 1.25rem; -webkit-line-clamp: 3; }
.post-card-featured .post-card-excerpt {
  font-size: 0.9rem;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--saffron);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  align-self: flex-start;
  transition: background 0.2s;
}
.read-more-btn:hover { background: var(--navy); color: var(--white); }

/* =====================================================
   SECTION HEADERS
===================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--saffron);
  border-radius: 4px;
  flex-shrink: 0;
}
.view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--saffron);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--saffron-pale);
  display: flex;
  align-items: center;
  gap: 8px;
}
.popular-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
}
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post-thumb {
  width: 68px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light-gray);
}
.popular-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-post-date { font-size: 0.75rem; color: #9CA3AF; margin-top: 4px; }

/* Category list widget */
.cat-list { list-style: none; }
.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: var(--slate-dark); font-weight: 500; }
.cat-list a:hover { color: var(--saffron); }
.cat-count {
  background: var(--saffron-pale);
  color: var(--saffron);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* =====================================================
   SINGLE POST / ARTICLE
===================================================== */
.single-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.article-hero-img {
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--light-gray);
}
.article-hero-img img, .article-hero-img amp-img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 28px; }

.article-header { margin-bottom: 24px; }
.article-cat-badge {
  display: inline-block;
  background: var(--saffron);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.article-title { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 14px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #9CA3AF;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* Article content styles */
.article-content { font-size: 1rem; line-height: 1.85; }
.article-content h2 { font-size: 1.4rem; margin: 1.6em 0 0.6em; color: var(--navy); padding-left: 12px; border-left: 3px solid var(--saffron); }
.article-content h3 { font-size: 1.15rem; margin: 1.3em 0 0.5em; color: var(--navy-mid); }
.article-content p { margin-bottom: 1.1em; color: var(--slate); }
.article-content ul, .article-content ol { margin: 0.8em 0 1.2em 1.4em; }
.article-content li { margin-bottom: 0.5em; color: var(--slate); }
.article-content strong { color: var(--navy); font-weight: 700; }
.article-content blockquote {
  background: var(--saffron-pale);
  border-left: 4px solid var(--saffron);
  padding: 16px 20px;
  margin: 1.5em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy-mid);
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9rem; overflow-x: auto; display: block; }
.article-content table th { background: var(--navy); color: var(--white); padding: 10px 14px; text-align: left; font-size: 0.85rem; }
.article-content table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.article-content table tr:nth-child(even) td { background: var(--light-gray); }

/* Info Box (Yojana details highlight) */
.yojana-info-box {
  background: linear-gradient(135deg, #EBF8FF 0%, #E6FFFA 100%);
  border: 1px solid #90CDF4;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
}
.yojana-info-box h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: 12px; }
.yojana-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .yojana-info-grid { grid-template-columns: 1fr; } }
.info-item label { font-size: 0.78rem; color: #718096; font-weight: 600; display: block; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.info-item span { font-size: 0.92rem; color: var(--navy); font-weight: 600; }

/* Apply Now Button */
.apply-cta-box {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
  margin: 24px 0;
}
.apply-cta-box p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 12px; }
.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--emerald);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.1s, box-shadow 0.2s;
}
.apply-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); color: var(--emerald); }

/* Table of Contents */
.toc-box {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 24px 0;
}
.toc-title { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.toc-list { list-style: none; counter-reset: toc; }
.toc-list li { counter-increment: toc; padding: 5px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.toc-list li:last-child { border-bottom: none; }
.toc-list li::before { content: counter(toc); background: var(--saffron); color: var(--white); width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toc-list a { font-size: 0.88rem; color: var(--slate-dark); font-weight: 500; }
.toc-list a:hover { color: var(--saffron); }

/* Social Share */
.social-share { margin: 28px 0; }
.social-share-title { font-size: 0.85rem; color: #9CA3AF; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  transition: opacity 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); color: var(--white); }
.share-btn.whatsapp { background: #25D366; }
.share-btn.telegram { background: #0088CC; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }
.share-btn.copy-link { background: var(--slate); }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag-item {
  background: var(--light-gray);
  color: var(--slate);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.tag-item:hover { background: var(--saffron-pale); color: var(--saffron); }

/* =====================================================
   BREADCRUMBS
===================================================== */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.82rem;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumbs a { color: var(--saffron); }
.breadcrumbs .sep { color: #D1D5DB; }

/* =====================================================
   POPUP NOTIFICATION / PUSH
===================================================== */
#push-notification-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: min(340px, calc(100vw - 40px));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  z-index: 9999;
  padding: 20px;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  pointer-events: none;
}
#push-notification-popup.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.popup-icon { font-size: 2rem; margin-bottom: 10px; }
.popup-title { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.popup-desc { font-size: 0.85rem; color: var(--slate); margin-bottom: 16px; line-height: 1.5; }
.popup-actions { display: flex; gap: 10px; }
.popup-allow {
  flex: 1;
  background: var(--saffron);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}
.popup-allow:hover { background: var(--saffron-light); }
.popup-deny {
  padding: 10px 14px;
  background: var(--light-gray);
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--slate);
  cursor: pointer;
  font-weight: 600;
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  font-size: 1.1rem;
  line-height: 1;
}
#push-bell-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: var(--saffron);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,107,0,0.4);
  cursor: pointer;
  z-index: 9998;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  transition: transform 0.15s, box-shadow 0.2s;
}
#push-bell-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(255,107,0,0.5); }
.bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: var(--emerald);
  border-radius: 50%;
  border: 2px solid var(--white);
  font-size: 0.55rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Cookie Consent */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform 0.4s;
}
#cookie-consent.show { transform: translateY(0); }
#cookie-consent p { flex: 1; min-width: 200px; color: rgba(255,255,255,0.85); }
#cookie-consent a { color: var(--saffron-light); }
.cookie-accept {
  background: var(--saffron);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9997;
  border: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: background 0.2s, transform 0.1s;
}
#back-to-top.visible { display: flex; }
#back-to-top:hover { background: var(--saffron); transform: translateY(-2px); }

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  margin-top: 48px;
}
.footer-top {
  padding: 40px 16px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: background 0.2s;
}
.social-icon:hover { background: var(--saffron); color: var(--white); }
.footer-col-title { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links a:hover { color: var(--saffron); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }

/* =====================================================
   PAGINATION
===================================================== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 32px 0 16px; }
.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.page-btn:hover, .page-btn.active { background: var(--saffron); color: var(--white); border-color: var(--saffron); }

/* =====================================================
   SEARCH
===================================================== */
.search-bar {
  position: relative;
  margin: 0 0 20px;
}
.search-bar input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--saffron); }
.search-bar button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--saffron);
  font-size: 1.1rem;
  cursor: pointer;
}

/* =====================================================
   AMP-SPECIFIC OVERRIDES
===================================================== */
.amp-only { display: none; }
.no-amp { display: block; }
html.amp .amp-only { display: block; }
html.amp .no-amp { display: none; }

amp-sidebar {
  background: var(--navy);
  width: 280px;
  padding: 20px;
}

/* =====================================================
   UTILITIES
===================================================== */
.section-gap { margin-bottom: 36px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 8px; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =====================================================
   PRINT STYLES
===================================================== */
@media print {
  .site-header, .sidebar, .ad-slot, #push-notification-popup, #push-bell-fab, #back-to-top, .site-footer { display: none; }
  .grid-main { grid-template-columns: 1fr; }
  .article-body { padding: 0; }
  body { background: #fff; }
}

/* =====================================================
   REDUCED MOTION
===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
