/*
Theme Name:  Dreams Meanings
Theme URI:   https://dreamsmeanings.com
Author:      DreamsMeanings Team
Author URI:  https://dreamsmeanings.com
Description: A fast, SEO-optimized dream interpretation theme. Editorial magazine style with mystical branding. Built for Google crawlability and Core Web Vitals.
Version:     2.0.0
Requires at least: 6.4
Requires PHP:      8.0
Tested up to:      7.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dreams-meanings
Tags:        blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready
*/

:root {
  --color-primary:    #1A0A2E;
  --color-accent:     #6C3FC8;
  --color-bg:         #F5F0FF;
  --color-gold:       #FFD700;
  --color-white:      #FFFFFF;
  --color-text:       #2D1B4E;
  --color-text-light: #6B5B95;
  --color-card-bg:    #FFFFFF;
  --color-border:     rgba(108,63,200,0.15);
  --font-heading:     'Playfair Display', Georgia, serif;
  --font-body:        'Lato', Arial, sans-serif;
  --shadow-sm:        0 2px 8px rgba(26,10,46,0.08);
  --shadow-md:        0 4px 20px rgba(26,10,46,0.12);
  --shadow-lg:        0 8px 40px rgba(26,10,46,0.18);
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --container:        1200px;
  --sidebar-w:        300px;
  --transition:       0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@supports (scrollbar-gutter: stable) { html { scrollbar-gutter: stable; } }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: break-word;
}

img, video { max-width: 100%; height: auto; display: block; }
img { content-visibility: auto; }

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--color-gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: 3px;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.3; color: var(--color-primary); }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.4em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }
.section { padding: 70px 0; }
.section-pad { padding: 72px 0; }
.section-pad--alt { background: rgba(108,63,200,0.04); }
.section--white { background: var(--color-white); }
.section--dark  { background: var(--color-primary); }
.section-header { margin-bottom: 44px; }
.section-header--center, .section-head--center { text-align: center; margin-bottom: 44px; }
.section-label {
  display: inline-block; font-size: 0.72rem; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--color-accent); font-weight: 700; margin-bottom: 10px;
}
.section-label--gold { color: var(--color-gold); }
.section-title, .section-head--center h2 {
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; color: var(--color-primary);
  margin-bottom: 8px; line-height: 1.25;
}
.section-sub, .section-subtitle {
  color: var(--color-text-light); max-width: 540px; margin: 0 auto;
  font-size: 1rem; line-height: 1.65;
}
.section-cta { text-align: center; margin-top: 36px; }
.see-all { color: var(--color-accent); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

.text-xs  { font-size: 0.75rem; }
.text-sm  { font-size: 0.875rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.divider { width: 60px; height: 3px; background: linear-gradient(90deg,var(--color-accent),var(--color-gold)); border-radius: 2px; margin: 12px 0 20px; }

.tag {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; background: rgba(108,63,200,0.1); color: var(--color-accent);
  transition: all var(--transition);
}
.tag:hover { background: var(--color-accent); color: white; }
.tag--gold  { background: rgba(255,215,0,0.15); color: #9a7000; }
.tag--dark  { background: rgba(26,10,46,0.1); color: var(--color-primary); }

.entry-tag {
  display: inline-block; background: rgba(108,63,200,0.1); color: var(--color-accent);
  font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  text-decoration: none; margin-bottom: 8px; transition: all var(--transition);
}
.entry-tag:hover { background: var(--color-accent); color: white; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-family: var(--font-body);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; cursor: pointer;
  border: none; transition: all var(--transition); text-transform: uppercase;
  text-decoration: none; line-height: 1;
}
.btn--primary { background: var(--color-accent); color: var(--color-white); box-shadow: 0 4px 15px rgba(108,63,200,0.35); }
.btn--primary:hover { background: #5a32a8; color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,63,200,0.45); }
.btn--gold { background: var(--color-gold); color: var(--color-primary); box-shadow: 0 4px 15px rgba(255,215,0,0.3); }
.btn--gold:hover { background: #e6c200; color: var(--color-primary); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--color-accent); border: 2px solid var(--color-accent); }
.btn--outline:hover { background: var(--color-accent); color: white; }
.btn--outline-white { background: transparent; color: rgba(255,255,255,0.85); border: 2px solid rgba(255,255,255,0.3); }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); color: white; border-color: white; }
.btn--sm   { padding: 8px 18px; font-size: 0.8rem; }
.btn--full { width: 100%; justify-content: center; text-align: center; }

.site-header {
  background: var(--color-header-bg, var(--color-primary));
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  backface-visibility: hidden;
  -webkit-transform: translateZ(0); transform: translateZ(0);
  width: 100%; isolation: isolate;
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-height, 66px); padding: 10px 20px;
  gap: 16px; flex-wrap: nowrap; min-width: 0;
}

.site-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; max-width: 200px; }
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.logo-text { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-white); line-height: 1; white-space: nowrap; }
.logo-text span { color: var(--color-gold); }
.custom-logo { height: 44px; width: auto; }

.main-nav {
  display: flex; align-items: center; gap: 2px; flex: 1 1 auto;
  justify-content: center; min-width: 0; overflow: visible;
}
.main-nav ul, .main-nav ul.nav-menu, .main-nav .nav-menu {
  display: flex; flex-direction: row; align-items: center;
  gap: 2px; list-style: none; margin: 0; padding: 0;
}
.main-nav li, .main-nav ul li, .main-nav .nav-menu > li {
  list-style: none; margin: 0; padding: 0; display: block;
}
.main-nav li::before, .main-nav li::marker { display: none; content: none; }
.main-nav a {
  color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-sm); transition: all var(--transition);
  letter-spacing: 0.3px; white-space: nowrap; pointer-events: auto;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: var(--color-gold); background: rgba(255,255,255,0.07);
}
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--color-primary); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all var(--transition);
  box-shadow: var(--shadow-lg); list-style: none; z-index: 100;
}
.main-nav .menu-item-has-children:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu li { padding: 0; }
.main-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.main-nav .sub-menu a:hover { background: rgba(255,255,255,0.07); color: var(--color-gold); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.header-search-form {
  display: flex; align-items: center; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 6px 16px;
  gap: 8px; transition: all var(--transition);
}
.header-search-form:focus-within { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
.header-search-form input {
  background: none; border: none; outline: none; color: white;
  font-family: var(--font-body); font-size: 16px; width: 150px; min-width: 0;
}
@media (min-width: 901px) { .header-search-form input { font-size: 0.85rem; } }
.header-search-form input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px rgba(26,10,46,0.9) inset; -webkit-text-fill-color: white; }
.header-search-form input::placeholder { color: rgba(255,255,255,0.5); }
.header-search-form button { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; padding: 0; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; cursor: pointer; padding: 10px; background: none; border: none; color: white;
  -webkit-tap-highlight-color: transparent; tap-highlight-color: transparent;
  touch-action: manipulation; min-width: 44px; min-height: 44px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.hamburger::-moz-focus-inner { border: 0; padding: 0; }

.mobile-nav {
  display: none; background: var(--color-primary);
  border-top: 1px solid rgba(255,255,255,0.07); padding: 16px 20px;
  -webkit-overflow-scrolling: touch; overflow-y: auto; max-height: calc(100vh - 70px);
  position: absolute; top: 100%; left: 0; right: 0; z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5); -webkit-text-size-adjust: 100%;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.open { display: block; }
body.mobile-nav-open { overflow: hidden; position: fixed; width: 100%; -webkit-overflow-scrolling: none; touch-action: none; }
.mobile-nav a {
  display: block; color: rgba(255,255,255,0.8); padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.95rem; font-weight: 600;
  pointer-events: auto;
}
.mobile-nav a:last-child { border-bottom: none; }

.mobile-search-form { margin-top: 12px; display: flex; gap: 8px; }
.mobile-search-input {
  flex: 1; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); border-radius: 6px; color: white;
  font-family: inherit; outline: none; font-size: 16px; min-width: 0;
  -webkit-appearance: none; appearance: none;
}
.mobile-search-input::placeholder { color: rgba(255,255,255,0.5); }
.mobile-search-input:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); }
.mobile-search-input::-webkit-search-cancel-button { display: none; }

.trending-bar { background: #120720; padding: 10px 0; overflow: hidden; }
.trending-inner { display: flex; align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.trending-inner::-webkit-scrollbar { display: none; }
.trending-label { color: var(--color-gold); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.trending-tags { display: flex; gap: 8px; }
.trending-tags a { white-space: nowrap; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); padding: 4px 13px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); transition: all var(--transition); }
.trending-tags a:hover { background: var(--color-accent); color: white; border-color: var(--color-accent); }

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d1054 50%, #1a0a2e 100%);
  position: relative; overflow: hidden; padding: 80px 0 100px; contain: layout style;
}
.hero__bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 80% 50%,rgba(108,63,200,0.22) 0%,transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%,rgba(255,215,0,0.07) 0%,transparent 60%);
}
.hero__stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(1px 1px at 15% 20%,rgba(255,215,0,0.6) 0%,transparent 100%),
                    radial-gradient(1px 1px at 85% 15%,rgba(255,255,255,0.4) 0%,transparent 100%),
                    radial-gradient(1.5px 1.5px at 50% 70%,rgba(255,215,0,0.4) 0%,transparent 100%),
                    radial-gradient(1px 1px at 30% 85%,rgba(255,255,255,0.3) 0%,transparent 100%),
                    radial-gradient(1px 1px at 70% 40%,rgba(255,215,0,0.5) 0%,transparent 100%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,215,0,0.12); border: 1px solid rgba(255,215,0,0.28);
  color: var(--color-gold); padding: 5px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero__title { font-size: clamp(1.9rem, 5vw, 3.4rem); color: white; line-height: 1.2; margin-bottom: 20px; }
.hero__title em { color: var(--color-gold); font-style: italic; }
.hero__desc { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; line-height: 1.8; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.hero__stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero__stat-num { display: block; font-family: var(--font-heading); font-size: 1.9rem; font-weight: 900; color: var(--color-gold); line-height: 1; }
.hero__stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }

.hero__search { margin-top: 24px; }
.hero-search-form { display: flex; gap: 0; max-width: 520px; }
.hero-search__input {
  flex: 1; padding: 14px 18px; border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: rgba(255,255,255,0.12); color: #fff; font-size: 0.95rem;
  outline: none; backdrop-filter: blur(8px);
}
.hero-search__input::placeholder { color: rgba(255,255,255,0.55); }
.hero-search__input:focus { border-color: var(--color-gold); }
.hero-search__btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 14px 22px; border: none; cursor: pointer; }

.hero__visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero__moon {
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,rgba(255,215,0,0.28) 0%,rgba(108,63,200,0.38) 40%,rgba(26,10,46,0.8) 100%);
  border: 2px solid rgba(255,215,0,0.18); box-shadow: 0 0 60px rgba(108,63,200,0.4),0 0 120px rgba(108,63,200,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 5.5rem;
  position: relative; animation: moonFloat 6s ease-in-out infinite;
}
@keyframes moonFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__moon::before,.hero__moon::after { content: ''; position: absolute; border-radius: 50%; animation: orbitPulse 4s ease-in-out infinite; }
.hero__moon::before { width: 320px; height: 320px; border: 1px solid rgba(255,215,0,0.1); }
.hero__moon::after  { width: 370px; height: 370px; border: 1px solid rgba(108,63,200,0.1); animation-delay: 1.2s; }
@keyframes orbitPulse { 0%,100% { opacity:1;transform:scale(1); } 50% { opacity:0.4;transform:scale(1.06); } }

.cats-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(175px,1fr)); gap: 16px; }

.categories-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

.cat-card {
  background: var(--color-card-bg); border-radius: var(--radius-md);
  padding: 28px 20px; text-align: center;
  border: 1px solid var(--color-border); box-shadow: 0 4px 24px rgba(108,63,200,0.10);
  transition: all var(--transition); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none;
}
.cat-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--color-accent),var(--color-gold)); transform: scaleX(0); transition: transform var(--transition); }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); color: inherit; }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon, .cat-card__icon { font-size: 2.4rem; margin-bottom: 13px; display: block; }
.cat-name, .cat-card__name { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 5px; display: block; }
.cat-count, .cat-card__count { font-size: 0.77rem; color: var(--color-text-light); display: block; }

.post-card {
  background: var(--color-card-bg); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(108,63,200,0.08); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.post-card__img-wrap { overflow: hidden; position: relative; }
.post-card__img-wrap a { display: block; }
.post-card__img { width: 100%; height: 200px; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.4s ease; }
.post-card:hover .post-card__img { transform: scale(1.04); }
.post-card__img-placeholder { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(145deg,var(--color-primary),#3d1878); }

.post-card__cat-badge { position: absolute; top: 12px; left: 12px; }
.post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.post-card__date, .post-card__read-time { font-size: 0.78rem; color: var(--color-text-light); }
.post-card__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--color-primary); margin: 8px 0; line-height: 1.4; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--color-accent); }
.post-card__excerpt { font-size: 0.88rem; color: #666; line-height: 1.6; flex: 1; margin: 0 0 12px; }
.post-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--color-border); margin-top: auto; }

.post-author { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--color-text-light); }
.post-author__avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,var(--color-accent),var(--color-gold)); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; color: white; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.post-author__avatar img { width: 100%; height: 100%; object-fit: cover; }

.read-more { font-size: 0.82rem; font-weight: 700; color: var(--color-accent); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; transition: gap var(--transition); }
.read-more:hover { gap: 8px; }

.post-card--featured { border: none; position: relative; min-height: 420px; }
.post-card--featured .post-card__img, .post-card--featured .post-card__img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: unset; object-fit: cover; }
.post-card--featured .post-card__body { position: relative; z-index: 1; margin-top: auto; background: linear-gradient(0deg,rgba(26,10,46,0.97) 0%,rgba(26,10,46,0.82) 55%,transparent 100%); padding: 28px; }
.post-card--featured .post-card__title { font-size: 1.55rem; color: white; }
.post-card--featured .post-card__title a { color: white; }
.post-card--featured .post-card__title a:hover { color: var(--color-gold); }
.post-card--featured .post-card__excerpt { color: rgba(255,255,255,0.68); }
.post-card--featured .read-more { color: var(--color-gold); }

.post-card--horizontal { display: grid; grid-template-columns: 100px 1fr; gap: 0; min-height: 100px; }
.post-card--horizontal .post-card__img-wrap { height: auto; min-height: 100px; }
.post-card--horizontal .post-card__img { width: 100%; height: 100%; aspect-ratio: unset; }
.post-card--horizontal .post-card__body { padding: 14px; }
.post-card--horizontal .post-card__title { font-size: 0.9rem; -webkit-line-clamp: 3; }
.post-card--horizontal .post-card__excerpt { display: none; }

.posts-grid { display: grid; gap: 24px; }
.posts-grid--3, .posts-grid { grid-template-columns: repeat(3,1fr); }
.posts-grid--2col { grid-template-columns: repeat(2,1fr); }
.featured-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.featured-layout__side { display: flex; flex-direction: column; gap: 18px; }

.page-banner, .archive-header, .post-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d1054 100%);
  padding: 55px 0; position: relative; overflow: hidden;
}
.page-banner::before, .archive-header::before, .post-header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 100% 50%, rgba(108,63,200,0.22) 0%, transparent 70%);
}
.page-banner__inner, .archive-header__inner, .post-header__inner { position: relative; z-index: 1; }
.post-header__inner { max-width: 820px; }
.archive-header { padding: 48px 0 40px; }
.archive-header__inner { display: flex; align-items: center; gap: 20px; }
.archive-header__icon { font-size: 3rem; flex-shrink: 0; line-height: 1; }
.archive-header__label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-gold); margin-bottom: 6px; }
.archive-header__title, .page-banner__title { font-size: clamp(1.4rem, 4.5vw, 2.4rem); color: white; line-height: 1.2; margin-bottom: 8px; }
.archive-header__desc, .page-banner__desc { color: rgba(255,255,255,0.68); font-size: 0.95rem; line-height: 1.7; max-width: 560px; }
.archive-header__meta { font-size: 0.8rem; color: rgba(255,255,255,0.45); font-weight: 600; }
.archive-header__avatar { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--color-gold); }
.archive-header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-header { padding: 55px 0; }
.post-header__title { font-size: clamp(1.3rem, 4.5vw, 2.6rem); color: white; line-height: 1.3; margin: 16px 0; }
.post-header__meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.post-meta-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.62); font-size: 0.84rem; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb__sep { color: rgba(255,255,255,0.25); }
.breadcrumb-bar { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 10px 0; }

.filter-bar { background: var(--color-card-bg); border-radius: var(--radius-md); padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 28px; border: 1px solid var(--color-border); flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.filter-bar__label { font-size: 0.8rem; font-weight: 700; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.filter-bar__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag { padding: 6px 15px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--color-border); color: var(--color-text-light); cursor: pointer; background: none; font-family: var(--font-body); transition: all var(--transition); }
.filter-tag.active, .filter-tag:hover { background: var(--color-accent); color: white; border-color: var(--color-accent); }

.alphabet-nav, .az-nav { display: flex; flex-wrap: wrap; gap: 8px; background: var(--color-card-bg); padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--color-border); margin-bottom: 32px; justify-content: center; margin-top: 24px; }
.alpha-btn, .az-nav__link {
  width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.85rem; background: var(--color-bg);
  border: 1px solid var(--color-border); color: var(--color-text-light); cursor: pointer;
  transition: all var(--transition); font-family: var(--font-body); text-decoration: none;
}
.alpha-btn:hover, .alpha-btn.active, .az-nav__link:hover { background: var(--color-accent); color: white; border-color: var(--color-accent); }

.pagination, .nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 50px; flex-wrap: wrap;
}
.page-numbers, .pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 700;
  background: var(--color-card-bg); border: 1px solid var(--color-border);
  color: var(--color-text); transition: all var(--transition);
  text-decoration: none; font-family: var(--font-body);
}
.page-numbers:hover, .page-numbers.current { background: var(--color-accent); color: white; border-color: var(--color-accent); }
.page-numbers.dots { background: none; border: none; cursor: default; }

.layout-content-sidebar, .article-layout, .archive-layout {
  display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: 40px; align-items: start;
}
.article-layout { padding: 48px 0 70px; }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar--sticky { position: sticky; top: 90px; }

.widget { background: var(--color-card-bg); border-radius: var(--radius-md); padding: 22px 20px; border: 1px solid var(--color-border); }
.widget--dark { background: var(--color-primary); border-color: transparent; color: rgba(255,255,255,0.8); }
.widget--dark .widget-title, .widget--dark .widgettitle { color: white; border-bottom-color: rgba(255,255,255,0.1); }
.widget--dark p { color: rgba(255,255,255,0.68); font-size: 0.88rem; }

.widget-title, .widgettitle {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  color: var(--color-primary); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border); position: relative;
}
.widget-title::after, .widgettitle::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 38px; height: 2px; background: var(--color-accent); }
.widget--dark .widget-title::after, .widget--dark .widgettitle::after { background: var(--color-gold); }

.widget ul { list-style: none; padding: 0; margin-top: 14px; }
.widget ul li { padding: 9px 0; border-bottom: 1px solid var(--color-bg); font-size: 0.88rem; margin: 0; }
.widget ul li:last-child { border-bottom: none; }
.widget ul a { color: var(--color-text); display: flex; align-items: center; gap: 7px; transition: color var(--transition); }
.widget ul a:hover { color: var(--color-accent); }

.widget__cat-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.widget__cat-list li { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.widget__cat-list a { font-size: 0.88rem; color: var(--color-text); transition: color var(--transition); }
.widget__cat-list a:hover { color: var(--color-accent); }
.widget__cat-count { background: var(--color-bg); color: var(--color-text-light); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; flex-shrink: 0; }

.widget__post-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.widget__post-list li { margin: 0; }
.widget__post-list a { display: flex; align-items: center; gap: 10px; color: var(--color-text); font-size: 0.85rem; font-weight: 600; line-height: 1.4; transition: color var(--transition); }
.widget__post-list a:hover { color: var(--color-accent); }
.widget__post-thumb { width: 54px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }

.tagcloud, .widget-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tagcloud a, .widget-tags a { display: inline-block; padding: 5px 13px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; background: var(--color-bg); color: var(--color-text-light); border: 1px solid var(--color-border); transition: all var(--transition); }
.tagcloud a:hover, .widget-tags a:hover { background: var(--color-accent); color: white; border-color: var(--color-accent); }

.widget .search-form { display: flex; gap: 8px; margin-top: 14px; }
.widget .search-field { flex: 1; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.88rem; color: var(--color-text); outline: none; transition: border-color var(--transition); }
.widget .search-field:focus { border-color: var(--color-accent); }
.widget .search-submit { background: var(--color-accent); color: white; border: none; padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); }
.widget .search-submit:hover { background: #5a32a8; }

.widget--dark input[type="email"] { width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); color: white; font-family: var(--font-body); font-size: 0.88rem; margin-bottom: 10px; outline: none; }
.widget--dark input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }

.newsletter {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3d1878 100%);
  padding: 70px 0; position: relative; overflow: hidden;
}
.newsletter::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 100% at 90% 50%, rgba(108,63,200,0.25) 0%, transparent 70%); }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.newsletter__title { font-size: clamp(1.4rem,3.5vw,2.2rem); color: white; margin-bottom: 12px; }
.newsletter__title em { color: var(--color-gold); font-style: italic; }
.newsletter__desc { color: rgba(255,255,255,0.68); line-height: 1.8; }
.newsletter__form { display: flex; flex-direction: column; gap: 12px; }
.newsletter__input-row { display: flex; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-md); overflow: hidden; }
.newsletter__input-row input { flex: 1; background: none; border: none; outline: none; color: white; padding: 14px 18px; font-family: var(--font-body); font-size: 0.95rem; }
.newsletter__input-row input::placeholder { color: rgba(255,255,255,0.42); }
.newsletter__input-row button { background: var(--color-gold); color: var(--color-primary); border: none; padding: 14px 26px; font-weight: 700; font-size: 0.88rem; cursor: pointer; font-family: var(--font-body); transition: background var(--transition); white-space: nowrap; }
.newsletter__input-row button:hover { background: #e6c200; }
.newsletter__privacy { color: rgba(255,255,255,0.42); font-size: 0.76rem; }

.dm-nl-form { display: flex; flex-direction: column; gap: 12px; }
.dm-nl-input { width: 100%; padding: 13px 16px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); color: white; font-family: var(--font-body); font-size: 16px; outline: none; transition: border-color var(--transition); }
.dm-nl-input::placeholder { color: rgba(255,255,255,0.45); }
.dm-nl-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); }
.dm-nl-msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; text-align: center; }
.dm-nl-msg--success { background: rgba(34,197,94,0.15); color: #16a34a; border: 1px solid rgba(34,197,94,0.3); }
.dm-nl-msg--error   { background: rgba(239,68,68,0.12); color: #dc2626; border: 1px solid rgba(239,68,68,0.25); }

.entry-content {
  background: var(--color-card-bg); border-radius: var(--radius-md);
  padding: 38px; border: 1px solid var(--color-border); line-height: 1.9;
}
.entry-content h2 { font-size: 1.55rem; margin: 34px 0 14px; }
.entry-content h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.entry-content h4 { font-size: 1.05rem; margin: 20px 0 8px; }
.entry-content p { margin-bottom: 1.2em; color: var(--color-text); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 24px; }
.entry-content li { margin-bottom: 6px; line-height: 1.7; color: var(--color-text); }
.entry-content a { color: var(--color-accent); text-decoration: underline; }
.entry-content a:hover { color: var(--color-primary); }
.entry-content img { border-radius: var(--radius-md); margin: 24px 0; }
.entry-content blockquote { background: var(--color-bg); border-left: 4px solid var(--color-accent); padding: 18px 22px; margin: 26px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-heading); font-style: italic; color: var(--color-primary); font-size: 1.08rem; }
.entry-content blockquote p { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.entry-content table th { background: var(--color-primary); color: white; padding: 10px 14px; text-align: left; font-family: var(--font-body); font-weight: 700; }
.entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--color-border); color: var(--color-text); }
.entry-content table tr:nth-child(even) td { background: var(--color-bg); }

.highlight-box { background: linear-gradient(135deg,rgba(108,63,200,0.06),rgba(255,215,0,0.06)); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px; margin: 26px 0; }
.highlight-box h4 { color: var(--color-accent); margin-bottom: 10px; font-size: 0.95rem; }
.highlight-box p { margin: 0; font-size: 0.92rem; }

#dm-toc, .toc { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 28px; }
#dm-toc[hidden] { display: none; }
#dm-toc::before { content: '📋 Contents'; display: block; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--color-primary); margin-bottom: 12px; }
.toc__title { font-family: var(--font-heading); font-size: 0.98rem; color: var(--color-primary); margin-bottom: 14px; }
.toc__list, .toc ol { padding-left: 1.2em; margin: 0; display: flex; flex-direction: column; gap: 5px; list-style: none; counter-reset: toc; }
.toc__list li, .toc li { margin: 0; counter-increment: toc; padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: 0.86rem; }
.toc__list li:last-child, .toc li:last-child { border-bottom: none; }
.toc__list a { font-size: 0.85rem; color: var(--color-accent); }
.toc__list a:hover, .toc a:hover { color: var(--color-gold); }
.toc__sub { margin-left: 16px; }
.toc__sub a { font-size: 0.8rem; color: var(--color-text-light); }
.toc a { color: var(--color-text-light); display: flex; align-items: center; gap: 10px; }
.toc a::before { content: counter(toc); background: var(--color-accent); color: white; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }

.share-bar { display: flex; align-items: center; gap: 10px; padding: 18px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin: 30px 0; flex-wrap: wrap; }
.share-bar__label { font-weight: 700; font-size: 0.82rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 15px; min-height: 44px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; border: none; cursor: pointer; font-family: var(--font-body); transition: all var(--transition); }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn--fb  { background: #1877F2; color: white; }
.share-btn--tw  { background: #000; color: white; }
.share-btn--pin { background: #E60023; color: white; }
.share-btn--wa  { background: #25D366; color: white; }

.author-box { background: var(--color-bg); border-radius: var(--radius-md); padding: 26px; display: flex; gap: 20px; align-items: flex-start; margin-top: 34px; border: 1px solid var(--color-border); }
.author-box__avatar { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg,var(--color-accent),var(--color-gold)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; overflow: hidden; }
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__name { font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-primary); margin-bottom: 3px; }
.author-box__role { font-size: 0.78rem; color: var(--color-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.author-box__bio { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.7; }

.comments-section { margin-top: 48px; }
.comments-section h2 { font-size: 1.4rem; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.comment:last-child { border-bottom: none; }
.comment__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg); flex-shrink: 0; overflow: hidden; }
.comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment__body-wrap { flex: 1; }
.comment__name { font-weight: 700; font-size: 0.9rem; color: var(--color-primary); }
.comment__date { font-size: 0.78rem; color: var(--color-text-light); margin-left: 8px; }
.comment__body { font-size: 0.9rem; color: var(--color-text); margin-top: 6px; }
.comment__reply { margin-top: 8px; }

.comment-form { margin-top: 32px; }
.comment-form h3, .comment-form .comment-reply-title { font-size: 1.2rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field, .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label, .form-group label { font-size: 0.82rem; font-weight: 700; color: var(--color-text-light); }
.form-field label span { color: var(--color-accent); }
.form-field input, .form-field textarea, .form-group input, .form-group textarea {
  padding: 12px 16px; border: 1.5px solid rgba(108,63,200,0.2); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--color-text);
  background: #fafafa; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(108,63,200,0.1); background: #fff;
}
.form-field textarea, .form-group textarea { resize: vertical; min-height: 120px; }
.form-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.related-posts { margin-top: 48px; }
.related-posts h3 { font-size: 1.4rem; margin-bottom: 8px; }

.trust-strip { padding: 48px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-item__icon { font-size: 2rem; }
.trust-item strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--color-primary); }
.trust-item span:last-child { font-size: 0.82rem; color: #666; }

.popular-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.popular-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid rgba(108,63,200,0.08); border-radius: 10px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.popular-card:hover { border-color: var(--color-accent); box-shadow: 0 4px 16px rgba(108,63,200,0.1); }
.popular-card__icon { font-size: 1.4rem; flex-shrink: 0; }
.popular-card__title { font-size: 0.9rem; font-weight: 600; color: var(--color-primary); }

.hp-trending { background: var(--color-primary); }
.hp-trending .section-head--center h2 { color: #fff; }
.hp-trend__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
.hp-trend-card { background: rgba(255,255,255,0.05); border-radius: 14px; padding: 20px; display: flex; gap: 14px; align-items: center; transition: background 0.22s,transform 0.22s; border-left: 4px solid transparent; text-decoration: none; color: inherit; }
.hp-trend-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); border-left-color: var(--color-gold); }
.hp-trend-card__num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: rgba(255,255,255,0.18); line-height: 1; flex-shrink: 0; width: 36px; }
.hp-trend-card__icon { font-size: 1.6rem; flex-shrink: 0; }
.hp-trend-card__info { display: flex; flex-direction: column; gap: 3px; }
.hp-trend-card__title { font-family: var(--font-heading); font-size: 0.97rem; font-weight: 600; color: rgba(255,255,255,0.9); line-height: 1.35; }
.hp-trend-card__meta { font-size: 0.75rem; color: rgba(255,255,255,0.45); }

.hp-popular { background: #fff; }
.hp-popular__grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr; gap: 24px; }
.hp-pop-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 24px rgba(108,63,200,0.10); transition: transform 0.22s,box-shadow 0.22s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.hp-pop-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(108,63,200,0.20); }
.hp-pop-card__thumb { overflow: hidden; position: relative; background: var(--color-primary); }
.hp-pop-card--large .hp-pop-card__thumb { height: 280px; }
.hp-pop-card--small .hp-pop-card__thumb { height: 170px; }
.hp-pop-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-pop-card__thumb--emoji { display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.hp-pop-card__thumb-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(26,10,46,.65) 0%,transparent 50%); }
.hp-pop-card__cat-badge { position: absolute; top: 14px; left: 14px; background: var(--color-gold); color: var(--color-primary); font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.hp-pop-card__body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.hp-pop-card__meta { font-size: 0.76rem; color: var(--color-text-light); margin-bottom: 9px; display: flex; gap: 10px; flex-wrap: wrap; }
.hp-pop-card__title { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); line-height: 1.3; margin-bottom: 10px; }
.hp-pop-card--large .hp-pop-card__title { font-size: 1.35rem; }
.hp-pop-card--small .hp-pop-card__title { font-size: 1rem; }
.hp-pop-card__title a { color: inherit; text-decoration: none; }
.hp-pop-card__title a:hover { color: var(--color-accent); }
.hp-pop-card__excerpt { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.6; flex: 1; }
.hp-pop-card__footer { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.hp-pop-card__readmore { font-size: 0.82rem; font-weight: 700; color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
.hp-pop-card__readmore:hover { color: var(--color-primary); }

.page-hero { padding: 60px 0 48px; text-align: center; }
.page-hero--dictionary { background: linear-gradient(135deg,#1A0A2E 0%,#2d1463 100%); color: #fff; padding: 80px 0 60px; }
.page-hero__title { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: #fff; margin: 0 0 16px; }
.page-hero__desc { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 600px; margin: 0 auto 32px; }
.dict-search-wrap { max-width: 520px; margin: 32px auto; }
.dict-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; padding: 48px 0; }
.dict-letter-group { padding-top: 8px; }
.dict-letter { font-size: 2rem; font-weight: 800; color: var(--color-accent); border-bottom: 2px solid rgba(108,63,200,0.2); padding-bottom: 8px; margin: 0 0 12px; }
.dict-list { list-style: none; margin: 0; padding: 0; }
.dict-list li { border-bottom: 1px solid rgba(108,63,200,0.06); }
.dict-list a { display: block; padding: 8px 0; font-size: 0.9rem; color: var(--color-primary); text-decoration: none; transition: color 0.15s,padding-left 0.15s; }
.dict-list a:hover { color: var(--color-accent); padding-left: 6px; }

.page-hero--about { background: var(--color-primary); color: #fff; padding: 80px 0; }
.page-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.page-hero__text h1 { color: #fff; font-size: clamp(2rem,4vw,3rem); margin: 16px 0; }
.page-hero__text .lead { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.page-hero__image img { width: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.stats-strip { padding: 48px 0; background: rgba(108,63,200,0.06); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-item__number { font-size: 2.2rem; font-weight: 800; color: var(--color-accent); }
.stat-item__label { font-size: 0.85rem; color: #666; font-weight: 500; }
.team-section { padding: 64px 0; background: rgba(108,63,200,0.03); }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 36px; }
.team-card { background: #fff; border-radius: 16px; padding: 32px 24px; text-align: center; border: 1px solid rgba(108,63,200,0.08); transition: transform 0.2s,box-shadow 0.2s; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(108,63,200,0.12); }
.team-card__avatar { font-size: 3rem; margin-bottom: 16px; }
.team-card__name { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); margin: 0 0 4px; }
.team-card__role { display: block; font-size: 0.82rem; color: var(--color-accent); font-weight: 600; margin-bottom: 12px; }
.team-card__bio { font-size: 0.88rem; color: #666; line-height: 1.6; margin: 0; }

.page-contact { padding: 72px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
.contact-info h1 { font-size: clamp(1.8rem,3vw,2.4rem); margin: 16px 0 20px; }
.contact-info .lead { color: #555; font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; }
.contact-details { list-style: none; padding: 0; margin: 0; }
.contact-details li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(108,63,200,0.08); font-size: 0.92rem; }
.contact-details a { color: var(--color-accent); text-decoration: none; }
.contact-form-wrap { background: #fff; border: 1px solid rgba(108,63,200,0.1); border-radius: 16px; padding: 40px; }

.archive-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.archive-toolbar__count { font-size: 0.85rem; color: var(--color-text-light); font-weight: 600; }
.archive-sort-select { padding: 7px 14px; border: 1px solid var(--color-border); border-radius: 50px; background: white; font-family: var(--font-body); font-size: 0.82rem; color: var(--color-text); outline: none; cursor: pointer; }
.archive-sort-select:focus { border-color: var(--color-accent); }

.search-header { background: var(--color-primary); padding: 36px 0; text-align: center; }
.search-header h1 { color: white; font-size: clamp(1.4rem,3vw,2rem); }
.search-header span { color: var(--color-gold); }
.no-results-box { text-align: center; padding: 60px 24px; background: white; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.no-results-box__icon { font-size: 3.5rem; margin-bottom: 16px; }
.no-results-box h2 { margin-bottom: 12px; color: var(--color-primary); }
.no-results-box p { color: var(--color-text-light); max-width: 400px; margin: 0 auto 24px; line-height: 1.65; }
.no-results-box__form { max-width: 400px; margin: 0 auto 20px; display: flex; gap: 8px; }
.no-results-box__form input { flex: 1; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; outline: none; min-width: 0; }
.no-results-box__form input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(108,63,200,0.12); }
.error-404 { text-align: center; padding: 80px 20px; max-width: 560px; margin: 0 auto; }
.error-404__code { font-size: 6rem; font-family: var(--font-heading); font-weight: 900; line-height: 1; background: linear-gradient(135deg,var(--color-accent),var(--color-gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }

.site-footer { background: var(--color-footer-bg,#0D0520); color: var(--footer-text-color,rgba(255,255,255,0.72)); padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__brand p { margin-top: 14px; font-size: 0.86rem; line-height: 1.8; max-width: 270px; }
.footer__heading { font-family: var(--font-heading); font-size: 1rem; color: white; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer__links a { color: rgba(255,255,255,0.62); font-size: 0.86rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--color-gold); }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: rgba(255,255,255,0.7); transition: all var(--transition); }
.footer__social a:hover { background: var(--color-accent); border-color: var(--color-accent); color: white; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 0.8rem; }
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.footer__bottom-links a:hover { color: var(--color-gold); }

.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter, .alignfull { margin: 24px auto; text-align: center; }
.alignwide  { max-width: 1000px; margin-left: auto; margin-right: auto; }
.wp-caption { text-align: center; }
.wp-caption-text { font-size: 0.82rem; color: var(--color-text-light); margin-top: 6px; }
.wp-post-image { width: 100%; height: auto; border-radius: var(--radius-md); }
.sticky .post-card { border: 2px solid var(--color-gold); }
.wp-block-quote { background: var(--color-bg); border-left: 4px solid var(--color-accent); padding: 18px 22px; margin: 26px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.wp-block-pullquote { border-top: 4px solid var(--color-gold); border-bottom: 4px solid var(--color-gold); padding: 28px; text-align: center; margin: 32px 0; }
.wp-block-pullquote blockquote { border: none; background: none; padding: 0; }
.wp-block-cover { border-radius: var(--radius-md); overflow: hidden; }
.wp-block-button__link { background: var(--color-accent) !important; border-radius: 50px !important; font-weight: 700; transition: all var(--transition) !important; }
.wp-block-button__link:hover { background: #5a32a8 !important; transform: translateY(-2px); }
.is-style-outline .wp-block-button__link { background: transparent !important; border: 2px solid var(--color-accent) !important; color: var(--color-accent) !important; }
.is-style-outline .wp-block-button__link:hover { background: var(--color-accent) !important; color: white !important; }
:where(.wp-site-blocks) > * { margin-block-start: 0; margin-block-end: 0; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.screen-reader-text:focus { background: white; border-radius: 3px; clip: auto; clip-path: none; color: var(--color-primary); display: block; font-size: 0.875rem; font-weight: 700; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 6px; top: 7px; z-index: 99999; }

.scroll-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; opacity: 0; transition: opacity 0.3s; z-index: 999; display: flex; align-items: center; justify-content: center; }
.scroll-top.visible { opacity: 1; }

.faq-block { margin: 24px 0; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-question { padding: 14px 16px; font-family: var(--font-heading); font-weight: 700; cursor: pointer; color: var(--color-primary); }
.faq-answer { padding: 14px 16px; border-top: 1px solid var(--color-border); background: var(--color-bg); }

@media (max-width: 1024px) {
  .categories-grid   { grid-template-columns: repeat(2,1fr); }
  .featured-layout   { grid-template-columns: 1fr; }
  .footer__grid      { grid-template-columns: 1fr 1fr; }
  .layout-content-sidebar, .article-layout, .archive-layout { grid-template-columns: 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__inner       { grid-template-columns: 1fr; }
  .hero__visual      { display: none; }
  .posts-grid, .posts-grid--3 { grid-template-columns: repeat(2,1fr); }
  .trust-grid        { grid-template-columns: repeat(2,1fr); }
  .popular-grid      { grid-template-columns: repeat(3,1fr); }
  .dict-grid         { grid-template-columns: repeat(2,1fr); }
  .team-grid         { grid-template-columns: repeat(2,1fr); }
  .page-hero__inner  { grid-template-columns: 1fr; }
  .page-hero__image  { display: none; }
  .stats-grid        { grid-template-columns: repeat(2,1fr); }
  :root { --sidebar-w: 100%; }
  .main-nav a { padding: 7px 10px; font-size: 0.82rem; }
  .header-search-form input { width: 110px; }
  .container { padding: 0 24px; }
}

@media (max-width: 860px) and (min-width: 769px) {
  .header-search-form { display: none; }
  .main-nav a { padding: 7px 9px; font-size: 0.8rem; }
}

@media (min-width: 769px) {
  .hamburger    { display: none; }
  .mobile-nav   { display: none; }
  .main-nav     { display: flex; }
  .header-actions { display: flex; }
}

@media (max-width: 768px) {
  .main-nav           { display: none; }
  .header-actions     { display: none; }
  .hamburger          { display: flex; }
  .header-inner       { height: 60px; padding: 0 16px; gap: 8px; }
  .logo-text          { font-size: 1.1rem; }
  .custom-logo        { height: 36px; }

  .hero { padding: 44px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__title { font-size: clamp(1.7rem,6vw,2.8rem); }
  .hero__desc { font-size: 0.95rem; margin-bottom: 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; width: 100%; padding: 14px 20px; }
  .hero__search { max-width: 100%; }
  .hero__stats { gap: 0; margin-top: 24px; padding-top: 18px; flex-wrap: nowrap; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.12); }
  .hero__stat { flex: 1; text-align: center; padding: 0 4px; }
  .hero__stat-num { font-size: 1.35rem; }
  .hero__stat-label { font-size: 0.68rem; letter-spacing: 0.5px; }
  .hero-search-form { flex-direction: row; }
  .hero-search__input { border-radius: var(--radius-md) 0 0 var(--radius-md); font-size: 16px; }
  .hero-search__btn   { border-radius: 0 var(--radius-md) var(--radius-md) 0; white-space: nowrap; }

  .categories-grid, .cats-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .cat-card { padding: 20px 14px; }
  .cat-icon, .cat-card__icon { font-size: 1.8rem; margin-bottom: 10px; }
  .cat-name, .cat-card__name { font-size: 0.88rem; }

  .posts-grid, .posts-grid--3, .posts-grid--2col { grid-template-columns: 1fr; gap: 16px; }
  .post-card__body { padding: 16px; }
  .post-card__title { font-size: 1rem; }
  .post-card--horizontal { grid-template-columns: 80px 1fr; }
  .post-card--horizontal .post-card__img-wrap { min-height: 80px; }
  .featured-layout, .featured-layout__side { grid-template-columns: 1fr; }

  .article-layout { grid-template-columns: 1fr; padding: 0 0 48px; }
  .sidebar--sticky { position: static; top: auto; }
  .entry-content { padding: 20px 16px; font-size: 0.95rem; }
  .entry-content h2 { font-size: 1.3rem; }
  .entry-content h3 { font-size: 1.1rem; }
  .archive-layout { grid-template-columns: 1fr; }
  .layout-content-sidebar { display: flex; flex-direction: column; gap: 0; }
  .layout-content-sidebar > aside { order: 2; margin-top: 32px; }
  .layout-content-sidebar > main  { order: 1; }

  .post-header, .archive-header { padding: 28px 0; }
  .post-header__title { font-size: clamp(1.4rem,5vw,2rem); }
  .archive-header__title { font-size: 1.5rem; }
  .archive-toolbar { flex-direction: column; align-items: flex-start; flex-wrap: wrap; gap: 10px; }

  .share-bar { flex-wrap: wrap; gap: 8px; }
  .author-box { flex-direction: column; gap: 12px; padding: 18px; }
  .author-box__avatar { width: 54px; height: 54px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer__bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .site-footer { padding: 40px 0 0; }

  .newsletter { padding: 44px 0; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 24px; }
  .newsletter__title { font-size: 1.5rem; }
  .newsletter__input-row { flex-direction: column; }
  .newsletter__input-row button { border-radius: 0 0 var(--radius-sm) var(--radius-sm); width: 100%; }

  .form-row, .form-row--two { grid-template-columns: 1fr; }
  .comment { gap: 10px; }
  .comment__avatar { width: 36px; height: 36px; }

  .trust-grid  { grid-template-columns: 1fr 1fr; }
  .popular-grid { grid-template-columns: repeat(2,1fr); }
  .dict-grid   { grid-template-columns: 1fr; }
  .team-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .hp-popular__grid { grid-template-columns: 1fr 1fr; }
  .hp-pop-card--large { grid-column: 1 / -1; }
  .hp-trend__grid { grid-template-columns: 1fr 1fr; }
  .hp-cats__grid { grid-template-columns: repeat(3,1fr); }

  .section, .section-pad { padding: 44px 0; }
  .section-title { font-size: 1.5rem; }
  .section-header { margin-bottom: 28px; }

  .widget { padding: 20px 16px; }
  .sidebar { max-width: 100%; }
  .dm-nl-input, input[type="email"], input[type="text"], input[type="search"] { font-size: 16px; min-height: 48px; }

  .trending-tags { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; flex-wrap: nowrap; }
  .trending-tags::-webkit-scrollbar { display: none; }
  .trending-tags a { flex-shrink: 0; }

  .no-results-box__form { flex-direction: column; }
  .no-results-box__form input, .no-results-box__form .btn { width: 100%; border-radius: var(--radius-sm); }

  .post-card__footer { flex-wrap: wrap; gap: 8px; }
  .breadcrumb { flex-wrap: wrap; row-gap: 4px; }
  .footer__links a { padding: 6px 0; display: flex; align-items: center; min-height: 44px; }
}

@media (max-width: 480px) {
  .cats-grid, .categories-grid { grid-template-columns: repeat(2,1fr); }
  .hp-cats__grid { grid-template-columns: repeat(2,1fr); }
  .hp-popular__grid { grid-template-columns: 1fr; }
  .hp-trend__grid { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: 1fr 1fr; }
  .az-nav__link { width: 28px; height: 28px; line-height: 28px; font-size: 0.78rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 55px 0 65px; }
  .newsletter { padding: 50px 0; }
  .pagination .nav-links { flex-wrap: wrap; justify-content: center; }
  .page-numbers { min-width: 38px; height: 38px; font-size: 0.85rem; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero__actions .btn { font-size: 0.85rem; }
  .hero__stats { flex-wrap: wrap; gap: 12px; }
  .logo-text { font-size: 1rem; }
  .header-inner { height: 56px; }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero { padding: 30px 0 40px; }
  .mobile-nav-list { column-count: 2; }
}


@media (max-width: 768px) {
  .hero__stats { position: relative; }
  .hero-search__input { -webkit-appearance: none; appearance: none; }
}

@media (max-width: 480px) {
  .hero__search { margin-top: 18px; }
  .hero-search__input { padding: 12px 12px; font-size: 16px; }
  .hero-search__btn { padding: 12px 14px; font-size: 0.88rem; }
  .hero__stat-num { font-size: 1.2rem; }
  .hero__stat-label { font-size: 0.65rem; }
}

@media print {
  .site-header, .site-footer, .sidebar, .newsletter, .share-bar { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .entry-content { border: none; padding: 0; box-shadow: none; }
  body { background: white; color: black; }
}

/* ── Blog layout ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 40px;
  align-items: start;
  padding: 48px 0 64px;
}

/* Blog page section header */
.blog-layout .section-header { margin-bottom: 32px; }
.blog-layout .section-title  { word-break: break-word; hyphens: auto; }

/* ── Mobile blog fixes ── */
@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
    padding: 28px 0 48px;
    gap: 0;
  }
  .blog-layout .section-header { margin-bottom: 20px; }
  .blog-layout .section-title  { font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.25; }
  .blog-layout > aside { order: 2; margin-top: 32px; }
  .blog-layout > main  { order: 1; }

  /* Blog header tag pill */
  .section-header .tag { font-size: 0.7rem; padding: 3px 12px; }

  /* Post cards single column on mobile */
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card__img-wrap { max-height: 200px; overflow: hidden; }
  .post-card__img      { width: 100%; height: 200px; object-fit: cover; }
  .post-card__img-placeholder { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg,rgba(108,63,200,0.12),rgba(255,215,0,0.08)); border-radius: var(--radius-md) var(--radius-md) 0 0; }

  /* Divider under blog title */
  .blog-layout .divider { margin: 10px 0 16px; }

  /* Author email fix - clip long email text */
  .post-card__footer .post-author span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }
}

@media (max-width: 480px) {
  .blog-layout { padding: 20px 0 40px; }
  .blog-layout .section-title { font-size: 1.5rem; }
  .post-card__body { padding: 14px 14px 16px; }
  .post-card__meta { font-size: 0.75rem; gap: 10px; }
  .post-card__title { font-size: 0.95rem; line-height: 1.35; }
  .post-card__excerpt { font-size: 0.85rem; -webkit-line-clamp: 2; }
  .read-more { font-size: 0.82rem; }
}
