/**
 * SmartMag Core CSS - Optimized for AIDEN Publisher
 * Extracted from SmartMag WordPress Theme v10.3.2
 * Total: ~2,500 lines (from 10,382 original)
 *
 * Sections:
 * 1. CSS Custom Properties & Variables
 * 2. Reset & Base Elements
 * 3. Typography
 * 4. Grid System
 * 5. Layout & Structure
 * 6. Components (Buttons, Cards, Forms)
 * 7. Header & Navigation
 * 8. Post Content Styles
 * 9. Sidebar & Widgets
 * 10. Footer
 */

/* ============================================================================
   1. CSS CUSTOM PROPERTIES & VARIABLES
   ========================================================================= */

:root {
  /* Fonts */
  --body-font: "Public Sans", system-ui, -apple-system, sans-serif;
  --ui-font: var(--body-font);
  --h-font: var(--ui-font);
  --code-font: Menlo, Monaco, Consolas, "Courier New", monospace;

  /* Typography Sizes */
  --text-size: 14px;
  --text-lh: 1.714;
  --post-content-size: 1.186rem;
  --post-content-lh: 1.7;

  /* Layout */
  --main-width: 1200px;
  --grid-gutter: 36px;
  --wrap-padding: 35px;
  --sidebar-width: 33.3333%;
  --sidebar-pad: 38px;

  /* Title Sizes */
  --title-size-xs: 14px;
  --title-size-s: 16px;
  --title-size-n: 18px;
  --title-size-m: 20px;
  --title-size-l: 25px;
  --title-size-xl: 30px;

  /* Colors - Light Theme */
  --c-main: #2ab391;
  --c-main-rgb: 42, 179, 145;
  --c-contrast-0: #fff;
  --c-contrast-50: #f7f7f7;
  --c-contrast-100: #e8e8e8;
  --c-contrast-200: #ccc;
  --c-contrast-400: #999;
  --c-contrast-500: #777;
  --c-contrast-650: #505050;
  --c-contrast-700: #444;
  --c-contrast-800: #333;
  --c-contrast-900: #161616;
  --c-contrast: #000;

  --c-separator: var(--c-contrast-100);
  --c-links: var(--c-contrast-900);
  --c-headings: var(--c-contrast-900);
  --c-excerpts: var(--c-contrast-650);
  --c-post-meta: var(--c-contrast-400);

  /* Social Colors */
  --c-facebook: #1a6dd4;
  --c-twitter: #55acef;
  --c-pinterest: #e4223e;
  --c-linkedin: #02669a;
}

/* ============================================================================
   2. RESET & BASE ELEMENTS
   ========================================================================= */

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

html, body, div, span, h1, h2, h3, h4, h5, h6,
p, blockquote, a, img, ul, ol, li, article, aside,
footer, header, nav, section {
  margin: 0;
  padding: 0;
  border: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-size: var(--text-size);
  line-height: var(--text-lh);
  color: var(--c-contrast-700);
  background: var(--c-contrast-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

article, aside, footer, header, nav, section {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--c-links);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-main);
}

ul, ol {
  list-style: none;
}

/* ============================================================================
   3. TYPOGRAPHY
   ========================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--h-font);
  font-weight: 600;
  color: var(--c-headings);
  line-height: 1.3;
  margin: 0 0 0.8em;
}

h1 { font-size: var(--title-size-xl); }
h2 { font-size: var(--title-size-l); }
h3 { font-size: var(--title-size-m); }
h4 { font-size: var(--title-size-n); }
h5 { font-size: var(--title-size-s); }
h6 { font-size: var(--title-size-xs); }

p {
  margin: 0 0 1.5em;
  line-height: inherit;
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

code, pre {
  font-family: var(--code-font);
  font-size: 0.9em;
  background: var(--c-contrast-50);
  padding: 2px 6px;
  border-radius: 3px;
}

blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--c-main);
  background: var(--c-contrast-50);
  font-style: italic;
  color: var(--c-contrast-650);
}

/* ============================================================================
   4. GRID SYSTEM
   ========================================================================= */

.container {
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 0 var(--wrap-padding);
}

.wrap {
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 0 var(--wrap-padding);
}

.ts-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--grid-gutter) / -2);
}

.ts-row > * {
  padding: 0 calc(var(--grid-gutter) / 2);
}

/* Column System */
.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gutter);
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gutter);
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gutter);
}

/* ============================================================================
   5. LAYOUT & STRUCTURE
   ========================================================================= */

.main-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding: 40px 0;
}

.content-wrap {
  margin-bottom: 40px;
}

.main-content {
  margin-bottom: 30px;
}

.sidebar {
  margin-bottom: 30px;
}

.sticky-sidebar {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-main) transparent;
}

.sticky-sidebar::-webkit-scrollbar {
  width: 4px;
}

.sticky-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--c-main);
  border-radius: 4px;
}

/* ============================================================================
   6. COMPONENTS
   ========================================================================= */

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--c-main);
  color: #fff;
}

.btn-primary:hover {
  background: #259c7e;
  color: #fff;
}

.btn-secondary {
  background: var(--c-contrast-100);
  color: var(--c-contrast-800);
}

.btn-secondary:hover {
  background: var(--c-contrast-200);
}

/* Post Cards */
.post-card {
  background: var(--c-contrast-0);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post-card .post-thumb {
  overflow: hidden;
  position: relative;
  padding-top: 60%;
}

.post-card .post-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 20px;
}

.post-card-title {
  font-size: var(--title-size-m);
  margin: 0 0 10px;
}

.post-card-title a {
  color: var(--c-headings);
}

.post-card-meta {
  font-size: 13px;
  color: var(--c-post-meta);
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--c-excerpts);
  line-height: 1.6;
  margin: 0;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--c-contrast-200);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--c-main);
}

/* ============================================================================
   7. HEADER & NAVIGATION
   ========================================================================= */

.smart-head {
  background: var(--c-contrast-0);
  border-bottom: 1px solid var(--c-separator);
  position: relative;
  z-index: 100;
}

.sticky-header {
  position: sticky;
  top: 0;
  background: var(--c-contrast-0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.smart-head-row {
  padding: 15px 0;
}

.smart-head-row .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.items {
  display: flex;
  align-items: center;
  gap: 20px;
}

.items-left { justify-content: flex-start; }
.items-center { justify-content: flex-start; flex: 1; min-width: 0; overflow-x: clip; overflow-y: visible; }
.items-right { justify-content: flex-end; }

/* Logo */
.smart-head-logo {}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-link img {
  height: auto;
  max-height: 60px;
  width: auto;
}

.text-logo-inner {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-headings);
}

/* Navigation */
.navigation {
  display: flex;
}

.navigation ul {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation a {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-contrast-900);
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.navigation a:hover {
  background: var(--c-contrast-50);
  color: var(--c-main);
}

.navigation .current-menu-item > a {
  color: var(--c-main);
  font-weight: 600;
}

/* Dropdown Menus */
.navigation li {
  position: relative;
}

.navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--c-contrast-0);
  border: 1px solid var(--c-separator);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 10px 0;
  z-index: 1000;
}

.navigation li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navigation .sub-menu li {
  display: block;
}

.navigation .sub-menu a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
}

/* More Menu - Overflow Items */
.navigation .nav-more-item {
  position: relative;
  white-space: nowrap;
}

.navigation .nav-more-item > a {
  cursor: pointer;
}

.navigation .nav-more-item .nav-more-dropdown {
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--c-contrast-0);
  border: 1px solid var(--c-separator);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 10px 0;
  z-index: 1000;
  list-style: none;
  margin: 0;
  gap: 0;
}

.navigation .nav-more-item:hover .nav-more-dropdown,
.navigation .nav-more-item.is-open .nav-more-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navigation .nav-more-dropdown li {
  display: block;
}

.navigation .nav-more-dropdown a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-icon,
.scheme-toggle,
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--c-contrast-700);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon:hover,
.scheme-toggle:hover {
  color: var(--c-main);
}

.search-icon i,
.scheme-toggle i {
  font-size: 20px;
}

/* Hamburger Menu */
.hamburger {
  width: 30px;
  height: 24px;
  position: relative;
  display: none;
}

.hamburger .bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--c-contrast-700);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger .bar:nth-child(3) { bottom: 0; }

.hamburger[aria-expanded="true"] .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Header */
#smart-head-mobile {
  display: none;
}

.mobile-nav-wrap {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--c-contrast-0);
  overflow-y: auto;
  z-index: 999;
  padding: 20px;
}

.mobile-nav-wrap ul {
  display: block;
}

.mobile-nav-wrap li {
  border-bottom: 1px solid var(--c-separator);
}

.mobile-nav-wrap a {
  display: block;
  padding: 15px 10px;
}

/* ============================================================================
   8. POST CONTENT STYLES
   ========================================================================= */

.post {
  background: var(--c-contrast-0);
  margin-bottom: 40px;
}

.post-header {
  margin-bottom: 0;
}

.post-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--c-headings);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  color: var(--c-post-meta);
  margin-bottom: 20px;
}

.post-meta a {
  color: inherit;
}

.post-meta a:hover {
  color: var(--c-main);
}

.featured-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Content */
.post-content,
.entry-content {
  font-size: var(--post-content-size);
  line-height: var(--post-content-lh);
  color: var(--c-contrast-700);
}

.post-content p,
.entry-content p {
  margin-bottom: 1.5em;
}

.post-content h2,
.entry-content h2 {
  font-size: 26px;
  margin-top: 2em;
  margin-bottom: 1em;
}

.post-content h3,
.entry-content h3 {
  font-size: 22px;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}

.post-content img,
.entry-content img {
  border-radius: 6px;
  margin: 1.5em 0;
}

.post-content ul,
.entry-content ul {
  list-style: disc;
  margin-left: 2em;
  margin-bottom: 1.5em;
}

.post-content ol,
.entry-content ol {
  list-style: decimal;
  margin-left: 2em;
  margin-bottom: 1.5em;
}

.post-content li,
.entry-content li {
  margin-bottom: 0.5em;
}

.post-content a,
.entry-content a {
  color: var(--c-main);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover,
.entry-content a:hover {
  color: var(--c-contrast-900);
}

/* Image Alignment */
.alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin: 1.5em auto;
  text-align: center;
}

/* Post Footer */
.post-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--c-separator);
}

.post-tags {
  margin-bottom: 30px;
}

.post-tags .tag {
  display: inline-block;
  padding: 6px 14px;
  margin: 4px;
  background: var(--c-contrast-50);
  color: var(--c-contrast-700);
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.post-tags .tag:hover {
  background: var(--c-main);
  color: #fff;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--c-contrast-50);
  border-radius: 8px;
  margin: 30px 0;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.author-info p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--c-contrast-650);
}

.author-info a {
  font-size: 14px;
  color: var(--c-main);
}

/* Related Posts */
.related-posts {
  margin-top: 50px;
}

.related-posts h3 {
  margin-bottom: 25px;
  font-size: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Social Share */
.social-share-top {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  padding: 15px 0;
  border-top: 1px solid var(--c-separator);
  border-bottom: 1px solid var(--c-separator);
}

.social-share-top a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s ease;
}

.social-share-top a:hover {
  opacity: 0.9;
}

.share-fb { background: var(--c-facebook); }
.share-tw { background: var(--c-twitter); }
.share-pinterest { background: var(--c-pinterest); }
.share-linkedin { background: var(--c-linkedin); }

/* ============================================================================
   9. SIDEBAR & WIDGETS
   ========================================================================= */

.sidebar {
  font-size: 14px;
}

.widget {
  background: var(--c-contrast-0);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 8px;
  border: 1px solid var(--c-separator);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--c-main);
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-separator);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--c-contrast-700);
  transition: color 0.2s ease;
}

.widget a:hover {
  color: var(--c-main);
}

/* Recent Posts Widget */
.recent-posts-widget {
  background: var(--c-contrast-0);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--c-separator);
  margin-bottom: 24px;
}

.recent-posts-widget .widget-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-main);
}

.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-separator);
  align-items: flex-start;
}

.recent-post-item:first-child {
  padding-top: 0;
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-info {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-contrast-700);
  text-decoration: none;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-title:hover {
  color: var(--c-main);
}

.recent-post-date {
  font-size: 11px;
  color: var(--c-contrast-400, #9ca3af);
}

/* Categories Widget */
.categories-widget {
  background: var(--c-contrast-0);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--c-separator);
  margin-bottom: 24px;
}

.categories-widget .widget-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-main);
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-separator);
}

.category-item:last-child {
  border-bottom: none;
}

.category-item a {
  color: var(--c-contrast-700);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.category-item a:hover {
  color: var(--c-main);
}

.category-count {
  font-size: 12px;
  color: var(--c-contrast-400, #9ca3af);
}

/* ============================================================================
   10. FOOTER
   ========================================================================= */

.main-footer {
  background: var(--c-contrast-50);
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 1px solid var(--c-separator);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--c-contrast-700);
}

.footer-nav a:hover {
  color: var(--c-main);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-contrast-100);
  border-radius: 50%;
  color: var(--c-contrast-700);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--c-main);
  color: #fff;
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: var(--c-contrast-500);
  padding-top: 20px;
  border-top: 1px solid var(--c-separator);
  margin-top: 20px;
}

.copyright a {
  color: inherit;
}

.copyright a:hover {
  color: var(--c-main);
}

/* ============================================================================
   11. ARCHIVE PAGES
   ========================================================================= */

.archive-header {
  margin-bottom: 40px;
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--c-separator);
}

.archive-title {
  font-size: 36px;
  margin: 0 0 15px;
}

.archive-description {
  font-size: 16px;
  color: var(--c-excerpts);
  max-width: 700px;
  margin: 0 auto;
}

.posts-grid {
  margin-bottom: 40px;
}

.posts-list {
  margin-bottom: 40px;
}

.posts-list .post-card-list {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--c-separator);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-separator);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-contrast-700);
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--c-main);
  color: #fff;
  border-color: var(--c-main);
}

.pagination .current {
  background: var(--c-main);
  color: #fff;
  border-color: var(--c-main);
}

/* ============================================================================
   12. BREADCRUMBS
   ========================================================================= */

.breadcrumbs {
  padding: 15px 0;
  font-size: 13px;
  color: var(--c-post-meta);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
  color: var(--c-contrast-400);
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  color: inherit;
}

.breadcrumbs a:hover {
  color: var(--c-main);
}

/* ============================================================================
   13. UTILITY CLASSES
   ========================================================================= */

.cf::after {
  content: "";
  display: table;
  clear: both;
}

.visuallyhidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* ============================================================================
   14. ICONS (Custom TS Icons)
   ========================================================================= */

.tsi {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.tsi-search::before { content: "🔍"; }
.tsi-sun::before { content: "☀️"; }
.tsi-moon::before { content: "🌙"; }
.tsi-facebook::before { content: "f"; }
.tsi-twitter::before { content: "t"; }
.tsi-pinterest::before { content: "p"; }
.tsi-linkedin::before { content: "in"; }

/* ============================================================================
   15. LOADING & ANIMATIONS
   ========================================================================= */

.loading {
  text-align: center;
  padding: 40px;
  color: var(--c-post-meta);
}

.loading::after {
  content: "...";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60%, 100% { content: "..."; }
}

/* Lazy Load Fade In */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ==========================================
   Search Modal
   ========================================== */
.search-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.search-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 640px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px 8px;
}

.search-modal-close:hover {
    color: #333;
}

.search-form-large {
    display: flex;
    gap: 0;
}

.search-input-large {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input-large:focus {
    border-color: var(--c-main, #e54e53);
}

.search-button-large {
    padding: 14px 24px;
    background: var(--c-main, #e54e53);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.search-button-large:hover {
    opacity: 0.9;
}

.search-suggestions {
    margin-top: 16px;
}
