/*
Theme Name: MyBlog Pro
Theme URI: https://myblog.com
Author: MyBlog
Author URI: https://myblog.com
Description: Professional Hindi/Urdu Blog Theme with left sidebar branding, mega menu, social links, login/register support
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myblog-pro
Tags: blog, news, responsive, custom-menu, featured-images, post-formats, rtl-language-support
*/

/* =========================================
   CSS RESET & ROOT VARIABLES
========================================= */
:root {
  --primary:   #e63946;
  --primary-d: #c1121f;
  --secondary: #1d3557;
  --accent:    #457b9d;
  --bg:        #f8f9fa;
  --surface:   #ffffff;
  --text:      #1a1a2e;
  --muted:     #6c757d;
  --border:    #e9ecef;
  --nav-bg:    #1d3557;
  --nav-text:  #ffffff;
  --top-bg:    #0d1b2a;
  --radius:    8px;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --font-main: 'Hind', 'Noto Sans Devanagari', Arial, sans-serif;
  --font-head: 'Baloo 2', 'Hind', Arial, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width:100%; height:auto; display:block; }
a  { color: var(--primary); text-decoration:none; transition: color var(--transition); }
a:hover { color: var(--primary-d); }
ul { list-style:none; }
button, input, select, textarea { font-family: inherit; }

/* =========================================
   GOOGLE FONTS IMPORT
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800&family=Hind:wght@300;400;500;600&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* =========================================
   TOP BAR
========================================= */
.top-bar {
  background: var(--top-bg);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar-date { display:flex; align-items:center; gap:6px; }
.top-bar-date i { color: var(--primary); }

/* Top Social */
.top-social { display:flex; gap:4px; align-items:center; }
.top-social a {
  width: 26px; height:26px;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  transition: all var(--transition);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.top-social a:hover { color: #fff; transform: translateY(-2px); }
.top-social .fb:hover  { background:#1877f2; border-color:#1877f2; }
.top-social .ig:hover  { background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fd5949 45%,#d6249f 60%,#285AEB 90%); border-color:transparent; }
.top-social .tg:hover  { background:#2ca5e0; border-color:#2ca5e0; }
.top-social .li:hover  { background:#0077b5; border-color:#0077b5; }
.top-social .tw:hover  { background:#000; border-color:#000; }

/* =========================================
   SITE HEADER  (Logo left + Search right)
========================================= */
.site-header {
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* LOGO LEFT */
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.site-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items:center; justify-content:center;
}
.site-logo img { width:100%; height:100%; object-fit:cover; }
.site-logo-default { font-size: 1.5rem; color: #fff; font-weight: 800; font-family: var(--font-head); }
.branding-text { line-height: 1.2; }
.site-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.3px;
  display: block;
}
.site-name span { color: var(--primary); }
.site-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}

/* SEARCH + AUTH RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-search {
  position: relative;
}
.header-search form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}
.header-search input {
  border: none;
  background: transparent;
  padding: 9px 16px 9px 14px;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  width: 200px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  background: var(--primary);
  border: none;
  padding: 9px 14px;
  cursor: pointer;
  color: #fff;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--primary-d); }

/* Auth Buttons */
.auth-btns { display:flex; gap:8px; align-items:center; }
.btn-login {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--secondary);
  background: transparent;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex; align-items:center; gap:6px;
}
.btn-login:hover { background: var(--secondary); color: #fff; }
.btn-signup {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex; align-items:center; gap:6px;
}
.btn-signup:hover { background: var(--primary-d); border-color: var(--primary-d); }

/* User logged-in */
.user-avatar-wrap {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; position: relative;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--primary);
}
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--secondary); }

/* =========================================
   MAIN NAVIGATION
========================================= */
.main-nav {
  background: var(--nav-bg);
  position: relative;
  z-index: 900;
}
.main-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
}

/* Nav items */
.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-item {
  position: relative;
}
.nav-item > a,
.nav-item > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  color: var(--nav-text);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.2px;
}
.nav-item > a:hover,
.nav-item > span:hover,
.nav-item.active > a { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item > a .nav-arrow,
.nav-item > span .nav-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
  opacity: 0.7;
}
.nav-item:hover > a .nav-arrow,
.nav-item:hover > span .nav-arrow { transform: rotate(180deg); }

/* Highlight items */
.nav-item.taza > a {
  background: var(--primary);
  color: #fff;
}
.nav-item.taza > a:hover { background: var(--primary-d); }

/* ── DROPDOWN (Level 1) ── */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 1000;
}
.nav-item:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li { border-bottom: 1px solid var(--border); }
.dropdown li:last-child { border-bottom: none; }
.dropdown li > a,
.dropdown li > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}
.dropdown li > a:hover,
.dropdown li > span:hover {
  background: rgba(230,57,70,0.06);
  color: var(--primary);
  padding-left: 22px;
}
.dropdown li .dd-arrow { font-size: 0.6rem; color: var(--muted); }

/* ── SUB-DROPDOWN (Level 2) ── */
.sub-dropdown {
  position: absolute;
  top: -3px;
  left: 100%;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all var(--transition);
  z-index: 1001;
}
.dropdown li:hover > .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.sub-dropdown li > a {
  display: block;
  padding: 9px 16px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.sub-dropdown li:last-child > a { border-bottom: none; }
.sub-dropdown li > a:hover {
  background: rgba(69,123,157,0.08);
  color: var(--accent);
  padding-left: 22px;
}

/* ── MOBILE HAMBURGER ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--nav-text);
  font-size: 1.3rem;
}
.mobile-menu-open .nav-menu { display: flex; flex-direction: column; }

/* ── SOCIAL IN NAV (right aligned) ── */
.nav-social {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 0 4px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.nav-social a {
  width: 34px; height: 34px;
  display: flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-social a:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* =========================================
   BREAKING NEWS TICKER
========================================= */
.breaking-ticker {
  background: var(--primary);
  color: #fff;
  overflow: hidden;
  padding: 8px 0;
}
.ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
}
.ticker-label {
  background: var(--secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 16px;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-content {
  display: inline-flex;
  gap: 60px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-content a {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-content a::before { content: '●'; font-size: 0.5rem; opacity: 0.7; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================
   MAIN CONTENT WRAPPER
========================================= */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* =========================================
   HERO / FEATURED SECTION
========================================= */
.featured-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 32px;
}
.featured-main {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-main img { width:100%; height:360px; object-fit:cover; }
.featured-main .post-overlay {
  position: absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
  display: flex; flex-direction:column; justify-content:flex-end;
  padding: 24px;
}
.featured-secondary {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-secondary img { width:100%; height:170px; object-fit:cover; }
.featured-secondary .post-overlay {
  position: absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  display: flex; flex-direction:column; justify-content:flex-end;
  padding: 16px;
}
.cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.overlay-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
}
.overlay-title a { color: #fff; }
.overlay-title a:hover { color: #ffc8cc; }
.featured-main .overlay-title { font-size: 1.5rem; }
.post-meta-light {
  display: flex; gap:12px; align-items:center;
  font-size: 0.72rem; color: rgba(255,255,255,0.75);
}
.post-meta-light i { font-size: 0.65rem; }

/* =========================================
   SECTION HEADINGS
========================================= */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex; align-items:center; gap:8px;
}
.section-title i { color: var(--primary); font-size: 1rem; }
.see-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  display: flex; align-items:center; gap:4px;
  padding: 4px 12px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  transition: all var(--transition);
}
.see-all:hover { background: var(--primary); color: #fff; }

/* =========================================
   POST CARDS
========================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.post-card-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 16px; }
.post-card-meta {
  display: flex; gap:10px; align-items:center;
  font-size: 0.7rem; color: var(--muted);
  margin-bottom: 8px;
}
.post-card-meta i { font-size: 0.62rem; }
.post-card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items:center; justify-content:space-between;
  font-size: 0.75rem;
}
.read-more {
  color: var(--primary);
  font-weight: 600;
  display: flex; align-items:center; gap:4px;
  transition: gap var(--transition);
}
.read-more:hover { gap: 8px; color: var(--primary); }

/* =========================================
   LIST POST (Latest posts)
========================================= */
.post-list { display: flex; flex-direction:column; gap:16px; }
.post-list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.post-list-item:hover { transform: translateX(4px); }
.post-list-img { height: 90px; overflow: hidden; }
.post-list-img img { width:100%; height:100%; object-fit:cover; }
.post-list-body { padding: 12px 14px 12px 0; }
.post-list-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.post-list-title a { color: var(--text); }
.post-list-title a:hover { color: var(--primary); }
.post-list-meta { font-size: 0.7rem; color: var(--muted); display:flex; gap:10px; }

/* =========================================
   SIDEBAR
========================================= */
.sidebar { display: flex; flex-direction:column; gap: 24px; }
.widget {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--secondary);
  padding: 12px 18px;
  display: flex; align-items:center; gap:8px;
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px;
  width: 40px; height: 2px;
  background: var(--primary);
}
.widget-body { padding: 16px; }

/* Popular posts widget */
.popular-posts { display:flex; flex-direction:column; gap:12px; }
.popular-item { display:grid; grid-template-columns:70px 1fr; gap:10px; }
.popular-img { height:56px; border-radius:6px; overflow:hidden; }
.popular-img img { width:100%; height:100%; object-fit:cover; }
.popular-num { font-size: 1.6rem; font-weight:800; color: rgba(230,57,70,0.15); line-height:1; font-family:var(--font-head); }
.popular-title { font-size: 0.8rem; font-weight:600; line-height:1.4; color:var(--text); }
.popular-title a { color:var(--text); }
.popular-title a:hover { color:var(--primary); }
.popular-date { font-size:0.68rem; color:var(--muted); margin-top:3px; }

/* Category widget */
.cat-list { display:flex; flex-direction:column; gap:0; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a {
  display: flex; align-items:center; justify-content:space-between;
  padding: 9px 0;
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
}
.cat-list li a:hover { color: var(--primary); padding-left: 8px; }
.cat-count {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  color: var(--muted);
}

/* Tags widget */
.tags-wrap { display:flex; flex-wrap:wrap; gap:8px; }
.tag-item {
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text);
  transition: all var(--transition);
}
.tag-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Social follow widget */
.social-widget { display:flex; flex-direction:column; gap:8px; }
.social-follow-item {
  display: flex; align-items:center; gap:10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  transition: transform var(--transition);
}
.social-follow-item:hover { transform: translateX(4px); }
.social-follow-item i { font-size: 1rem; width: 20px; text-align:center; }
.social-follow-item .follow-btn {
  margin-left:auto;
  font-size: 0.68rem;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 10px;
}
.sf-fb  { background: #1877f2; }
.sf-ig  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sf-tg  { background: #2ca5e0; }
.sf-li  { background: #0077b5; }
.sf-tw  { background: #000; }

/* Newsletter widget */
.newsletter-form { display:flex; flex-direction:column; gap:10px; }
.newsletter-form p { font-size:0.8rem; color:var(--muted); margin-bottom:6px; }
.newsletter-form input {
  width:100%; padding:10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.84rem;
  outline:none; transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--primary); }
.btn-subscribe {
  width:100%; padding:10px;
  background: var(--primary);
  color: #fff;
  border:none; border-radius:8px;
  font-size:0.85rem; font-weight:700;
  cursor:pointer; transition: background var(--transition);
}
.btn-subscribe:hover { background: var(--primary-d); }

/* =========================================
   TAZA KHABAR (Latest News) SECTION
========================================= */
.taza-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.taza-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  padding: 14px 20px;
  display: flex; align-items:center; justify-content:space-between;
}
.taza-header h2 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: flex; align-items:center; gap:8px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.5s infinite;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
}
@keyframes livePulse {
  0%  { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.taza-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.taza-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; gap: 12px; align-items: flex-start;
  transition: background var(--transition);
}
.taza-item:nth-child(even) { border-right: none; }
.taza-item:nth-last-child(-n+2) { border-bottom: none; }
.taza-item:hover { background: rgba(230,57,70,0.03); }
.taza-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(230,57,70,0.15);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}
.taza-title { font-size: 0.84rem; font-weight:600; line-height:1.45; color:var(--text); }
.taza-title a { color: var(--text); }
.taza-title a:hover { color: var(--primary); }
.taza-meta { font-size: 0.7rem; color: var(--muted); margin-top: 4px; }

/* =========================================
   FOOTER
========================================= */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  margin-top: 40px;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .site-name { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; margin-bottom: 16px; color: rgba(255,255,255,0.65); }
.footer-social { display:flex; gap:8px; }
.footer-social a {
  width: 34px; height:34px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-widget h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.footer-widget h3::after {
  content:''; position:absolute; bottom:-1px; left:0;
  width:32px; height:2px; background:var(--primary);
}
.footer-links { display:flex; flex-direction:column; gap:0; }
.footer-links a {
  padding: 6px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items:center; gap:8px;
  transition: all var(--transition);
}
.footer-links a::before { content:'›'; color: var(--primary); font-size: 1rem; }
.footer-links a:hover { color: #fff; padding-left: 6px; }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
  font-size: 0.78rem;
}
.footer-bottom-inner a { color: rgba(255,255,255,0.6); }
.footer-bottom-inner a:hover { color: #fff; }

/* =========================================
   SINGLE POST / PAGE
========================================= */
.post-header { margin-bottom: 24px; }
.post-title {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 14px;
}
.post-meta {
  display: flex; gap:16px; align-items:center; flex-wrap:wrap;
  font-size: 0.8rem; color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.post-meta a { color: var(--primary); }
.post-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.post-featured-img img { width:100%; max-height:460px; object-fit:cover; }
.post-content { font-size: 0.95rem; line-height: 1.85; color: var(--text); }
.post-content h2,.post-content h3 { font-family:var(--font-head); color:var(--secondary); margin: 24px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content ul,.post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(230,57,70,0.05);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}
.post-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.post-tags .tags-wrap { margin-top: 8px; }
.author-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; gap: 16px;
  margin-top: 28px;
}
.author-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.author-bio { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* =========================================
   PAGINATION
========================================= */
.pagination { display:flex; gap:6px; align-items:center; justify-content:center; margin: 28px 0; }
.page-num {
  width: 38px; height: 38px;
  display: flex; align-items:center; justify-content:center;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}
.page-num:hover, .page-num.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =========================================
   LOGIN / REGISTER PAGE
========================================= */
.auth-wrap {
  max-width: 480px;
  margin: 40px auto;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  padding: 32px;
  text-align: center;
}
.auth-header h1 { font-family:var(--font-head); font-size: 1.5rem; color:#fff; margin-bottom:6px; }
.auth-header p { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.auth-body { padding: 28px 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display:block; font-size:0.8rem; font-weight:600; color:var(--secondary); margin-bottom:7px; letter-spacing:0.3px; }
.form-group input {
  width:100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  outline:none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,57,70,0.1); }
.btn-auth {
  width:100%; padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  border: none; border-radius: 8px;
  font-size: 0.92rem; font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  font-family: var(--font-head);
}
.btn-auth:hover { opacity: 0.92; transform: translateY(-1px); }
.auth-footer-link { text-align:center; font-size:0.82rem; color:var(--muted); margin-top:16px; }
.auth-footer-link a { color: var(--primary); font-weight:600; }
.auth-divider { text-align:center; font-size:0.78rem; color:var(--muted); margin: 14px 0; position:relative; }
.auth-divider::before, .auth-divider::after { content:''; position:absolute; top:50%; width:40%; height:1px; background:var(--border); }
.auth-divider::before { left:0; }
.auth-divider::after { right:0; }
.social-login { display:flex; gap:10px; }
.btn-social-login {
  flex:1; padding:10px;
  border-radius:8px; border:1.5px solid var(--border);
  background:transparent; cursor:pointer;
  font-size:0.82rem; font-weight:600;
  display:flex; align-items:center; justify-content:center; gap:6px;
  transition: all var(--transition);
}
.btn-social-login:hover { background:var(--bg); }

/* =========================================
   BREADCRUMB
========================================= */
.breadcrumb { font-size:0.78rem; color:var(--muted); margin-bottom:20px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.breadcrumb a { color:var(--primary); }
.breadcrumb span { color:var(--muted); }

/* =========================================
   CONTACT PAGE
========================================= */
.contact-grid { display:grid; grid-template-columns:1fr 360px; gap:28px; }
.contact-form-wrap { background:var(--surface); border-radius:var(--radius); padding:28px; border:1px solid var(--border); box-shadow:var(--shadow); }
.contact-info-box { background:var(--secondary); border-radius:var(--radius); padding:28px; color:#fff; }
.contact-info-box h3 { font-family:var(--font-head); font-size:1.05rem; margin-bottom:16px; }
.contact-item { display:flex; align-items:flex-start; gap:12px; margin-bottom:18px; }
.contact-item i { width:36px; height:36px; border-radius:8px; background:rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:0.85rem; }
.contact-item p { font-size:0.82rem; opacity:0.85; line-height:1.5; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .site-content { grid-template-columns: 1fr 280px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-content { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .featured-section { grid-template-columns: 1fr; }
  .featured-main { grid-row: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .taza-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .hamburger { display: block; }
  .header-inner { height: 60px; }
  .site-name { font-size: 1.1rem; }
  .auth-btns .btn-login { display: none; }
}
@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .top-bar-date { display: none; }
  .featured-main img { height: 240px; }
}

/* =========================================
   UTILITY
========================================= */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.bg-primary { background: var(--primary); }
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px}
.hidden { display: none !important; }
.clearfix::after { content:''; display:table; clear:both; }
