/* =========================================
   Destination Diaries — Main Stylesheet
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --primary:       #7C3AED;
  --primary-dark:  #6D28D9;
  --primary-light: #8B5CF6;
  --secondary:     #1C1917;
  --secondary-lt:  #292524;
  --accent:        #10B981;
  --accent-light:  #34D399;
  --bg:            #FAFAF9;
  --bg-alt:        #F5F3FF;
  --dark:          #1C1917;
  --text:          #3C3834;
  --muted:         #78716C;
  --border:        #E7E5E4;
  --white:         #FFFFFF;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.14);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     6px;
  --transition:    0.25s ease;
  --font-heading:  'Playfair Display', serif;
  --font-body:     'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

.site-header { background: var(--white); border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { flex-shrink: 0; }
.logo-text { font-family: var(--font-heading); font-size: 22px; font-weight: 800; letter-spacing: -0.3px; line-height: 1; display: flex; gap: 4px; }
.logo-text span:first-child { color: var(--primary); }
.logo-text span:last-child  { color: var(--secondary); }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav ul li a { font-weight: 600; font-size: 13px; color: var(--dark); padding: 7px 13px; border-radius: var(--radius-sm); transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--white); background: var(--primary); }
.main-nav ul li:last-child a { background: var(--primary); color: var(--white); padding: 7px 18px; border-radius: 30px; }
.main-nav ul li:last-child a:hover { background: var(--primary-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; display: block; transition: var(--transition); }

.hero { position: relative; min-height: 540px; display: flex; align-items: center; background: var(--secondary); overflow: hidden; }
.hero-image { position: absolute; inset: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(28,25,23,0.9) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 640px; color: var(--white); padding: 80px 0; }
.hero-badge { display: inline-block; background: var(--accent); color: var(--dark); font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 48px; font-weight: 800; line-height: 1.12; margin-bottom: 18px; text-shadow: 0 2px 14px rgba(0,0,0,0.3); }
.hero-content p { font-size: 17px; color: rgba(255,255,255,0.82); margin-bottom: 30px; max-width: 520px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.65); }
.hero-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 30px; font-weight: 700; font-size: 14px; transition: all var(--transition); cursor: pointer; border: none; font-family: var(--font-body); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.4); }
.btn-ghost { background: rgba(255,255,255,0.12); color: var(--white); border: 2px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }

.trending-strip { background: var(--primary); padding: 10px 0; }
.trending-strip .container { display: flex; align-items: center; gap: 16px; overflow: hidden; }
.trending-label { background: var(--white); color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.trending-items { display: flex; gap: 0; overflow: hidden; align-items: center; }
.trending-items a { color: var(--white); font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0.9; transition: opacity var(--transition); padding: 0 14px; }
.trending-items a:hover { opacity: 1; text-decoration: underline; }
.trending-items a + a { border-left: 1px solid rgba(255,255,255,0.3); }

.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.overline { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; display: block; }
.section-title { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--dark); position: relative; padding-bottom: 12px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; background: var(--primary); border-radius: 2px; }
.see-all { font-size: 13.5px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; white-space: nowrap; transition: gap var(--transition); padding-bottom: 2px; }
.see-all:hover { gap: 8px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); display: flex; flex-direction: column; border: 1px solid var(--border); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-image { position: relative; display: block; overflow: hidden; height: 210px; flex-shrink: 0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .card-image img { transform: scale(1.06); }
.card-category { position: absolute; top: 12px; left: 12px; background: var(--primary); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; z-index: 1; }
.cat-adventure { background: #EF4444 !important; }
.cat-culture { background: #F59E0B !important; color: var(--dark) !important; }
.cat-hidden { background: var(--accent) !important; color: var(--dark) !important; }
.cat-solo { background: #0EA5E9 !important; }
.cat-roadtrip { background: #F97316 !important; }
.cat-wildlife { background: var(--primary) !important; }
.cat-destinations { background: var(--primary) !important; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.card-body h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--dark); margin-bottom: 10px; transition: color var(--transition); flex: 1; }
.post-card:hover .card-body h3 { color: var(--primary); }
.card-body h3 a { color: inherit; }
.card-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--bg-alt); font-size: 12.5px; color: var(--muted); font-weight: 500; }
.card-footer img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-alt); }

.featured-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.featured-post { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: box-shadow var(--transition); }
.featured-post:hover { box-shadow: var(--shadow-lg); }
.featured-image { position: relative; display: block; overflow: hidden; height: 300px; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.featured-post:hover .featured-image img { transform: scale(1.04); }
.featured-body { padding: 28px; }
.featured-body h2 { font-family: var(--font-heading); font-size: 23px; font-weight: 800; line-height: 1.35; color: var(--dark); margin: 12px 0 14px; transition: color var(--transition); }
.featured-body h2 a { color: inherit; }
.featured-post:hover .featured-body h2 { color: var(--primary); }
.featured-body p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.stacked-posts { display: flex; flex-direction: column; gap: 16px; }
.stacked-post { display: flex; gap: 14px; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all var(--transition); padding: 14px; align-items: flex-start; }
.stacked-post:hover { box-shadow: var(--shadow); transform: translateX(3px); }
.stacked-image { display: block; overflow: hidden; border-radius: var(--radius-xs); width: 100px; height: 78px; flex-shrink: 0; }
.stacked-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.stacked-post:hover .stacked-image img { transform: scale(1.08); }
.stacked-body { flex: 1; }
.stacked-body h3 { font-family: var(--font-heading); font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--dark); margin: 8px 0 6px; transition: color var(--transition); }
.stacked-post:hover .stacked-body h3 { color: var(--primary); }
.stacked-body h3 a { color: inherit; }

.stories-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg-alt); }
.stories-row::-webkit-scrollbar { height: 4px; }
.stories-row::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 2px; }
.stories-row::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.story-card { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: transform var(--transition); }
.story-card:hover { transform: translateY(-4px); }
.story-image { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary); padding: 3px; background: var(--white); box-shadow: var(--shadow); }
.story-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.story-card p { font-size: 12px; font-weight: 600; color: var(--dark); max-width: 100px; line-height: 1.3; }

.content-sidebar-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.list-post { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.list-post:first-child { padding-top: 0; }
.list-post:last-child { border-bottom: none; }
.list-post-image { display: block; overflow: hidden; border-radius: var(--radius-sm); width: 160px; height: 115px; flex-shrink: 0; }
.list-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.list-post:hover .list-post-image img { transform: scale(1.06); }
.list-post-body { flex: 1; }
.list-post-body h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--dark); margin: 8px 0; transition: color var(--transition); }
.list-post:hover .list-post-body h3 { color: var(--primary); }
.list-post-body h3 a { color: inherit; }
.list-post-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.widget-title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--white); background: linear-gradient(135deg, var(--secondary), var(--secondary-lt)); padding: 13px 18px; text-transform: uppercase; letter-spacing: 0.8px; display: flex; align-items: center; gap: 8px; }
.sidebar-form { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.sidebar-form p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 4px; }
.sidebar-form input[type="email"] { width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; font-family: var(--font-body); outline: none; transition: border-color var(--transition); background: var(--bg); color: var(--dark); }
.sidebar-form input[type="email"]:focus { border-color: var(--primary); background: var(--white); }
.sidebar-form input[type="email"]::placeholder { color: var(--muted); }
.sidebar-form button { width: 100%; padding: 12px; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; cursor: pointer; transition: all var(--transition); font-family: var(--font-body); }
.sidebar-form button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.popular-list { padding: 8px 18px 16px; counter-reset: pop-counter; }
.popular-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bg-alt); counter-increment: pop-counter; }
.popular-list li:last-child { border-bottom: none; padding-bottom: 0; }
.popular-list li::before { content: counter(pop-counter); font-size: 20px; font-weight: 800; color: var(--border); min-width: 26px; font-family: var(--font-heading); line-height: 1; }
.popular-list li a { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.45; transition: color var(--transition); }
.popular-list li a:hover { color: var(--primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; }
.tag-cloud a { display: inline-block; background: var(--bg-alt); color: var(--muted); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; transition: all var(--transition); border: 1px solid transparent; }
.tag-cloud a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 28px 20px; text-align: center; transition: all var(--transition); color: var(--white); cursor: pointer; display: block; }
.cat-card:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(124,58,237,0.4); }
.cat-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.cat-card h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.cat-card p { font-size: 12.5px; color: rgba(255,255,255,0.65); line-height: 1.5; }

.highlight-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.highlight-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all var(--transition); display: flex; flex-direction: column; }
.highlight-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.highlight-image { position: relative; display: block; overflow: hidden; height: 190px; flex-shrink: 0; }
.highlight-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.highlight-card:hover .highlight-image img { transform: scale(1.06); }
.highlight-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.highlight-body h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--dark); transition: color var(--transition); flex: 1; }
.highlight-card:hover .highlight-body h3 { color: var(--primary); }
.highlight-body h3 a { color: inherit; }
.highlight-body p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.stats-banner { background: linear-gradient(135deg, var(--secondary) 0%, #0C0A09 100%); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 28px; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-number { display: block; font-family: var(--font-heading); font-size: 44px; font-weight: 800; color: var(--accent-light); line-height: 1; margin-bottom: 8px; }
.stat-label { display: block; font-size: 12.5px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.8px; line-height: 1.4; }

.newsletter-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 72px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter-text { max-width: 480px; }
.newsletter-text h2 { font-family: var(--font-heading); font-size: 34px; font-weight: 800; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.newsletter-text p { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.7; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; min-width: 360px; }
.newsletter-form input[type="email"] { flex: 1; padding: 14px 20px; border: none; border-radius: 30px; font-size: 14px; outline: none; font-family: var(--font-body); color: var(--dark); background: rgba(255,255,255,0.95); }
.newsletter-form input[type="email"]::placeholder { color: var(--muted); }
.newsletter-form button { padding: 14px 28px; background: var(--secondary); color: var(--white); border: none; border-radius: 30px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all var(--transition); font-family: var(--font-body); white-space: nowrap; }
.newsletter-form button:hover { background: var(--secondary-lt); transform: translateY(-1px); }

.site-footer { background: #0C0A09; color: rgba(255,255,255,0.65); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 48px; grid-auto-columns: 1fr; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand .logo-text span:first-child { color: var(--primary-light); }
.footer-brand .logo-text span:last-child  { color: rgba(255,255,255,0.9); }
.footer-brand > p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 16px; }
.footer-links h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 13.5px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 6px; transition: all var(--transition); }
.footer-links ul li a::before { content: '›'; color: var(--primary-light); font-size: 16px; line-height: 1; }
.footer-links ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-links p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-links a[href^="mailto"] { color: var(--primary-light) !important; }
.footer-links a[href^="mailto"]::before { display: none !important; }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,0.3); gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

.archive-hero { position: relative; height: 260px; background-size: cover; background-position: center; display: flex; align-items: center; overflow: hidden; }
.archive-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(124,58,237,0.85) 0%, rgba(28,25,23,0.92) 100%); }
.archive-hero-content { position: relative; z-index: 2; color: var(--white); }
.archive-hero-content h1 { font-family: var(--font-heading); font-size: 42px; font-weight: 800; line-height: 1.15; margin: 8px 0 10px; }
.archive-hero-content p { font-size: 15px; color: rgba(255,255,255,0.8); }

.filter-bar { background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: sticky; top: 72px; z-index: 100; }
.filter-bar > .container { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.filter-bar > .container::-webkit-scrollbar { display: none; }
.filter-inner { display: flex; align-items: center; gap: 16px; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.filter-inner::-webkit-scrollbar { display: none; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.filter-buttons { display: flex; gap: 8px; flex-wrap: nowrap; }
.filter-btn { padding: 7px 18px; border-radius: 30px; border: 2px solid var(--border); background: var(--white); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); font-family: var(--font-body); white-space: nowrap; flex-shrink: 0; }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }

.featured-archive-post { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: box-shadow var(--transition); }
.featured-archive-post:hover { box-shadow: var(--shadow-lg); }
.featured-archive-image { position: relative; display: block; overflow: hidden; height: 280px; }
.featured-archive-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.featured-archive-post:hover .featured-archive-image img { transform: scale(1.04); }
.archive-featured-badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--dark); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.featured-archive-body { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured-archive-body h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 800; line-height: 1.35; color: var(--dark); transition: color var(--transition); }
.featured-archive-post:hover .featured-archive-body h2 { color: var(--primary); }
.featured-archive-body h2 a { color: inherit; }
.featured-archive-body p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.archive-divider { height: 1px; background: var(--border); margin: 32px 0; }

.blog-list { display: flex; flex-direction: column; }
.blog-list-item { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.blog-list-item:last-child { border-bottom: none; }
.blog-list-image { display: block; overflow: hidden; border-radius: var(--radius-sm); width: 150px; height: 110px; flex-shrink: 0; }
.blog-list-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-list-item:hover .blog-list-image img { transform: scale(1.06); }
.blog-list-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-list-body h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--dark); transition: color var(--transition); }
.blog-list-item:hover .blog-list-body h3 { color: var(--primary); }
.blog-list-body h3 a { color: inherit; }
.blog-list-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.spec-list { list-style: none; padding: 4px 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; font-size: 13px; border-bottom: 1px solid var(--bg-alt); gap: 12px; line-height: 1.4; }
.spec-list li:last-child { border-bottom: none; }
.spec-list li:nth-child(even) { background: var(--bg); }
.spec-list li strong { color: var(--dark); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; flex-shrink: 0; }
.spec-list li span { color: var(--muted); text-align: right; font-weight: 500; }

.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }
.article-hero-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.article-header { margin-bottom: 28px; }
.article-header h1 { font-family: var(--font-heading); font-size: 36px; font-weight: 800; line-height: 1.2; color: var(--dark); margin: 12px 0 16px; }
.article-author { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.article-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.article-author-info strong { font-size: 14px; font-weight: 700; color: var(--dark); display: block; }
.article-author-info span { font-size: 12.5px; color: var(--muted); }
.article-body h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--dark); margin: 32px 0 14px; }
.article-body p { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 18px; }
.article-body ul { margin: 0 0 18px 20px; list-style: disc; }
.article-body ul li { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 8px; }

/* ── SITE LOGO (used in secondary pages & blog posts) ── */
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--dark); letter-spacing: -0.2px; }
.site-logo svg { flex-shrink: 0; }
.site-footer .site-logo { color: rgba(255,255,255,0.9); }

/* ── POST HERO (blog article pages) ── */
.post-hero { position: relative; height: 480px; background: var(--secondary); overflow: hidden; }
.post-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,25,23,0.96) 0%, rgba(28,25,23,0.5) 55%, rgba(28,25,23,0.1) 100%); display: flex; align-items: flex-end; padding-bottom: 52px; }
.post-hero-overlay .container { width: 100%; }
.post-title { font-family: var(--font-heading); font-size: clamp(22px,4vw,40px); font-weight: 800; color: var(--white); line-height: 1.2; margin: 12px 0 20px; max-width: 780px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }

/* ── POST META ── */
.post-meta { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 14px; color: rgba(255,255,255,0.95); display: block; }
.post-date { font-size: 12.5px; color: rgba(255,255,255,0.6); display: block; }

/* ── POST CAT ── */
.post-cat { display: inline-block; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; }

/* ── POST INTRO ── */
.post-intro { font-size: 17px; line-height: 1.85; color: var(--text); font-weight: 500; border-left: 4px solid var(--primary); padding: 12px 20px; background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 32px; }

/* ── BLOG LIST CONTENT (alias) ── */
.blog-list-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-list-content h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--dark); transition: color var(--transition); }
.blog-list-item:hover .blog-list-content h3 { color: var(--primary); }
.blog-list-content h3 a { color: inherit; }
.blog-list-content p { font-size: 13.5px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── FEATURED ARCHIVE CONTENT (alias) ── */
.featured-archive-content { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured-archive-content h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 800; line-height: 1.35; color: var(--dark); transition: color var(--transition); }
.featured-archive-post:hover .featured-archive-content h2 { color: var(--primary); }
.featured-archive-content h2 a { color: inherit; }
.featured-archive-content p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.featured-archive-content .post-meta { margin-top: 4px; }
.featured-archive-content .author-name { color: var(--dark); }
.featured-archive-content .post-date { color: var(--muted); }

/* ── ARCHIVE HERO FALLBACK ── */
.archive-hero { background: linear-gradient(135deg, var(--primary) 0%, #5b21b6 100%); }
.archive-hero h1 { font-family: var(--font-heading); font-size: clamp(28px,5vw,42px); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.archive-hero p { font-size: 15px; color: rgba(255,255,255,0.82); }

/* ── ARTICLE BODY EXTRA ── */
.article-body h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--dark); margin: 28px 0 12px; }
.article-body img { border-radius: var(--radius); }
.article-body .spec-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); margin: 28px 0; box-shadow: var(--shadow-sm); }
.article-body ul li strong { font-weight: 700; color: var(--dark); }
.text-muted { color: var(--muted); }

.scroll-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px rgba(124,58,237,0.5); transition: all var(--transition); z-index: 999; opacity: 0; pointer-events: none; border: none; font-size: 18px; font-weight: 700; }
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ── FOOTER 3-COL VARIANT (secondary pages) ── */
.footer-grid:has(> :nth-child(3):last-child) { grid-template-columns: 2fr 1fr 1fr; }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-layout { grid-template-columns: 1fr; }
  .stacked-posts { display: grid; grid-template-columns: repeat(2, 1fr); }
  .content-sidebar-layout { grid-template-columns: 1fr 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; align-items: center; }
  .newsletter-form { min-width: 0; width: 100%; max-width: 480px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav ul { display: none; }
  .hamburger { display: flex; }
  .main-nav.open ul { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 12px 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); z-index: 9999; gap: 4px; border-top: 2px solid var(--primary); }
  .hero-content h1 { font-size: 32px; }
  .hero { min-height: 440px; }
  .card-grid { grid-template-columns: 1fr; }
  .content-sidebar-layout { grid-template-columns: 1fr; }
  .featured-archive-post { grid-template-columns: 1fr; }
  .featured-archive-image { height: 220px; }
  .highlight-strip { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-form { flex-direction: column; }
  .list-post { flex-direction: column; }
  .list-post-image { width: 100%; height: 180px; }
  .header-inner { position: relative; }
  .stacked-posts { grid-template-columns: 1fr; }
  .featured-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 26px; }
  .section-title { font-size: 22px; }
  .stat-number { font-size: 34px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-text h2 { font-size: 26px; }
  .section { padding: 44px 0; }
  .article-header h1 { font-size: 26px; }
  .article-hero-img { height: 220px; }
}
