/*
Theme Name:  Hindu Temple Guide
Theme URI:   https://hindutempleguide.com
Author:      Hindu Temple Guide
Author URI:  https://hindutempleguide.com
Description: Complete professional magazine WordPress theme for Hindu Temple Guide. v9 — SEO-optimised, Core Web Vitals ready, mobile-first, modern CSS. Includes H1 injection, hreflang, Facebook Pixel, pretty search URLs, zero inline styles.
Version:     9.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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: htg
Tags: blog, magazine, custom-menu, featured-images, custom-logo, threaded-comments, translation-ready, full-width-template, right-sidebar, custom-colors
*/

/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  --saffron:        #E8650A;
  --saffron-dark:   #C4500A;
  --saffron-light:  #FFF0E6;
  --gold:           #D4940A;
  --dark:           #1C130A;
  --dark2:          #2E200E;
  --cream:          #FFF8F2;
  --cream2:         #FFF0E4;
  --white:          #FFFFFF;
  --text:           #2A1C10;
  --text2:          #5C4030;
  --muted:          #9A7060;
  --border:         #E8CCBA;
  --border2:        #F2DFD0;

  --shadow-sm:      0 1px 4px rgba(0,0,0,.08);
  --shadow:         0 2px 12px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 28px rgba(0,0,0,.14);

  --r:              6px;
  --font-head:      'Playfair Display', Georgia, serif;
  --font-acc:       'Cinzel', serif;
  --font-body:      'Lato', Arial, sans-serif;
  --nav-h:          44px;
  --header-h:       74px;
  --container:      1180px;
  --gutter:         16px;
  --t:              .2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--saffron); }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* =========================================
   UTILITY
   ========================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; inset-block-start: -999px; inset-inline-start: 0;
  background: var(--saffron); color: #fff; padding: 8px 16px;
  z-index: 99999; font-weight: 700;
}
.skip-link:focus { inset-block-start: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
  background: var(--dark);
  color: rgba(255,215,0,.80);
  font-size: 11px;
  line-height: 1;
  padding-block: 6px;
  contain: layout style;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.top-bar a { color: rgba(255,215,0,.70); }
.top-bar a:hover { color: var(--saffron); }
.top-bar-greeting { opacity: .7; }
.top-nav-links { display: flex; gap: 16px; align-items: center; }
.top-nav-links ul { display: flex; gap: 14px; }
.top-nav-links ul li a {
  color: rgba(255,215,0,.70); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .4px;
}
.top-nav-links ul li a:hover { color: var(--saffron); }

/* =========================================
   SITE HEADER
   ========================================= */
.site-header {
  background: var(--white);
  border-block-end: 3px solid var(--saffron);
  position: sticky;
  inset-block-start: 0;
  z-index: 500;
  box-shadow: var(--shadow);
  will-change: box-shadow;
  transition: box-shadow var(--t);
  contain: layout style;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; block-size: 70px; gap: 12px; }

.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.logo-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: grid; place-items: center;
  font-family: var(--font-acc); font-size: 22px; color: #fff;
  flex-shrink: 0; font-weight: 700; aspect-ratio: 1;
}
.logo-circle img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.brand-name { font-family: var(--font-acc); font-size: 19px; font-weight: 700; color: var(--dark); line-height: 1.15; }
.brand-name .hl { color: var(--saffron); }
.brand-tagline { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-block-start: 2px; }
.header-right { display: flex; align-items: center; gap: 6px; }
.hdr-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 16px; transition: background var(--t), color var(--t); color: var(--dark);
}
.hdr-icon-btn:hover { background: var(--saffron); color: #fff; }
.hdr-search-btn { background: var(--saffron-light); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 38px; height: 38px; gap: 5px; border-radius: var(--r); background: var(--cream2); padding: 0;
}
.hamburger .bar {
  display: block; width: 20px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: transform .3s ease, opacity .3s ease; transform-origin: center;
}
.hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   SEARCH OVERLAY
   ========================================= */
.search-overlay {
  position: fixed; inset: 0; background: rgba(28,19,10,.92);
  z-index: 9000; display: flex; align-items: flex-start; justify-content: center;
  padding-block-start: 120px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box-wrap { width: 90%; max-width: 650px; }
.search-box-wrap label { display: block; color: rgba(255,255,255,.6); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; margin-block-end: 12px; }
.search-row { display: flex; }
.search-row input[type="search"] {
  flex: 1; padding: 15px 18px; font-size: 17px; border: none;
  border-radius: var(--r) 0 0 var(--r); outline: none; background: #fff; color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.search-row button {
  background: var(--saffron); color: #fff; padding-inline: 26px;
  font-size: 15px; font-weight: 700; border-radius: 0 var(--r) var(--r) 0; transition: background var(--t);
}
.search-row button:hover { background: var(--saffron-dark); }
.search-popular-tags { margin-block-start: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-popular-tags span { color: rgba(255,255,255,.45); font-size: 11px; }
.search-popular-tags a {
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.8);
  padding: 5px 13px; border-radius: 20px; font-size: 11px; transition: background var(--t);
}
.search-popular-tags a:hover { background: var(--saffron); color: #fff; }
.search-close {
  position: absolute; inset-block-start: 20px; inset-inline-end: 24px;
  color: #fff; font-size: 30px; opacity: .6; line-height: 1;
  transition: opacity var(--t); background: none; border: none; cursor: pointer;
}
.search-close:hover { opacity: 1; }

/* =========================================
   PRIMARY NAV
   ========================================= */
.primary-nav-wrap { background: var(--white); border-block-end: 1px solid var(--border2); position: relative; z-index: 400; contain: layout style; }
#primary-menu { display: flex; align-items: stretch; position: relative; }
#primary-menu li { position: relative; }
#primary-menu a {
  display: flex; align-items: center; gap: 5px; padding-inline: 14px;
  block-size: var(--nav-h); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--dark);
  white-space: nowrap; border-block-end: 2px solid transparent;
  transition: color var(--t), border-color var(--t), background var(--t);
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a { color: var(--saffron); border-block-end-color: var(--saffron); }
#primary-menu > li:first-child > a {
  background: var(--saffron); color: #fff; border-radius: var(--r);
  margin: 6px 6px 6px 0; block-size: calc(var(--nav-h) - 12px); border-block-end: none;
}
#primary-menu > li:first-child > a:hover { background: var(--saffron-dark); }
#primary-menu > li.menu-item-has-children > a::after { content: '▾'; font-size: 9px; opacity: .5; margin-inline-start: 2px; }

#primary-menu li.menu-item-has-children > .sub-menu {
  display: block !important; visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(6px); transition: opacity .22s ease, transform .22s ease, visibility 0s .22s;
  position: absolute; inset-block-start: 100%; inset-inline-start: 0; min-inline-size: 240px;
  background: var(--white); border: 1px solid var(--border); border-block-start: 3px solid var(--saffron);
  border-radius: 0 0 var(--r) var(--r); box-shadow: 0 12px 32px rgba(0,0,0,.13);
  z-index: 9999; padding-block: 6px; contain: content;
}
#primary-menu li.menu-item-has-children:hover > .sub-menu {
  visibility: visible; opacity: 1; pointer-events: all; transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s 0s;
}
#primary-menu .sub-menu li a {
  block-size: auto; padding: 9px 18px; font-size: 12.5px; font-weight: 600;
  text-transform: none; letter-spacing: 0; color: var(--text);
  border-block-end: 1px solid var(--border2); display: flex; align-items: center; gap: 8px;
}
#primary-menu .sub-menu li:last-child a { border-block-end: none; }
#primary-menu .sub-menu li a::before { content: '›'; color: var(--saffron); font-size: 15px; flex-shrink: 0; }
#primary-menu .sub-menu li a:hover { background: var(--saffron-light); color: var(--saffron); border-color: var(--saffron-light); }
#primary-menu .sub-menu li { position: relative; }
#primary-menu .sub-menu li > .sub-menu { inset-block-start: -3px; inset-inline-start: 100%; border-block-start: 3px solid var(--saffron); border-radius: 0 var(--r) var(--r) 0; }

/* =========================================
   MOBILE NAV
   ========================================= */
.mobile-nav {
  background: var(--white); border-block-start: 1px solid var(--border2); overflow: hidden;
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease;
}
.mobile-nav.open { grid-template-rows: 1fr; }
.mobile-nav > * { overflow: hidden; }
.mobile-nav ul { padding-block: 6px 10px; }
.mobile-nav > ul > li > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--dark); border-block-end: 1px solid var(--border2);
}
.mobile-nav > ul > li > a:hover,
.mobile-nav > ul > li.current-menu-item > a { color: var(--saffron); }
.mob-toggle-arrow {
  font-size: 12px; color: var(--muted); transition: transform .3s;
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--cream2); flex-shrink: 0;
}
.mob-toggle-arrow.rotated { transform: rotate(180deg); color: var(--saffron); }
.mob-sub { display: none; background: var(--cream); }
.mob-sub.open { display: block; }
.mob-sub li a {
  display: flex; align-items: center; gap: 6px; padding: 10px 28px;
  font-size: 12.5px; color: var(--text2); border-block-end: 1px solid var(--border2);
}
.mob-sub li a::before { content: '›'; color: var(--saffron); font-size: 14px; }
.mob-sub li a:hover { color: var(--saffron); background: var(--saffron-light); }
.mob-sub li:last-child a { border-block-end: none; }

/* =========================================
   BREAKING NEWS TICKER
   ========================================= */
.breaking-bar { background: var(--saffron); padding-block: 7px; overflow: hidden; contain: strict; }
.breaking-inner { display: flex; align-items: center; }
.breaking-label {
  background: var(--dark); color: #FFD700; padding: 4px 14px; font-size: 10px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; white-space: nowrap; flex-shrink: 0;
}
.breaking-sep { width: 0; height: 0; border-style: solid; border-width: 14px 0 14px 10px; border-color: transparent transparent transparent var(--dark); flex-shrink: 0; }
.breaking-track { overflow: hidden; flex: 1; padding-inline: 12px; }
.breaking-ticker {
  display: flex; gap: 56px; white-space: nowrap;
  animation: htgTicker 40s linear infinite; will-change: transform;
}
.breaking-ticker:hover { animation-play-state: paused; }
.breaking-ticker a { color: #fff; font-size: 12px; font-weight: 600; }
.breaking-ticker a:hover { color: #FFD700; }
@keyframes htgTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================
   HOMEPAGE H1 (SEO)
   ========================================= */
.htg-home-h1-visible {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  color: var(--dark);
  text-align: center;
  padding: 20px var(--gutter) 4px;
  max-width: var(--container);
  margin-inline: auto;
  line-height: 1.25;
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider { position: relative; block-size: 400px; overflow: hidden; background: var(--dark); contain: layout style; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: flex; align-items: flex-end; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 7s ease; will-change: transform; }
.hero-slide.active .hero-bg-img { transform: scale(1.05); }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,19,10,.92) 0%, rgba(28,19,10,.4) 50%, rgba(28,19,10,.08) 100%); }
.hero-text { position: relative; z-index: 2; padding: 0 44px 44px; max-inline-size: 660px; }
.hero-cat-badge {
  display: inline-block; background: var(--saffron); color: #fff; padding: 4px 13px;
  border-radius: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; margin-block-end: 11px;
}
.hero-title { font-family: var(--font-head); font-size: 36px; font-weight: 900; color: #fff; line-height: 1.17; margin-block-end: 12px; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--gold); }
.hero-excerpt { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.7; margin-block-end: 18px; }
.hero-meta-row { display: flex; gap: 14px; margin-block-end: 16px; font-size: 12px; color: rgba(255,255,255,.7); flex-wrap: wrap; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--saffron); color: #fff;
  padding: 11px 26px; border-radius: 4px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px; transition: background var(--t), transform var(--t);
}
.hero-cta:hover { background: var(--saffron-dark); color: #fff; transform: translateY(-2px); }
.slider-dots { position: absolute; inset-block-end: 18px; inset-inline-end: 20px; z-index: 3; display: flex; gap: 8px; align-items: center; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35);
  padding: 0; border: 1px solid rgba(255,255,255,.3); cursor: pointer; transition: all .3s;
}
.slider-dot.active { background: var(--saffron); border-color: var(--saffron); width: 24px; border-radius: 4px; }
.slider-arrow {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.15);
  color: #fff; font-size: 14px; display: grid; place-items: center;
  cursor: pointer; border: 1px solid rgba(255,255,255,.2); transition: background var(--t);
}
.slider-arrow:hover { background: var(--saffron); border-color: var(--saffron); }

/* =========================================
   PAGE LAYOUT
   ========================================= */
.page-wrap { padding-block: 28px 50px; }
.two-col { display: grid; grid-template-columns: 1fr 310px; gap: 32px; align-items: start; }
.main-col { min-width: 0; }
.htg-ad-top { padding-block-start: 14px; }
.htg-mid-ad { margin-block-end: 24px; }

/* Section headings */
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin-block-end: 16px; padding-block-end: 10px; border-block-end: 2px solid var(--border); }
.sec-title { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--dark); padding-inline-start: 13px; position: relative; }
.sec-title::before { content: ''; position: absolute; inset-inline-start: 0; inset-block: 2px 2px; inline-size: 4px; background: var(--saffron); border-radius: 2px; }
.sec-link { font-size: 11px; font-weight: 700; color: var(--saffron); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.sec-link:hover { color: var(--saffron-dark); }

/* =========================================
   POST CARDS
   ========================================= */
.card {
  background: var(--white); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border2);
  contain: layout style; transition: transform .3s, box-shadow .3s; will-change: transform;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-thumb { overflow: hidden; display: block; }
.card-thumb img { width: 100%; object-fit: cover; transition: transform .45s; display: block; }
.card:hover .card-thumb img { transform: scale(1.06); }
.card-ph { width: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.card-body { padding: 15px; }
.card-cat { font-size: 10px; font-weight: 800; color: var(--saffron); text-transform: uppercase; letter-spacing: 1px; margin-block-end: 6px; display: inline-block; }
.card-cat:hover { color: var(--saffron-dark); }
.card-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.32; margin-block-end: 8px; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--saffron); }
.card-excerpt { font-size: 13px; color: var(--text2); line-height: 1.65; margin-block-end: 10px; }
.card-meta { display: flex; gap: 10px; font-size: 11px; color: var(--muted); flex-wrap: wrap; align-items: center; }

/* =========================================
   FEATURED GRID
   ========================================= */
.feat-section { margin-block-end: 28px; }
.feat-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }
.feat-main-img  { height: 300px; object-fit: cover; width: 100%; }
.feat-small-img { height: 140px; object-fit: cover; width: 100%; }
.feat-main .card-title { font-size: 21px; }
.feat-main .card-body { padding: 18px; }
.feat-right { display: flex; flex-direction: column; gap: 12px; }
.feat-small .card-body { padding: 10px 12px; }
.feat-small .card-cat { font-size: 9px; margin-block-end: 4px; }
.feat-small .card-title { font-size: 14px; margin-block-end: 4px; }

/* 2-column featured layout */
.feat-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Single featured hero layout */
.card--hero-single { display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; }
.card-img--hero, .card-ph--hero { height: 320px; width: 100%; object-fit: cover; }
.card-body--hero { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.card-title--lg { font-size: 22px; margin: 8px 0 12px; }
.card-meta--mt  { margin-block-start: 10px; }
.hero-cta--mt   { margin-block-start: 16px; display: inline-flex; font-size: 12px; }

/* =========================================
   EMPTY STATES
   ========================================= */
.htg-empty-state { background: var(--white); border-radius: var(--r); padding: 32px; text-align: center; border: 1px solid var(--border2); }
.htg-empty-icon  { font-size: 48px; line-height: 1; margin-block-end: 12px; }
.htg-empty-title { font-family: var(--font-head); color: var(--dark); margin-block-end: 8px; }
.htg-empty-small { font-size: 13px; color: var(--muted); margin-block-end: 10px; }
.htg-btn-mt      { margin-block-start: 12px; }
.htg-link-saffron { color: var(--saffron); font-weight: 700; }

/* =========================================
   CATEGORIES GRID
   ========================================= */
.cats-section { margin-block-end: 28px; }
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-tile { position: relative; block-size: 110px; border-radius: var(--r); overflow: hidden; display: block; contain: layout style; }
.cat-tile-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s; will-change: transform; }
.cat-tile:hover .cat-tile-bg { transform: scale(1.08); }
.cat-tile-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,19,10,.88) 0%, rgba(28,19,10,.1) 100%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 9px 6px; }
.cat-tile-ico { font-size: 18px; margin-block-end: 3px; }
.cat-tile-name { color: #fff; font-family: var(--font-acc); font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; }
.cat-tile-count { color: var(--gold); font-size: 10px; margin-block-start: 2px; }

/* =========================================
   LATEST LIST
   ========================================= */
.latest-section { margin-block-end: 28px; }
.latest-list { display: flex; flex-direction: column; gap: 10px; }
.latest-item {
  display: flex; flex-direction: row; align-items: stretch;
  background: var(--white); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border2); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s; cursor: pointer; min-block-size: 90px;
  content-visibility: auto; contain-intrinsic-size: 0 90px;
}
.latest-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.latest-item-thumb { flex: 0 0 110px; inline-size: 110px; overflow: hidden; position: relative; min-block-size: 90px; }
.latest-item-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.latest-item-ph { width: 110px; min-block-size: 90px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.latest-item-body { flex: 1; min-width: 0; padding: 11px 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.latest-cat { font-size: 10px; font-weight: 800; color: var(--saffron); text-transform: uppercase; letter-spacing: 1px; display: block; line-height: 1; }
.latest-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.38; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.latest-item:hover .latest-title { color: var(--saffron); }
.latest-meta { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.latest-sep { margin: 0 2px; }

/* =========================================
   ARCHIVE / BLOG GRID
   ========================================= */
.archive-hd { padding-block: 24px 16px; margin-block-end: 22px; border-block-end: 2px solid var(--border); }
.archive-hd h1 { font-family: var(--font-head); font-size: 26px; font-weight: 900; color: var(--dark); }
.archive-hd h1 span { color: var(--saffron); }
.archive-hd p { font-size: 13px; color: var(--text2); margin-block-start: 5px; }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-block-end: 26px; }
.archive-card-img { height: 185px; object-fit: cover; width: 100%; }

.pagination { display: flex; gap: 6px; justify-content: center; padding-block: 20px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 4px; font-size: 13px; font-weight: 700; background: var(--white); border: 1px solid var(--border); color: var(--text); transition: all var(--t); }
.pagination .page-numbers:hover, .pagination .current { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.pagination .dots { background: none; border: none; pointer-events: none; color: var(--muted); }

/* =========================================
   SIDEBAR & WIDGETS
   ========================================= */
.sidebar { position: sticky; inset-block-start: 80px; will-change: transform; }
.widget {
  background: var(--white); border-radius: var(--r); padding: 18px;
  margin-block-end: 20px; border: 1px solid var(--border2); box-shadow: var(--shadow-sm);
  contain: layout style; content-visibility: auto; contain-intrinsic-size: 0 200px;
}
.widget:last-child { margin-block-end: 0; }
.widget-title { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--dark); margin-block-end: 14px; padding-block-end: 10px; border-block-end: 2px solid var(--border); position: relative; }
.widget-title::after { content: ''; position: absolute; inset-block-end: -2px; inset-inline-start: 0; inline-size: 32px; block-size: 2px; background: var(--saffron); }
.widget ul { display: flex; flex-direction: column; }
.widget ul li { font-size: 13px; padding-block: 8px; border-block-end: 1px solid var(--border2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.widget ul li:last-child { border-block-end: none; padding-block-end: 0; }
.widget ul li a { color: var(--text); flex: 1; line-height: 1.35; }
.widget ul li a:hover { color: var(--saffron); }
.widget ul li .count { background: var(--saffron); color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 10px; flex-shrink: 0; }

/* Social Follow Widget */
.sfw-box { display: flex; align-items: center; gap: 12px; border-radius: 8px; padding: 13px 14px; margin-block-end: 10px; text-decoration: none; transition: opacity var(--t), transform var(--t); cursor: pointer; }
.sfw-box:last-child { margin-block-end: 0; }
.sfw-box:hover { opacity: .92; transform: translateY(-2px); }
.sfw-box.facebook  { background: #1877F2; }
.sfw-box.instagram { background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%); }
.sfw-box.youtube   { background: #FF0000; }
.sfw-box.twitter   { background: #000; }
.sfw-icon { width: 42px; height: 42px; background: rgba(255,255,255,.18); border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.sfw-icon svg { width: 22px; height: 22px; fill: white; }
.sfw-info { flex: 1; min-width: 0; }
.sfw-count { font-size: 19px; font-weight: 800; color: white; line-height: 1; }
.sfw-label { font-size: 11px; color: rgba(255,255,255,.82); margin-block-start: 1px; }
.sfw-action { font-size: 10px; font-weight: 800; color: white; background: rgba(255,255,255,.2); padding: 5px 10px; border-radius: 4px; flex-shrink: 0; letter-spacing: .3px; }
.social-setup-notice { font-size: 12px; color: var(--muted); line-height: 1.6; padding: 8px; background: var(--cream2); border-radius: 4px; }
.social-setup-notice a { color: var(--saffron); text-decoration: underline; }

/* Trending widget */
.trending-list { display: flex; flex-direction: column; gap: 12px; }
.trend-item { display: flex; gap: 10px; align-items: flex-start; }
.trend-num { font-family: var(--font-acc); font-size: 19px; font-weight: 700; color: var(--saffron); min-inline-size: 24px; line-height: 1.15; flex-shrink: 0; }
.trend-num.gold { color: var(--gold); }
.trend-body { flex: 1; min-width: 0; }
.trend-title { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.33; }
.trend-title a { color: inherit; }
.trend-title a:hover { color: var(--saffron); }
.trend-meta { font-size: 10px; color: var(--muted); margin-block-start: 3px; }

/* About widget */
.about-widget-inner { text-align: center; }
.om-symbol { font-size: 44px; color: var(--saffron); display: block; margin-block-end: 8px; line-height: 1; }
.about-text { font-size: 13px; color: var(--text2); line-height: 1.75; }
.about-widget-title { text-align: center !important; border: none !important; padding: 0 !important; margin-block-end: 10px !important; }
.about-cta { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 13px; background: var(--saffron); color: #fff; padding: 9px 20px; border-radius: 4px; font-size: 12px; font-weight: 700; transition: background var(--t); }
.about-cta:hover { background: var(--saffron-dark); color: #fff; }

/* =========================================
   SINGLE POST
   ========================================= */
.single-card { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.single-feat-img { width: 100%; max-block-size: 440px; object-fit: cover; object-position: center; display: block; }
.single-hd { padding: 26px 30px 0; }
.single-cats { display: flex; gap: 7px; flex-wrap: wrap; margin-block-end: 10px; }
.single-cat-pill { background: var(--saffron); color: #fff; padding: 4px 12px; border-radius: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: inline-block; }
.single-cat-pill:hover { background: var(--saffron-dark); color: #fff; }
.single-title { font-family: var(--font-head); font-size: 32px; font-weight: 900; color: var(--dark); line-height: 1.18; margin-block: 10px 14px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 16px; padding-block: 12px; border-block: 1px solid var(--border); font-size: 13px; color: var(--text2); }
.single-meta span { display: flex; align-items: center; gap: 5px; }
.single-meta a { color: var(--text2); }
.single-meta a:hover { color: var(--saffron); }
.single-content { padding: 26px 30px 28px; font-size: 16px; line-height: 1.9; color: var(--text); }
.single-content h2 { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--dark); margin-block: 28px 12px; padding-inline-start: 13px; border-inline-start: 3px solid var(--saffron); }
.single-content h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--dark); margin-block: 22px 10px; }
.single-content h4 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--dark); margin-block: 18px 8px; }
.single-content p { margin-block-end: 17px; }
.single-content ul { margin: 0 0 17px 22px; list-style: disc; }
.single-content ol { margin: 0 0 17px 22px; list-style: decimal; }
.single-content li { margin-block-end: 6px; }
.single-content blockquote { border-inline-start: 4px solid var(--saffron); padding: 14px 20px; background: var(--saffron-light); margin-block: 22px; border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--text2); }
.single-content a { color: var(--saffron); text-decoration: underline; text-underline-offset: 2px; }
.single-content img { display: block; max-width: 100% !important; width: auto !important; height: auto !important; border-radius: var(--r); margin: 18px auto; }
.single-content figure { max-width: 100% !important; margin-block: 18px; overflow: hidden; }
.single-content figure img { width: 100% !important; height: auto !important; }
.single-content .wp-block-image, .single-content .wp-caption, .single-content .aligncenter, .single-content .alignleft, .single-content .alignright { max-width: 100% !important; height: auto !important; }
.single-content table { width: 100%; border-collapse: collapse; margin-block: 18px; font-size: 14px; overflow-x: auto; display: block; }
.single-content th { background: var(--saffron); color: #fff; padding: 10px 14px; text-align: start; }
.single-content td { padding: 9px 14px; border-block-end: 1px solid var(--border2); }
.single-content tr:nth-child(even) td { background: var(--cream); }

.single-tags { padding: 14px 30px; border-block-start: 1px solid var(--border); display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.single-tags .tag-lbl { font-size: 12px; font-weight: 700; color: var(--dark); flex-shrink: 0; }
.single-tags a { background: var(--cream2); color: var(--text2); padding: 4px 12px; border-radius: 20px; font-size: 11px; border: 1px solid var(--border); transition: all var(--t); }
.single-tags a:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }

.share-bar { padding: 14px 30px; border-block-start: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-lbl { font-size: 12px; font-weight: 700; color: var(--dark); flex-shrink: 0; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; transition: opacity var(--t); }
.share-btn:hover { opacity: .88; color: #fff; }
.share-fb  { background: #1877F2; }
.share-wa  { background: #25D366; }
.share-tw  { background: #000; }
.share-copy { background: var(--dark2); cursor: pointer; border: none; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 30px; border-block-start: 1px solid var(--border); }
.post-nav-item { display: flex; flex-direction: column; gap: 3px; }
.post-nav-item.next-item { text-align: end; }
.post-nav-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.post-nav-ttl { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.post-nav-ttl:hover { color: var(--saffron); }

.related-section { padding: 22px 30px 26px; border-block-start: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block-start: 14px; }
.related-card-img { height: 108px; object-fit: cover; width: 100%; }
.related-grid .card-title { font-size: 13px; }
.related-grid .card-body { padding: 9px 11px; }

.breadcrumbs { font-size: 12px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-block-end: 10px; }
.breadcrumbs a { color: var(--saffron); }
.breadcrumbs .sep { opacity: .4; }

/* =========================================
   COMMENTS
   ========================================= */
.comments-wrap { background: var(--white); border-radius: var(--r); padding: 26px 30px; margin-block-start: 18px; box-shadow: var(--shadow-sm); }
.comments-ttl { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--dark); margin-block-end: 18px; padding-block-end: 10px; border-block-end: 2px solid var(--border); }
.comment-item { margin-block-end: 14px; }
.comment-item .children { margin-inline-start: 36px; margin-block-start: 12px; }
.comment-body { background: var(--cream); border-radius: 6px; padding: 14px 16px; border: 1px solid var(--border2); }
.comment-author-row { display: flex; align-items: center; gap: 10px; margin-block-end: 8px; }
.comment-author-row img { border-radius: 50%; }
.comment-author-name { font-weight: 700; font-size: 13px; color: var(--dark); }
.comment-date { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 14px; line-height: 1.75; }
.comment-text p:last-child { margin-block-end: 0; }
.comment-reply-link { font-size: 11px; font-weight: 700; color: var(--saffron); text-transform: uppercase; letter-spacing: .5px; margin-block-start: 7px; display: inline-block; }
.comment-form-wrap { margin-block-start: 22px; }
.comment-form-ttl { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--dark); margin-block-end: 14px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; color: var(--text); background: var(--white); transition: border-color var(--t); margin-block-end: 10px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232,101,10,.1); }
.comment-form textarea { min-block-size: 120px; resize: vertical; }
.comment-submit { background: var(--saffron); color: #fff; padding: 11px 26px; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background var(--t); }
.comment-submit:hover { background: var(--saffron-dark); }

/* =========================================
   PAGE TEMPLATE
   ========================================= */
.page-card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.page-card-hd { padding: 26px 30px 0; border-block-end: 2px solid var(--border); margin-block-end: 24px; }
.page-card-title { font-family: var(--font-head); font-size: 30px; font-weight: 900; color: var(--dark); padding-block-end: 16px; }
.page-card-content { padding: 0 30px 30px; font-size: 16px; line-height: 1.9; color: var(--text); }
.page-card-content h2 { font-family: var(--font-head); font-size: 22px; color: var(--dark); margin-block: 24px 10px; }
.page-card-content p { margin-block-end: 15px; }
.page-card-content a { color: var(--saffron); }

/* =========================================
   404
   ========================================= */
.not-found-box { text-align: center; padding: 70px 20px; }
.not-found-box .nf-icon { font-size: 70px; line-height: 1; margin-block-end: 14px; }
.not-found-box h1 { font-family: var(--font-head); font-size: 90px; font-weight: 900; color: var(--saffron); line-height: 1; }
.not-found-box h2 { font-family: var(--font-head); font-size: 26px; color: var(--dark); margin-block: 10px; }
.not-found-box p { color: var(--text2); max-inline-size: 400px; margin-inline: auto; margin-block-end: 22px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--saffron); color: #fff; padding: 12px 26px; border-radius: 4px; font-weight: 700; font-size: 14px; transition: background var(--t); }
.btn-primary:hover { background: var(--saffron-dark); color: #fff; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: var(--dark2); color: rgba(255,255,255,.65); margin-block-start: 48px; }
.footer-body { padding-block: 48px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo-name { font-family: var(--font-acc); font-size: 18px; color: #fff; margin-block-end: 9px; }
.footer-logo-name span { color: var(--saffron); }
.footer-about-p { font-size: 13px; line-height: 1.8; opacity: .62; margin-block-end: 16px; }
.footer-soc { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-soc-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; transition: opacity var(--t); }
.footer-soc-btn:hover { opacity: .85; color: #fff; }
.footer-soc-btn svg { width: 12px; height: 12px; fill: white; }
.footer-soc-btn.fb { background: #1877F2; }
.footer-soc-btn.ig { background: linear-gradient(135deg,#833AB4,#FD1D1D,#F77737); }
.footer-soc-btn.yt { background: #FF0000; }
.footer-soc-btn.tw { background: #000; }
.footer-social-notice { font-size: 11px; color: rgba(255,255,255,.3); }
.footer-social-notice a { color: var(--saffron); }
.footer-col-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: #fff; margin-block-end: 14px; padding-block-end: 8px; border-block-end: 1px solid rgba(255,255,255,.1); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 6px; transition: color var(--t); }
.footer-links a::before { content: '›'; color: var(--saffron); font-size: 14px; flex-shrink: 0; }
.footer-links a:hover { color: var(--saffron); }
.footer-search-wrap  { margin-block-start: 18px; }
.footer-search-label { font-size: 11px; color: rgba(255,255,255,.38); margin-block-end: 7px; display: block; }
.footer-search-row   { display: flex; }
.footer-search-input { flex: 1; padding: 8px 10px; font-size: 12px; border: none; border-radius: 4px 0 0 4px; background: rgba(255,255,255,.1); color: #fff; outline: none; }
.footer-search-input::placeholder { color: rgba(255,255,255,.4); }
.footer-search-btn   { background: var(--saffron); color: #fff; border: none; padding: 8px 12px; border-radius: 0 4px 4px 0; font-size: 12px; cursor: pointer; font-weight: 700; transition: background var(--t); }
.footer-search-btn:hover { background: var(--saffron-dark); }
.footer-bottom { border-block-start: 1px solid rgba(255,255,255,.08); padding-block: 16px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; opacity: .45; }
.footer-bottom-links { display: flex; gap: 14px; }
.footer-bottom-links a { color: inherit; }
.footer-bottom-links a:hover { color: var(--saffron); opacity: 1; }

/* =========================================
   BACK TO TOP
   ========================================= */
#backToTop {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px;
  width: 42px; height: 42px; border-radius: 50%; background: var(--saffron);
  color: #fff; font-size: 18px; display: grid; place-items: center;
  z-index: 800; opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 14px rgba(232,101,10,.4); border: none; cursor: pointer; will-change: opacity, transform;
}
#backToTop.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#backToTop:hover { background: var(--saffron-dark); }

/* =========================================
   RESPONSIVE — TABLET 1024px
   ========================================= */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr 280px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   RESPONSIVE — MOBILE 768px
   ========================================= */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .hamburger { display: flex; }
  .primary-nav-wrap { display: none; }
  .mobile-nav { display: grid; }
  .top-bar { display: none; }
  .brand-name { font-size: 16px; }
  .brand-tagline { display: none; }
  .logo-circle { width: 42px; height: 42px; font-size: 18px; }
  .hero-slider { block-size: 260px; }
  .hero-title { font-size: 20px; }
  .hero-excerpt { display: none; }
  .hero-text { padding: 0 16px 24px; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; will-change: auto; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-main-img { height: 210px; }
  .feat-right { flex-direction: row; gap: 10px; }
  .feat-right .feat-small { flex: 1; min-width: 0; }
  .feat-small-img { height: 130px; }
  .feat-grid-two { grid-template-columns: 1fr; }
  .card--hero-single { grid-template-columns: 1fr; }
  .card-img--hero, .card-ph--hero { height: 200px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .single-hd { padding: 18px 16px 0; }
  .single-content { padding: 0 16px 20px; font-size: 15px; }
  .single-title { font-size: 22px; }
  .single-tags, .share-bar, .post-nav, .related-section { padding-inline: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .comments-wrap { padding: 18px 16px; }
  .comment-form-row { grid-template-columns: 1fr; }
  .page-card-hd { padding: 18px 16px 0; }
  .page-card-content { padding: 0 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .feat-right { flex-direction: column; }
  .hero-slider { block-size: 220px; }
  .hero-title { font-size: 17px; }
  .post-nav { grid-template-columns: 1fr; }
  .archive-card-img { height: 160px; }
}

/* =========================================
   ELEMENTOR COMPAT
   ========================================= */
body.elementor-editor-active .site-header { position: relative; }
.elementor-section { max-width: 100%; }
body.page-template-page-full-width .two-col,
body.page-template-page-full-width #main { display: block; max-width: 100%; }
body.htg-canvas { background: #fff; }

/* =========================================
   PRINT
   ========================================= */
@media print {
  .top-bar, .site-header, .primary-nav-wrap, .mobile-nav,
  .breaking-bar, .sidebar, .site-footer, .share-bar,
  #backToTop, .hamburger { display: none !important; }
  .two-col { grid-template-columns: 1fr !important; }
}
