/*
Theme Name:  Hindu Temple Guide
Theme URI:   https://hindutempleguide.com
Author:      Hindu Temple Guide
Description: Complete professional magazine WordPress theme for Hindu Temple Guide. Fixed dropdowns, mobile menu, social widgets, Elementor compatible.
Version:     7.0.0
License:     GNU General Public License v2 or later
Text Domain: htg
Tags: blog, magazine, custom-menu, featured-images, custom-logo, threaded-comments, translation-ready, full-width-template
*/

/* =========================================
   GOOGLE FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Cinzel:wght@400;600;700&family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

/* =========================================
   CSS VARIABLES — change colors here easily
   ========================================= */
: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;          /* height of nav bar */
  --header-h:      74px;          /* approx header height */
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--saffron); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; top: -999px; left: 0; background: var(--saffron); color: #fff; padding: 8px 16px; z-index: 99999; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
  background: var(--dark);
  color: rgba(255,215,0,.80);
  font-size: 11px;
  line-height: 1;
  padding: 6px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.top-bar a { color: rgba(255,215,0,.70); transition: color .2s; }
.top-bar a:hover { color: var(--saffron); }
.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-bottom: 3px solid var(--saffron);
  position: sticky;
  top: 0;
  z-index: 500;          /* ← lower than nav dropdown z-index */
  box-shadow: var(--shadow);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 12px; }

/* Logo / branding */
.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: flex; align-items: center; justify-content: center; font-family: var(--font-acc); font-size: 22px; color: #fff; flex-shrink: 0; font-weight: 700; }
.logo-circle img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.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-top: 2px; }

/* Header right buttons */
.header-right { display: flex; align-items: center; gap: 6px; }
.hdr-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background .2s, color .2s;
  color: var(--dark);
}
.hdr-icon-btn:hover { background: var(--saffron); color: #fff; }
.hdr-search-btn { background: var(--saffron-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px; height: 38px;
  gap: 5px;
  border-radius: 6px;
  background: var(--cream2);
}
.hamburger .bar { display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s ease; }
.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .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-top: 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-bottom: 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);
}
.search-row button { background: var(--saffron); color: #fff; padding: 0 26px; font-size: 15px; font-weight: 700; border-radius: 0 var(--r) var(--r) 0; transition: background .2s; }
.search-row button:hover { background: var(--saffron-dark); }
.search-popular-tags { margin-top: 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 .2s; }
.search-popular-tags a:hover { background: var(--saffron); color: #fff; }
.search-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 30px; opacity: .6; line-height: 1; transition: opacity .2s; }
.search-close:hover { opacity: 1; color: #fff; }

/* =========================================
   PRIMARY NAV BAR  ← THE FIXED DROPDOWN
   ========================================= */
.primary-nav-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border2);
  position: relative;
  z-index: 400;          /* must be below header (500) but dropdowns sit on top */
}

/* Nav list */
#primary-menu { display: flex; align-items: stretch; gap: 0; position: relative; }

/* All list items */
#primary-menu li { position: relative; }

/* All links */
#primary-menu a {
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; height: var(--nav-h);
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--dark); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a {
  color: var(--saffron);
  border-bottom-color: var(--saffron);
}

/* HOME pill */
#primary-menu > li:first-child > a {
  background: var(--saffron); color: #fff;
  border-radius: var(--r); margin: 6px 6px 6px 0;
  height: calc(var(--nav-h) - 12px);
  border-bottom: none;
}
#primary-menu > li:first-child > a:hover { background: var(--saffron-dark); }

/* Arrow on parent items */
#primary-menu > li.menu-item-has-children > a::after {
  content: '▾'; font-size: 9px; opacity: .5; margin-left: 2px;
}

/* ---- DROPDOWN PANEL ---- */
#primary-menu li.menu-item-has-children { position: relative; }

#primary-menu li.menu-item-has-children > .sub-menu {
  /* START HIDDEN */
  display: block !important;           /* force block so height animates */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;

  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-top: 3px solid var(--saffron);
  border: 1px solid var(--border);
  border-top: 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 !important;   /* ← very high — above everything */
  padding: 6px 0;
}

/* SHOW on hover */
#primary-menu li.menu-item-has-children:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Dropdown links */
#primary-menu .sub-menu li a {
  height: auto;
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  border-bottom: 1px solid var(--border2);
  border-left: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
#primary-menu .sub-menu li:last-child a { border-bottom: 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); }

/* Sub-sub menu */
#primary-menu .sub-menu li { position: relative; }
#primary-menu .sub-menu li > .sub-menu {
  top: -3px; left: 100%;
  border-top: 3px solid var(--saffron);
  border-radius: 0 var(--r) var(--r) 0;
}

/* =========================================
   MOBILE NAV
   ========================================= */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border2);
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s ease;
}
.mobile-nav.open { max-height: 85vh; overflow-y: auto; display: block; }
.mobile-nav ul { padding: 6px 0 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-bottom: 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-block; width: 24px; height: 24px; text-align: center; line-height: 24px; border-radius: 50%; background: var(--cream2); flex-shrink: 0; }
.mob-toggle-arrow.rotated { transform: rotate(180deg); color: var(--saffron); }
/* Mobile submenu */
.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-bottom: 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-bottom: none; }

/* =========================================
   BREAKING NEWS TICKER
   ========================================= */
.breaking-bar { background: var(--saffron); padding: 7px 0; overflow: hidden; }
.breaking-inner { display: flex; align-items: center; gap: 0; }
.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: 0 12px; }
.breaking-ticker { display: flex; gap: 56px; white-space: nowrap; animation: htgTicker 40s linear infinite; }
.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 { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider { position: relative; height: 400px; overflow: hidden; background: var(--dark); }
.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; }
.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-width: 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-bottom: 11px; }
.hero-title { font-family: var(--font-head); font-size: 36px; font-weight: 900; color: #fff; line-height: 1.17; margin-bottom: 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-bottom: 18px; }
.hero-meta-row { display: flex; gap: 14px; margin-bottom: 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 .2s, transform .2s; }
.hero-cta:hover { background: var(--saffron-dark); color: #fff; transform: translateY(-2px); }
/* Slider controls */
.slider-dots { position: absolute; bottom: 18px; right: 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: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(255,255,255,.2); transition: background .2s; }
.slider-arrow:hover { background: var(--saffron); border-color: var(--saffron); }

/* =========================================
   PAGE LAYOUT
   ========================================= */
.page-wrap { padding: 28px 0 50px; }
.two-col { display: grid; grid-template-columns: 1fr 310px; gap: 32px; align-items: start; }
.main-col { min-width: 0; }

/* Section headings */
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.sec-title { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--dark); padding-left: 13px; position: relative; }
.sec-title::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 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); transition: transform .3s, box-shadow .3s; }
.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-bottom: 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-bottom: 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-bottom: 10px; }
.card-meta { display: flex; gap: 10px; font-size: 11px; color: var(--muted); flex-wrap: wrap; align-items: center; }

/* =========================================
   FEATURED GRID
   ========================================= */
.feat-section { margin-bottom: 28px; }
.feat-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }
/* Big card */
.feat-main .card-thumb img,
.feat-main .card-ph { height: 300px; }
.feat-main .card-title { font-size: 21px; }
.feat-main .card-body { padding: 18px; }
/* Right column */
.feat-right { display: flex; flex-direction: column; gap: 12px; }
.feat-small .card-thumb img,
.feat-small .card-ph { height: 130px; }
.feat-small .card-title { font-size: 14px; margin-bottom: 4px; }
.feat-small .card-body { padding: 10px 12px; }
.feat-small .card-cat { font-size: 9px; margin-bottom: 4px; }

/* =========================================
   CATEGORIES GRID
   ========================================= */
.cats-section { margin-bottom: 28px; }
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-tile { position: relative; height: 110px; border-radius: var(--r); overflow: hidden; display: block; }
.cat-tile-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s; }
.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-bottom: 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-top: 2px; }

/* =========================================
   LATEST LIST
   ========================================= */
.latest-section { margin-bottom: 28px; }
.latest-list { display: flex; flex-direction: column; gap: 9px; }
.latest-section { margin-bottom: 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-height: 90px;
}
.latest-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.latest-item-thumb {
  flex: 0 0 110px;
  width: 110px;
  min-width: 110px;
  overflow: hidden;
  position: relative;
  min-height: 90px;
}
.latest-item-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.latest-item-ph { width: 110px; min-height: 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; }

/* =========================================
   ARCHIVE / BLOG GRID
   ========================================= */
.archive-hd { padding: 24px 0 16px; margin-bottom: 22px; border-bottom: 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-top: 5px; }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 26px; }
.posts-grid .card-thumb img,
.posts-grid .card-ph { height: 185px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 20px 0; 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 .2s; }
.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; top: 80px; }
.widget { background: var(--white); border-radius: var(--r); padding: 18px; margin-bottom: 20px; border: 1px solid var(--border2); box-shadow: var(--shadow-sm); }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); position: relative; }
.widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 32px; height: 2px; background: var(--saffron); }
/* WP default widget list */
.widget ul { display: flex; flex-direction: column; }
.widget ul li { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 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; }
/* Widget search */
.widget .search-form { display: flex; }
.widget .search-field { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; font-size: 13px; outline: none; }
.widget .search-field:focus { border-color: var(--saffron); }
.widget .search-submit { background: var(--saffron); color: #fff; padding: 9px 14px; border-radius: 0 4px 4px 0; font-size: 13px; cursor: pointer; border: none; }

/* ──────────────────────────────
   SOCIAL FOLLOW WIDGET — FIXED & VISIBLE
   ────────────────────────────── */
.social-follow-widget { }
.sfw-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 13px 14px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  cursor: pointer;
}
.sfw-box:last-child { margin-bottom: 0; }
.sfw-box:hover { opacity: .92; transform: translateY(-2px); text-decoration: none; }
.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: #000000; }
.sfw-icon { width: 42px; height: 42px; background: rgba(255,255,255,.18); border-radius: 8px; display: flex; align-items: center; justify-content: 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-top: 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 notice (shown if no URLs set) */
.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-width: 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-top: 3px; }

/* About widget */
.about-widget-inner { text-align: center; }
.om-symbol { font-size: 44px; color: var(--saffron); display: block; margin-bottom: 8px; line-height: 1; }
.about-text { font-size: 13px; color: var(--text2); line-height: 1.75; }
.about-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; background: var(--saffron); color: #fff; padding: 9px 20px; border-radius: 4px; font-size: 12px; font-weight: 700; transition: background .2s; }
.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-height: 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-bottom: 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: 10px 0 14px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 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); }
/* Content typography */
.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: 28px 0 12px; padding-left: 13px; border-left: 3px solid var(--saffron); }
.single-content h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--dark); margin: 22px 0 10px; }
.single-content h4 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--dark); margin: 18px 0 8px; }
.single-content p { margin-bottom: 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-bottom: 6px; }
.single-content blockquote { border-left: 4px solid var(--saffron); padding: 14px 20px; background: var(--saffron-light); margin: 22px 0; 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; }
/* MOBILE IMAGE FIX — images never overflow on any screen */
.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: 18px 0;
  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: 18px 0; font-size: 14px; overflow-x: auto; display: block; }
.single-content th { background: var(--saffron); color: #fff; padding: 10px 14px; text-align: left; }
.single-content td { padding: 9px 14px; border-bottom: 1px solid var(--border2); }
.single-content tr:nth-child(even) td { background: var(--cream); }
/* Tags */
.single-tags { padding: 14px 30px; border-top: 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 .2s; }
.single-tags a:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
/* Share buttons */
.share-bar { padding: 14px 30px; border-top: 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 .2s; }
.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; font-family: inherit; border: none; }
/* Post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 30px; border-top: 1px solid var(--border); }
.post-nav-item { display: flex; flex-direction: column; gap: 3px; }
.post-nav-item.next-item { text-align: right; }
.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 */
.related-section { padding: 22px 30px 26px; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.related-grid .card-thumb img, .related-grid .card-ph { height: 108px; }
.related-grid .card-title { font-size: 13px; }
.related-grid .card-body { padding: 9px 11px; }
/* Breadcrumbs */
.breadcrumbs { font-size: 12px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.breadcrumbs a { color: var(--saffron); }
.breadcrumbs .sep { opacity: .4; }

/* =========================================
   COMMENTS
   ========================================= */
.comments-wrap { background: var(--white); border-radius: var(--r); padding: 26px 30px; margin-top: 18px; box-shadow: var(--shadow-sm); }
.comments-ttl { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.comment-item { margin-bottom: 14px; }
.comment-item .children { margin-left: 36px; margin-top: 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-bottom: 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-bottom: 0; }
.comment-reply-link { font-size: 11px; font-weight: 700; color: var(--saffron); text-transform: uppercase; letter-spacing: .5px; margin-top: 7px; display: inline-block; }
/* Comment form */
.comment-form-wrap { margin-top: 22px; }
.comment-form-ttl { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 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 .2s; margin-bottom: 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-height: 120px; resize: vertical; }
.comment-submit { background: var(--saffron); color: #fff; padding: 11px 26px; border-radius: 4px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; transition: background .2s; }
.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-bottom: 2px solid var(--border); margin-bottom: 24px; }
.page-card-title { font-family: var(--font-head); font-size: 30px; font-weight: 900; color: var(--dark); padding-bottom: 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: 24px 0 10px; }
.page-card-content p { margin-bottom: 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-bottom: 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: 10px 0; }
.not-found-box p { color: var(--text2); max-width: 400px; margin: 0 auto 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 .2s; }
.btn-primary:hover { background: var(--saffron-dark); color: #fff; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: var(--dark2); color: rgba(255,255,255,.65); margin-top: 48px; }
.footer-body { padding: 48px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
/* Brand col */
.footer-brand { }
.footer-logo-name { font-family: var(--font-acc); font-size: 18px; color: #fff; margin-bottom: 9px; }
.footer-logo-name span { color: var(--saffron); }
.footer-about-p { font-size: 13px; line-height: 1.8; opacity: .62; margin-bottom: 16px; }
/* Footer social */
.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 .2s; }
.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 columns */
.footer-col-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 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 .2s; }
.footer-links a::before { content: '›'; color: var(--saffron); font-size: 14px; flex-shrink: 0; }
.footer-links a:hover { color: var(--saffron); }
/* Footer bottom */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.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; bottom: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%; background: var(--saffron); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; z-index: 800; opacity: 0; pointer-events: none; transition: opacity .3s; box-shadow: 0 4px 14px rgba(232,101,10,.4); border: none; cursor: pointer; }
#backToTop.visible { opacity: 1; pointer-events: all; }
#backToTop:hover { background: var(--saffron-dark); }

/* =========================================
   RESPONSIVE — TABLET 1024px
   ========================================= */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr 280px; gap: 24px; }
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
  .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; }

  /* Header */
  .hamburger { display: flex; }
  .primary-nav-wrap { display: none; }  /* hide desktop nav */
  .mobile-nav { display: block; }
  .top-bar { display: none; }
  .brand-name { font-size: 16px; }
  .brand-tagline { display: none; }
  .logo-circle { width: 42px; height: 42px; font-size: 18px; }

  /* Hero */
  .hero-slider { height: 260px; }
  .hero-title { font-size: 20px; }
  .hero-excerpt { display: none; }
  .hero-text { padding: 0 16px 24px; }

  /* Layout */
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  /* Featured */
  .feat-grid { grid-template-columns: 1fr; }
  .feat-main .card-thumb img, .feat-main .card-ph { height: 210px; }
  .feat-right { flex-direction: row; gap: 10px; }
  .feat-right .feat-small { flex: 1; min-width: 0; }

  /* Categories */
  .cats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Archive */
  .posts-grid { grid-template-columns: 1fr; }

  /* Single */
  .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-left: 16px; padding-right: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .comments-wrap { padding: 18px 16px; }
  .comment-form-row { grid-template-columns: 1fr; }

  /* Page */
  .page-card-hd { padding: 18px 16px 0; }
  .page-card-content { padding: 0 16px 20px; }

  /* Footer */
  .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 { height: 220px; }
  .hero-title { font-size: 17px; }
  .post-nav { grid-template-columns: 1fr; }
}

/* =========================================
   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; }
}
