/*
Theme Name: Jalandhari
Theme URI: https://jalandhari.com
Author: Jalandhari.Com
Author URI: https://jalandhari.com
Description: The official theme for Jalandhari.Com — Online Hangout of Jalandharies. Community news, culture, and local life in Jalandhar, Punjab.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jalandhari
Tags: community, news, blog, custom-colors, custom-logo, featured-images, sticky-post, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors — saffron/wheat of Punjab fields + deep teal of the Beas river */
  --clr-saffron:     #E8670A;
  --clr-saffron-lt:  #F5A045;
  --clr-saffron-dk:  #B34D00;
  --clr-teal:        #0A6E6E;
  --clr-teal-lt:     #0D9B8A;
  --clr-teal-dk:     #064D4D;
  --clr-gold:        #D4A017;
  --clr-gold-lt:     #F0C740;

  --clr-bg:          #FAFAF7;
  --clr-bg-warm:     #FFF8F0;
  --clr-surface:     #FFFFFF;
  --clr-surface-2:   #F5F2EC;
  --clr-border:      #E8E2D8;
  --clr-border-lt:   #F0EDE6;

  --clr-text:        #1A1208;
  --clr-text-2:      #4A3F2F;
  --clr-text-3:      #8A7A68;
  --clr-text-inv:    #FAFAF7;

  --clr-news:        #C0392B;
  --clr-community:   #27AE60;
  --clr-history:     #8E44AD;
  --clr-food:        #E67E22;

  /* Typography */
  --font-display:    'Playfair Display', 'Georgia', serif;
  --font-headline:   'Poppins', 'Helvetica Neue', sans-serif;
  --font-body:       'Lato', 'Helvetica Neue', sans-serif;
  --font-punjabi:    'Noto Sans Gurmukhi', sans-serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --shadow-card:0 2px 8px rgba(26,18,8,.08), 0 0 0 1px rgba(232,226,216,.5);

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   150ms;
  --dur-base:   250ms;
  --dur-slow:   400ms;

  /* Layout */
  --max-w:      1200px;
  --sidebar-w:  300px;
  --header-h:   64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-teal); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--clr-saffron); }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.25; color: var(--clr-text); }

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.grid-main {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 960px) {
  .grid-main { grid-template-columns: 1fr; }
  :root { --sidebar-w: 100%; }
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker {
  background: var(--clr-saffron);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  height: 36px;
  font-size: 0.82rem;
  font-family: var(--font-headline);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ticker-label {
  background: var(--clr-saffron-dk);
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.ticker-label::after {
  content: '';
  position: absolute;
  right: -8px;
  border-left: 8px solid var(--clr-saffron-dk);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}
.ticker-label { position: relative; }

.ticker-track {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: var(--space-xl);
}

.ticker-inner {
  display: flex;
  gap: var(--space-3xl);
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-inner a { color: #fff; }
.ticker-inner a:hover { color: var(--clr-gold-lt); }
.ticker-item::before { content: '◆ '; color: var(--clr-gold-lt); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-lg);
}

.site-branding { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }

.site-logo-img { height: 40px; width: auto; }

.site-title-wrap { line-height: 1.1; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.02em;
}
.site-title span { color: var(--clr-saffron); }

.site-tagline {
  font-size: 0.7rem;
  color: var(--clr-text-3);
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-md); }

.btn-weather {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-family: var(--font-headline);
  color: var(--clr-text-2);
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.btn-weather:hover { border-color: var(--clr-teal); color: var(--clr-teal); }
.btn-weather .weather-icon { font-size: 1.1rem; }

.btn-submit-post {
  background: var(--clr-saffron);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-family: var(--font-headline);
  font-weight: 600;
  transition: background var(--dur-fast), transform var(--dur-fast);
  white-space: nowrap;
}
.btn-submit-post:hover { background: var(--clr-saffron-dk); transform: translateY(-1px); color: #fff; }

.menu-toggle {
  display: none;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
}
.menu-toggle:hover { background: var(--clr-surface-2); }

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.nav-bar {
  background: var(--clr-teal);
  position: relative;
  z-index: 99;
}

.primary-nav { display: flex; align-items: center; }

.primary-nav > li { position: relative; }

.primary-nav > li > a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
  letter-spacing: 0.01em;
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}
.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a,
.primary-nav > li.current-menu-ancestor > a {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.primary-nav .has-dropdown > a::after {
  content: '▾';
  font-size: 0.7em;
  margin-left: 0.2em;
  opacity: 0.7;
}

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur-base) var(--ease-out);
  z-index: 200;
  overflow: hidden;
}

.primary-nav > li:hover > .sub-menu,
.primary-nav > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--clr-text-2);
  font-size: 0.85rem;
  font-family: var(--font-headline);
  font-weight: 400;
  border-bottom: 1px solid var(--clr-border-lt);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.primary-nav .sub-menu li:last-child a { border-bottom: none; }
.primary-nav .sub-menu li a:hover { background: var(--clr-bg-warm); color: var(--clr-saffron); }

/* Mobile nav */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav-bar { display: none; }
  .nav-bar.open { display: block; }
  .primary-nav { flex-direction: column; align-items: stretch; }
  .primary-nav > li > a { padding: 0.8rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .primary-nav .sub-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    border: none; border-radius: 0;
    background: rgba(0,0,0,0.15);
    display: none;
  }
  .primary-nav .sub-menu.open { display: block; }
  .primary-nav .sub-menu li a { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.08); padding-left: 2rem; }
}

/* ============================================================
   HERO / FEATURED SLIDER
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--clr-teal-dk);
}

.hero-slider { position: relative; height: 480px; }
@media (max-width: 768px) { .hero-slider { height: 320px; } }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,20,0.92) 0%, rgba(10,25,20,0.4) 50%, transparent 100%);
}

.hero-slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-2xl) var(--space-xl);
  max-width: 700px;
}

.hero-cat-badge {
  display: inline-block;
  background: var(--clr-saffron);
  color: #fff;
  font-size: 0.7rem;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-headline);
}

.hero-nav {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-xl);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  transition: all var(--dur-base);
  cursor: pointer;
}
.hero-dot.active { background: var(--clr-saffron); width: 24px; border-radius: 4px; }

/* Hero prev/next arrows */
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background var(--dur-fast);
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); color: #fff; }
.hero-arrow.prev { left: var(--space-md); }
.hero-arrow.next { right: var(--space-md); }

/* ============================================================
   WEATHER WIDGET STRIP
   ============================================================ */
.weather-strip {
  background: linear-gradient(135deg, var(--clr-teal) 0%, var(--clr-teal-lt) 100%);
  color: #fff;
  padding: var(--space-sm) 0;
}
.weather-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.weather-main {
  display: flex; align-items: center; gap: var(--space-md);
  font-family: var(--font-headline);
}
.weather-temp {
  font-size: 2rem; font-weight: 700; line-height: 1;
}
.weather-desc { font-size: 0.85rem; opacity: 0.9; }
.weather-location { font-size: 0.75rem; opacity: 0.7; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.weather-icon-lg { font-size: 2.5rem; }
.weather-extras {
  display: flex; gap: var(--space-lg);
  font-size: 0.8rem; opacity: 0.85; font-family: var(--font-headline);
}
.weather-extra-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.weather-extra-item span:first-child { opacity: 0.7; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.weather-extra-item strong { font-size: 0.9rem; }
.weather-updated { font-size: 0.7rem; opacity: 0.6; font-family: var(--font-headline); }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.site-main { padding: var(--space-2xl) 0; }

/* ============================================================
   POST CARDS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.posts-grid.list-view { grid-template-columns: 1fr; }
.posts-grid.list-view .post-card { display: flex; gap: var(--space-lg); }
.posts-grid.list-view .post-thumb { width: 220px; flex-shrink: 0; aspect-ratio: 4/3; height: auto; }

@media (max-width: 600px) {
  .posts-grid.list-view .post-card { flex-direction: column; }
  .posts-grid.list-view .post-thumb { width: 100%; }
}

.post-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-surface-2);
  position: relative;
}
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.post-card:hover .post-thumb img { transform: scale(1.05); }

.post-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--clr-surface-2), var(--clr-border));
}

.post-cat-badge {
  position: absolute;
  top: var(--space-sm); left: var(--space-sm);
  background: var(--clr-saffron);
  color: #fff;
  font-size: 0.68rem;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.post-body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; gap: var(--space-sm); }

.post-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-text);
  transition: color var(--dur-fast);
}
.post-title a:hover { color: var(--clr-saffron); }

.post-excerpt {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: var(--clr-text-3);
  font-family: var(--font-headline);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--clr-border-lt);
}
.post-meta-item { display: flex; align-items: center; gap: 0.25em; }
.post-meta svg { width: 13px; height: 13px; }

/* Featured post (first on page) */
.post-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card.featured .post-thumb {
  width: 55%;
  aspect-ratio: auto;
  height: 340px;
  flex-shrink: 0;
}
.post-card.featured .post-body { padding: var(--space-2xl); justify-content: center; }
.post-card.featured .post-title { font-size: 1.6rem; }
.post-card.featured .post-excerpt { -webkit-line-clamp: 5; }

@media (max-width: 768px) {
  .post-card.featured { flex-direction: column; }
  .post-card.featured .post-thumb { width: 100%; height: 220px; }
}

/* Community/visitor post indicator */
.post-card.community-post .post-thumb-placeholder { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.badge-community {
  background: var(--clr-community);
  color: #fff;
  font-size: 0.65rem;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.2em;
  background: var(--clr-saffron);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-link {
  font-size: 0.82rem;
  font-family: var(--font-headline);
  font-weight: 600;
  color: var(--clr-teal);
  display: flex; align-items: center; gap: 0.25em;
  white-space: nowrap;
}
.section-link:hover { color: var(--clr-saffron); }

/* ============================================================
   VIEW TOGGLE
   ============================================================ */
.view-toggle { display: flex; gap: var(--space-xs); }
.view-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-3);
  font-size: 0.9rem;
  transition: all var(--dur-fast);
  background: var(--clr-surface);
}
.view-btn.active, .view-btn:hover { background: var(--clr-teal); color: #fff; border-color: var(--clr-teal); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: var(--space-xl); }

.widget {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-family: var(--font-headline);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-inv);
  background: var(--clr-teal);
  padding: 0.7rem 1rem;
}

.widget-body { padding: var(--space-md); }

/* News links widget */
.news-source-list li { border-bottom: 1px solid var(--clr-border-lt); }
.news-source-list li:last-child { border-bottom: none; }
.news-source-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  font-family: var(--font-headline);
  color: var(--clr-text-2);
  transition: color var(--dur-fast);
}
.news-source-list a:hover { color: var(--clr-saffron); }
.news-source-list a::after { content: '→'; color: var(--clr-text-3); font-size: 0.8em; }

/* Category widget */
.cat-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-headline);
  color: var(--clr-text-2);
  transition: all var(--dur-fast);
}
.cat-link:hover { background: var(--clr-bg-warm); color: var(--clr-saffron); }
.cat-count {
  background: var(--clr-surface-2);
  color: var(--clr-text-3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

/* ============================================================
   SUBMIT POST PANEL
   ============================================================ */
.submit-panel {
  background: linear-gradient(135deg, var(--clr-teal-dk) 0%, var(--clr-teal) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: #fff;
  text-align: center;
}
.submit-panel-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.submit-panel h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.submit-panel p { font-size: 0.85rem; opacity: 0.85; margin-bottom: var(--space-lg); line-height: 1.6; }
.submit-panel .btn-cta {
  display: inline-block;
  background: var(--clr-saffron);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.submit-panel .btn-cta:hover { background: var(--clr-saffron-lt); transform: translateY(-2px); color: #fff; }

/* ============================================================
   COMMUNITY FEED (social-style)
   ============================================================ */
.community-feed { display: flex; flex-direction: column; gap: var(--space-md); }

.community-post-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: box-shadow var(--dur-fast);
}
.community-post-card:hover { box-shadow: var(--shadow-md); }

.cp-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }

.cp-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-saffron-lt), var(--clr-saffron));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.cp-meta { flex: 1; }
.cp-author { font-family: var(--font-headline); font-weight: 600; font-size: 0.9rem; color: var(--clr-text); }
.cp-date { font-size: 0.75rem; color: var(--clr-text-3); }

.cp-status {
  font-size: 0.7rem;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}
.cp-status.pending { background: #fff3cd; color: #856404; }
.cp-status.approved { background: #d1e7dd; color: #0f5132; }

.cp-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-xs); color: var(--clr-text); }
.cp-excerpt { font-size: 0.88rem; color: var(--clr-text-2); line-height: 1.6; }

.cp-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--clr-border-lt);
  font-size: 0.78rem;
  color: var(--clr-text-3);
  font-family: var(--font-headline);
}

/* ============================================================
   MODAL — SUBMIT POST
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg);
  opacity: 0; visibility: hidden;
  transition: all var(--dur-base);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--dur-base) var(--ease-out);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-xl) var(--space-xl) 0;
}
.modal-header h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--clr-text); }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--clr-surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-2);
  font-size: 1.2rem;
  transition: background var(--dur-fast);
}
.modal-close:hover { background: var(--clr-border); }

.modal-body { padding: var(--space-xl); }

/* Form styles */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-family: var(--font-headline);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text-2);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}
.form-label .req { color: var(--clr-saffron); }

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--clr-text);
  background: var(--clr-surface);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 3px rgba(10,110,110,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-hint { font-size: 0.75rem; color: var(--clr-text-3); margin-top: 0.3rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: var(--clr-saffron);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast), transform var(--dur-fast);
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--clr-saffron-dk); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-notice {
  background: var(--clr-bg-warm);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-saffron);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--clr-text-2);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.form-success {
  text-align: center; padding: var(--space-2xl);
}
.form-success-icon { font-size: 3rem; margin-bottom: var(--space-md); }
.form-success h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: var(--space-sm); }
.form-success p { font-size: 0.9rem; color: var(--clr-text-2); }

/* ============================================================
   SOCIAL MEDIA WIDGET
   ============================================================ */
.social-feed-widget .widget-body { padding: 0; }
.social-placeholder {
  padding: var(--space-lg);
  text-align: center;
  font-size: 0.85rem;
  color: var(--clr-text-3);
}
.social-placeholder .social-icons { display: flex; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-sm); }
.social-icon-link {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--dur-fast);
}
.social-icon-link:hover { transform: scale(1.1); }
.social-icon-link.fb { background: #1877F2; color: #fff; }
.social-icon-link.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.social-icon-link.yt { background: #FF0000; color: #fff; }

/* ============================================================
   JEWELS OF JALANDHAR STRIP
   ============================================================ */
.jewels-strip {
  background: var(--clr-teal-dk);
  padding: var(--space-2xl) 0;
  overflow: hidden;
}
.jewels-strip .section-title { color: var(--clr-gold-lt); }
.jewels-strip .section-title::before { background: var(--clr-gold); }

.jewels-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.jewels-scroll-wrap::-webkit-scrollbar { display: none; }

.jewels-scroll { display: flex; gap: var(--space-lg); padding-bottom: var(--space-sm); }

.jewel-card {
  flex-shrink: 0;
  width: 140px;
  text-align: center;
}
.jewel-img-wrap {
  width: 90px; height: 90px; border-radius: 50%;
  overflow: hidden; margin: 0 auto var(--space-sm);
  border: 3px solid var(--clr-gold);
  background: var(--clr-teal);
}
.jewel-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.jewel-name {
  font-family: var(--font-headline);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}
.jewel-role { font-size: 0.65rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}
.page-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  font-family: var(--font-headline);
  font-size: 0.85rem;
  color: var(--clr-text-2);
  transition: all var(--dur-fast);
  background: var(--clr-surface);
}
.page-link:hover, .page-link.current {
  background: var(--clr-teal); color: #fff; border-color: var(--clr-teal);
}
.page-link.dots { border: none; background: none; cursor: default; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header-area { padding: var(--space-3xl) 0 var(--space-2xl); border-bottom: 1px solid var(--clr-border); margin-bottom: var(--space-2xl); }
.post-header-area .post-cat-badge { font-size: 0.78rem; padding: 0.25rem 0.7rem; margin-bottom: var(--space-md); display: inline-block; }
.post-header-area h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: var(--space-md); }

.post-content { font-size: 1.05rem; line-height: 1.85; color: var(--clr-text); }
.post-content p { margin-bottom: var(--space-lg); }
.post-content h2,h3,h4 { margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.post-content img { border-radius: var(--radius-md); margin: var(--space-xl) auto; }
.post-content blockquote {
  border-left: 4px solid var(--clr-saffron);
  padding: var(--space-md) var(--space-lg);
  background: var(--clr-bg-warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--clr-text-2);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section { margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: 1px solid var(--clr-border); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-text);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 0;
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-title { color: #fff; font-size: 1.3rem; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.85rem; opacity: 0.7; line-height: 1.7; margin-bottom: var(--space-lg); }

.footer-social { display: flex; gap: var(--space-sm); }

.footer-col-title {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}

.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--clr-saffron-lt); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-headline);
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.fade-in { animation: fadeIn 0.5s var(--ease-out) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clr-community);
  margin-right: 4px;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.loading-spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--clr-border);
  border-top-color: var(--clr-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-xl) auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--clr-saffron);
  outline-offset: 2px;
}

/* Print */
@media print {
  .site-header, .nav-bar, .breaking-ticker, .weather-strip,
  .sidebar, .hero-section, .site-footer { display: none; }
  .grid-main { grid-template-columns: 1fr; }
}
