/* ==========================================================================
   THE GREY LENS HINDI (hindi.thegreylens.com)
   Premium Light Mode Magazine Design System
   Clean, Crisp, Vibrant & Readable
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #FAF8F5;
  --bg-pure: #FFFFFF;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --heading: #0F172A;
  --text: #1E293B;
  --text-muted: #64748B;
  --gold: #D97706;
  --gold-bright: #F59E0B;
  --gold-deep: #B45309;
  --gold-pale: #FFFBEB;
  --crimson: #DC2626;
  --sapphire: #2563EB;
  --emerald: #059669;
  --violet: #7C3AED;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-hindi: 'Noto Sans Devanagari', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-hindi);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gold-deep);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

/* Top Bar */
.header-top-bar {
  background: #0F172A;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0;
  font-size: 12px;
  color: #94A3B8;
  font-family: var(--font-sans);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subdomain-badge {
  background: var(--gold);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Header & Sticky Nav */
#mainNav {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  gap: 16px;
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 16px;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--heading);
}

.nav-name-accent {
  color: var(--gold);
}

.hindi-pill {
  font-family: var(--font-hindi);
  font-size: 11px;
  font-weight: 800;
  background: var(--gold-pale);
  color: var(--gold-deep);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(217, 119, 6, 0.3);
  margin-left: 6px;
  vertical-align: middle;
}

.nav-tagline {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--heading);
  background: var(--border-subtle);
}

.nav-links a.active {
  color: var(--gold-deep);
  font-weight: 700;
}

/* Breaking Ticker Bar */
.ticker-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  padding-left: 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Hero Section */
.magazine-hero {
  padding: 36px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 28px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.featured-main-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 480px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-main-card:hover .featured-img {
  transform: scale(1.04);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cat-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold-deep);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.cat-badge.cat-tech { background: #EFF6FF; color: #1D4ED8; border-color: rgba(29, 78, 216, 0.3); }
.cat-badge.cat-psychology { background: #F5F3FF; color: #6D28D9; border-color: rgba(109, 40, 217, 0.3); }
.cat-badge.cat-knowledge { background: #FFFBEB; color: #B45309; border-color: rgba(180, 83, 9, 0.3); }
.cat-badge.cat-govt { background: #ECFDF5; color: #047857; border-color: rgba(4, 120, 87, 0.3); }
.cat-badge.cat-news { background: #FEF2F2; color: #B91C1C; border-color: rgba(185, 28, 28, 0.3); }

.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.side-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.side-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.side-card-img {
  width: 115px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.side-card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 6px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Grid & Articles */
.content-layout-with-sidebar {
  display: grid;
  grid-template-columns: 2.8fr 1.2fr;
  gap: 40px;
  padding: 32px 0 64px;
}

@media (max-width: 960px) {
  .content-layout-with-sidebar {
    grid-template-columns: 1fr;
  }
}

.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-label {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  position: relative;
  padding-left: 14px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.article-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #E2E8F0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 10px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar & E-E-A-T Cards */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

.author-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.author-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.author-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--heading);
}

.author-role {
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 600;
}

.author-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Policy Pages Layout */
.page-hero {
  background: #0F172A;
  padding: 56px 28px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-hero p {
  color: #94A3B8;
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-content-box {
  max-width: 820px;
  margin: 40px auto 80px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.legal-content-box h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-content-box p, .legal-content-box ul {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-content-box ul {
  padding-left: 20px;
}

/* Footer - Clean 100% Main Site Aligned */
footer {
  background: #0F172A;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 64px;
  color: #F8FAFC;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 550px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-logo-img {
  height: 64px;
  width: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 16px;
  object-fit: contain;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links-list a {
  color: #94A3B8;
  font-size: 13.5px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  color: #94A3B8;
  font-size: 12px;
}
