/* ==========================================================================
   CSS RESET & BASE
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(var(--font-size-body-min), var(--font-size-body-fluid), var(--font-size-body-max));
  line-height: var(--line-height-body);
  color: var(--color-text-dark);
  background-color: var(--color-background);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin-bottom: 1rem;
  color: var(--color-heading);
}

h1 {
  font-size: clamp(var(--font-size-h1-min), var(--font-size-h1-fluid), var(--font-size-h1-max));
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(var(--font-size-h2-min), var(--font-size-h2-fluid), var(--font-size-h2-max));
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(var(--font-size-h3-min), var(--font-size-h3-fluid), var(--font-size-h3-max));
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(var(--font-size-h4-min), var(--font-size-h4-fluid), var(--font-size-h4-max));
  margin-top: 1.5rem;
}

h5 {
  font-size: clamp(var(--font-size-h5-min), var(--font-size-h5-fluid), var(--font-size-h5-max));
  margin-top: 1.25rem;
}

h6 {
  font-size: clamp(var(--font-size-h6-min), var(--font-size-h6-fluid), var(--font-size-h6-max));
  margin-top: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Content + Sidebar Layout */
.content-sidebar-wrap {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-area {
  flex: 1;
  min-width: 0;
  max-width: 800px;
  overflow: hidden;
}

/* Full-width content for pages */
.page .content-area {
  max-width: 100%;
}

.sidebar {
  flex: 0 0 300px;
  width: 300px;
}

/* ==========================================================================
   HEADER - Dark Charcoal (Old Elementor Design)
   ========================================================================== */

.site-header {
  background: var(--color-header-bg);
  border-bottom: none;
  padding: 0.75rem 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 100;
}

/* Site Title - "Frugal" white, "Americans" red/orange */
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--color-header-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-title a:hover {
  color: var(--color-header-text);
  text-decoration: none;
  opacity: 0.9;
}

.title-frugal {
  color: #ffffff;
  font-weight: 700;
}

.title-americans {
  color: #e74c3c;
  font-weight: 700;
}

.site-description {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
  margin-bottom: 0 !important;
  line-height: 1.3;
  max-width: 500px;
}

/* Site Logo */
.site-logo {
  max-height: 40px;
  width: auto;
}

/* Desktop Search Toggle Icon - White on dark header */
.desktop-search-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.desktop-search-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  color: var(--color-header-text);
  transition: color 0.2s ease;
}

.desktop-search-toggle:hover svg {
  color: var(--color-nav-active);
}

/* Desktop Search Form */
.desktop-search-form {
  display: none !important;
  background: var(--color-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  margin-bottom: 0;
}

.desktop-search-form.active {
  display: block !important;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.desktop-search-form form {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.desktop-search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.desktop-search-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.desktop-search-form button[type="submit"] {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.desktop-search-form button[type="submit"]:hover {
  background: var(--color-primary-hover);
}

.desktop-search-form .search-close {
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.desktop-search-form .search-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Header Main - Logo + Menu on same row */
.header-main {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.site-branding {
  flex: 0 0 auto !important;
  min-width: 0;
}

/* Navigation - inline with logo, white text */
.header-main .main-navigation {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: flex-end;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Header Actions - Search icon + Mobile buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Hide mobile buttons on desktop */
.mobile-search-toggle,
.mobile-menu-toggle {
  display: none;
}

/* Header Search */
.header-search {
  flex-shrink: 0;
}

.header-search form {
  display: flex;
  gap: 0.5rem;
}

/* Hamburger icon styles - White on dark header */
.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--color-header-text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle {
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile search icon styles - White */
.mobile-search-toggle {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.mobile-search-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--color-header-text);
  stroke-width: 2;
  fill: none;
}

/* Mobile Search Form */
.mobile-search-form {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-header-bg);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-search-form.active {
  display: block;
  transform: translateY(0);
}

.mobile-search-form form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mobile-search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mobile-search-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.mobile-search-form button[type="submit"] {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-search-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  width: 40px;
  height: 40px;
}

.header-search input[type="search"] {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.875rem;
  min-width: 200px;
  transition: border-color 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.header-search input[type="search"]:focus {
  outline: none;
  border-color: var(--color-nav-active);
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}

.header-search button,
.header-search input[type="submit"] {
  padding: 0.4rem 1rem;
  background: var(--color-primary);
  color: var(--color-background);
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button:hover,
.header-search input[type="submit"]:hover {
  background: var(--color-primary-hover);
}

/* Navigation - White text links on dark header */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-navigation li {
  margin: 0;
  padding: 0.25rem 0;
}

.main-navigation a {
  color: var(--color-header-text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 0.25rem 0;
}

.main-navigation a:hover {
  color: var(--color-nav-active);
  text-decoration: none;
}

/* Active nav item - Teal */
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a,
.main-navigation .current-cat>a {
  color: var(--color-nav-active);
  font-weight: 600;
  position: relative;
}

.main-navigation .current-menu-item>a::after,
.main-navigation .current_page_item>a::after,
.main-navigation .current-cat>a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-nav-active);
  border-radius: 2px;
}

/* Dropdown Menu */
.main-navigation li {
  position: relative;
}

.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-header-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  flex-direction: column;
  gap: 0;
}

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

.main-navigation ul ul li {
  padding: 0;
  width: 100%;
}

.main-navigation ul ul a {
  display: block;
  padding: 0.65rem 1.25rem;
  white-space: normal;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.main-navigation ul ul a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-nav-active);
}

.main-navigation ul ul .current-menu-item>a,
.main-navigation ul ul .current_page_item>a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-nav-active);
}

.main-navigation ul ul .current-menu-item>a::after,
.main-navigation ul ul .current_page_item>a::after {
  display: none;
}

/* Dropdown arrow indicator */
.main-navigation .menu-item-has-children>a::after {
  content: ' \25BC';
  font-size: 0.7rem;
  margin-left: 0.25rem;
  opacity: 0.6;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.site-main {
  padding: 3rem 0;
  min-height: 70vh;
}

/* Homepage main has no padding - carousel is full-bleed */
.home-main {
  padding: 0;
}

/* Article/Post */
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-border-light);
}

.entry-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--color-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.entry-meta {
  font-size: 0.95rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entry-meta .meta-sep {
  color: #cbd5e0;
}

.entry-meta .categories a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.entry-meta .categories a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}

/* Featured Image */
.entry-featured-image {
  margin: 0 0 3rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

/* Article Content */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-dark);
  overflow: hidden;
  max-width: 100%;
}

/* Content Headings */
.entry-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light);
}

.entry-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Paragraphs */
.entry-content p {
  margin-bottom: 1.75rem;
}

/* Images in Content */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.entry-content figure {
  margin: 2.5rem 0;
  max-width: 100%;
  overflow: hidden;
}

/* Embedded content (iframes, ads, etc.) */
.entry-content iframe,
.entry-content ins,
.entry-content object,
.entry-content embed {
  max-width: 100%;
}

.entry-content figcaption {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  margin-left: 2rem;
  margin-bottom: 1.75rem;
  padding-left: 0;
}

.entry-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.entry-content ul li {
  list-style-type: disc;
}

.entry-content ol li {
  list-style-type: decimal;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Blockquotes */
.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  background: var(--color-background-light);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--color-text-medium);
  border-radius: 0 8px 8px 0;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Links in Content */
.entry-content a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(80, 10, 219, 0.3);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.entry-content a:hover {
  color: var(--color-primary-hover);
  text-decoration-color: rgba(64, 9, 181, 0.6);
}

/* Strong/Bold */
.entry-content strong,
.entry-content b {
  font-weight: 600;
  color: #1a202c;
}

/* Tables */
.entry-content table {
  width: 100%;
  margin: 2.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.entry-content th {
  background: var(--color-background-light);
  font-weight: 600;
  color: var(--color-text-dark);
}

.entry-content tr:hover {
  background: #fafafa;
}

/* Code */
.entry-content code {
  background: var(--color-background-light);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #d53f8c;
  font-family: 'Monaco', 'Courier New', monospace;
}

.entry-content pre {
  background: var(--color-text-dark);
  color: var(--color-border);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2.5rem 0;
}

.entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Social Share Buttons */
.social-share {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--color-background-light);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.social-share-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--color-background);
}

.share-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.share-facebook {
  background: var(--color-facebook);
}

.share-facebook:hover {
  background: var(--color-facebook-hover);
  color: var(--color-background);
}

.share-twitter {
  background: var(--color-twitter);
}

.share-twitter:hover {
  background: var(--color-twitter-hover);
  color: var(--color-background);
}

.share-pinterest {
  background: var(--color-pinterest);
}

.share-pinterest:hover {
  background: var(--color-pinterest-hover);
  color: var(--color-background);
}

.share-linkedin {
  background: var(--color-linkedin);
}

.share-linkedin:hover {
  background: var(--color-linkedin-hover);
  color: var(--color-background);
}

.share-email {
  background: var(--color-text-light);
}

.share-email:hover {
  background: var(--color-text-medium);
  color: var(--color-background);
}

/* Mobile responsive for share buttons */
@media (max-width: 768px) {
  .social-share {
    padding: 1.5rem;
  }

  .social-share-buttons {
    flex-direction: column;
  }

  .share-button {
    justify-content: center;
    width: 100%;
  }
}

.entry-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.entry-footer .tags {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.entry-footer .tags a {
  display: inline-block;
  background: var(--color-background-light);
  color: var(--color-text-medium);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  margin: 0.25rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
}

.entry-footer .tags a:hover {
  background: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

/* ==========================================================================
   CATEGORY BADGE - Red label (Old Elementor Design)
   ========================================================================== */

.category-badge {
  display: inline-block;
  background: var(--color-category-bg);
  color: var(--color-category-text) !important;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: background 0.2s ease;
  margin-bottom: 0.5rem;
}

.category-badge:hover {
  background: #a93226;
  color: var(--color-category-text) !important;
  text-decoration: none !important;
}

/* ==========================================================================
   FOOTER - Simplified single-row links (Old Elementor Design)
   ========================================================================== */

.site-footer {
  background: var(--color-footer-bg);
  border-top: none;
  padding: 2rem 0 1.5rem;
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--color-footer-text);
  content-visibility: auto;
  contain-intrinsic-size: 1px 120px;
}

.footer-links {
  text-align: center;
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

.footer-menu a:hover {
  color: var(--color-nav-active);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  padding-top: 1rem;
  text-align: center;
}

.copyright {
  margin: 0;
  color: var(--color-copyright);
  font-size: 0.85rem;
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   RESPONSIVE HEADER
   ========================================================================== */

@media (max-width: 768px) {
  .site-container {
    padding: 0 0.75rem;
  }

  /* Header responsive */
  .header-search-bar {
    display: none;
  }

  .header-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    padding: 0 !important;
  }

  .site-branding {
    min-width: 0;
    overflow: hidden;
  }

  .site-title {
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-description {
    display: none;
  }

  .header-actions {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  /* Hide desktop search icon on mobile */
  .desktop-search-toggle {
    display: none !important;
  }

  /* Show mobile search and menu toggle */
  .mobile-search-toggle,
  .mobile-menu-toggle {
    display: flex !important;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .mobile-search-toggle {
    align-items: center;
    justify-content: center;
  }

  /* Hide desktop search form on mobile */
  .desktop-search-form {
    display: none !important;
  }

  .header-search {
    display: none;
  }

  /* Mobile Navigation - Dark slide-out */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--color-header-bg);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    flex: none;
    justify-content: flex-start;
    border-top: none !important;
    padding-top: 70px !important;
    margin-top: 0 !important;
  }

  .main-navigation.active {
    right: 0;
  }

  /* Hide hamburger/close button when menu is open */
  .mobile-menu-toggle.active {
    display: none !important;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    align-items: stretch;
  }

  .main-navigation li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
  }

  .main-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    white-space: normal;
    text-align: right;
    color: var(--color-header-text);
  }

  .main-navigation a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-nav-active);
  }

  /* Dropdown in mobile */
  .main-navigation ul ul {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-navigation ul ul a {
    padding-right: 2.5rem;
    padding-left: 1.5rem;
    font-size: 0.85rem;
  }

  /* Mobile menu overlay */
  .main-navigation::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
  }

  .main-navigation.active::before {
    opacity: 1;
    visibility: visible;
  }

  /* Article responsive */
  .site-main {
    padding: 2rem 0;
  }

  .entry-title {
    font-size: 2rem;
  }

  .article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .entry-content {
    font-size: 1.05rem;
  }

  .entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .entry-content h3 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
  }

  .entry-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }

  .entry-content ul,
  .entry-content ol {
    margin-left: 1.5rem;
  }

  .entry-content blockquote {
    padding: 1rem 1rem 1rem 1.5rem;
    margin: 2rem 0;
  }

  .entry-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
  }

  /* Sidebar responsive - stack on mobile */
  .content-sidebar-wrap {
    flex-direction: column;
  }

  .sidebar {
    flex: 1;
    width: 100%;
  }
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */

.sidebar {
  /* Sidebar scrolls naturally with page content */
}

.widget-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: var(--color-background);
  padding: 0;
  margin-bottom: 2rem;
  border-radius: 0;
  border: none;
  border-left: 3px solid var(--color-primary);
  padding-left: 1.25rem;
}

/* Sidebar sections with red headers (MOST POPULAR / TRENDING) */
.widget-popular-posts,
.widget-trending-posts {
  border-left: none;
  padding-left: 0;
}

.widget-popular-posts .sidebar-section,
.widget-trending-posts .sidebar-section {
  border: none;
  padding: 0;
}

.widget-title {
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

/* Style widget area paragraph titles */
.widget-area>section>p:first-child,
p.widget-styled-title,
.widget-styled-title {
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}

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

.widget li {
  margin-bottom: 1rem;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.widget li:last-child {
  margin-bottom: 0;
}

.widget a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
  line-height: 1.4;
}

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

/* Recent Posts Widget */
.widget_recent_entries .post-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* Widget Post Images - Small square thumbnails on left */
.widget li img,
.widget-area .widget li img {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  height: 60px !important;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}

.widget li:hover img {
  opacity: 0.9;
}

/* Categories Widget */
.widget_categories select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Tag Cloud */
.tagcloud a {
  display: inline-block;
  background: var(--color-background-light);
  color: var(--color-text-medium);
  padding: 0.4rem 0.9rem;
  margin: 0 0.5rem 0.5rem 0;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  font-size: 0.8rem !important;
  transition: all 0.2s ease;
}

.tagcloud a:hover {
  background: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

/* ==========================================================================
   SIDEBAR SECTION HEADERS - Red background (Old Elementor)
   ========================================================================== */

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section-header {
  background: var(--color-sidebar-header-bg);
  color: var(--color-sidebar-header-text);
  padding: 0.6rem 1rem;
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
}

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

.sidebar-post-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.sidebar-post-thumb {
  flex-shrink: 0;
}

.sidebar-post-thumb img {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  height: 55px !important;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

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

.sidebar-post-title {
  display: block;
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.sidebar-post-title:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.sidebar-post-date {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* Sidebar Ad */
.sidebar-ad {
  margin: 1rem 0;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.comments-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--color-border);
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

.comments-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

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

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-background-light);
  border-radius: 8px;
  border-left: 3px solid var(--color-primary);
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.comment-author .avatar {
  border-radius: 50%;
  border: 2px solid var(--color-border);
}

.comment-author .fn {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-dark);
  font-style: normal;
}

.comment-metadata {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.comment-metadata a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-metadata a:hover {
  color: var(--color-primary);
}

.comment-content {
  color: var(--color-text-medium);
  line-height: 1.7;
}

.comment-content p {
  margin-bottom: 1rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  margin-top: 1rem;
}

.comment-reply-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--color-primary);
  color: var(--color-background);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.comment-reply-link:hover {
  background: var(--color-primary-hover);
}

/* Nested Comments */
.children {
  list-style: none;
  margin-left: 2rem;
  padding-left: 0;
  margin-top: 2rem;
}

.children .comment {
  background: var(--color-background);
  border-left-color: #cbd5e0;
}

/* Comment Form */
.comment-respond {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-background-light);
  border-radius: 8px;
}

.comment-reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.comment-reply-title small {
  font-size: 0.875rem;
  font-weight: 400;
}

.comment-reply-title small a {
  color: var(--color-text-light);
  text-decoration: none;
}

.comment-reply-title small a:hover {
  color: var(--color-primary);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin: 0;
}

.comment-form label {
  display: block;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(80, 10, 219, 0.1);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  margin: 0;
}

.form-submit input[type="submit"] {
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: var(--color-background);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit input[type="submit"]:hover {
  background: var(--color-primary-hover);
}

/* Comment Navigation */
.comment-navigation {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next {
  display: inline-block;
}

.comment-navigation a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.comment-navigation a:hover {
  color: var(--color-primary-hover);
}

/* No Comments Message */
.no-comments {
  padding: 2rem;
  background: var(--color-background-light);
  border-radius: 8px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.related-posts {
  margin-top: 4rem;
  padding: 3rem 0;
  background: var(--color-background-light);
  border-top: 2px solid var(--color-border);
}

.related-posts-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-post-item {
  background: var(--color-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-post-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.related-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumbnail img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 1.5rem;
}

.related-post-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.related-post-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-post-title a:hover {
  color: var(--color-primary);
}

.related-post-excerpt {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.related-post-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.related-post-link:hover {
  color: var(--color-primary-hover);
}

/* Responsive adjustments for related posts */
@media (max-width: 1024px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .related-posts {
    padding: 2rem 0;
  }

  .related-posts-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   ARCHIVE / CATEGORY PAGES
   ========================================================================== */

.archive-header {
  padding: 1.5rem 0 2rem;
  background: var(--color-background);
  border-bottom: 2px solid var(--color-border-light);
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.archive-description {
  color: var(--color-text-light);
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.archive-posts {
  padding: 3rem 0;
  background: var(--color-background-light);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.archive-post-item {
  background: var(--color-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.archive-post-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.archive-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.archive-post-item:hover .archive-post-thumbnail img {
  transform: scale(1.05);
}

.archive-post-content {
  padding: 1.5rem;
}

.archive-post-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.archive-post-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.archive-post-title a:hover {
  color: var(--color-primary);
}

.archive-post-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.archive-post-meta .meta-sep {
  margin: 0 0.5rem;
}

.archive-post-excerpt {
  color: var(--color-text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.archive-post-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.archive-post-link:hover {
  color: var(--color-primary-hover);
}

/* Pagination */
.archive-pagination,
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--color-background);
  color: var(--color-text-medium);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  background: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

.page-numbers.current {
  background: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

.page-numbers.dots {
  border: none;
  background: transparent;
}

.page-numbers.prev,
.page-numbers.next {
  padding: 0 1.25rem;
}

/* Post Pagination (Single) */
.page-links {
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-links .post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background: var(--color-background-light);
  color: var(--color-text-dark);
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.page-links .post-page-numbers:hover,
.page-links .post-page-numbers.current {
  background: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
  text-decoration: none;
}

/* No Results */
.no-results {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--color-background-light);
  border-radius: 8px;
  margin: 3rem 0;
}

.no-results h1 {
  font-size: 2rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

/* Responsive adjustments for archives */
@media (max-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-header {
    padding: 2rem 0 1.5rem;
  }

  .archive-title {
    font-size: 1.75rem;
  }

  .archive-description {
    font-size: 1rem;
  }

  .archive-posts {
    padding: 2rem 0;
  }
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

.search-header {
  padding: 1.5rem 0 2rem;
  background: var(--color-background);
  border-bottom: 2px solid var(--color-border-light);
}

.search-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.search-query {
  color: var(--color-primary);
  font-style: italic;
}

.search-results-count {
  color: var(--color-text-light);
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

.search-results {
  padding: 3rem 0;
  background: var(--color-background-light);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.search-result-item {
  background: var(--color-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-result-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.search-result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.search-result-item:hover .search-result-thumbnail img {
  transform: scale(1.05);
}

.search-result-content {
  padding: 1.5rem;
}

.search-result-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.search-result-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-title a:hover {
  color: var(--color-primary);
}

.search-result-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.search-result-meta .meta-sep {
  margin: 0 0.5rem;
}

.search-result-meta .categories a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-meta .categories a:hover {
  color: var(--color-primary-hover);
}

.search-result-excerpt {
  color: var(--color-text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.search-result-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.search-result-link:hover {
  color: var(--color-primary-hover);
}

/* Search No Results */
.search-no-results {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--color-background);
  border-radius: 8px;
  margin: 3rem 0;
  border: 2px solid var(--color-border-light);
}

.no-results-title {
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.no-results-text {
  color: var(--color-text-medium);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.search-try-again {
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.search-try-again .search-form {
  display: flex;
  gap: 0.5rem;
}

.search-try-again .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.search-try-again .search-field:focus {
  outline: none;
  border-color: var(--color-primary);
}

.search-try-again .search-submit {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-background);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-try-again .search-submit:hover {
  background: var(--color-primary-hover);
}

.search-suggestions {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  padding: 1.5rem;
  background: var(--color-background-light);
  border-radius: 8px;
}

.search-suggestions h3 {
  font-size: 1.125rem;
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-suggestions li {
  padding: 0.5rem 0;
  color: var(--color-text-medium);
  line-height: 1.6;
}

.search-suggestions li::before {
  content: "\2192";
  color: var(--color-primary);
  margin-right: 0.75rem;
  font-weight: 600;
}

.search-suggestions a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.search-suggestions a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* Responsive adjustments for search */
@media (max-width: 1024px) {
  .search-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-header {
    padding: 2rem 0 1.5rem;
  }

  .search-title {
    font-size: 1.5rem;
  }

  .search-results-count {
    font-size: 0.9rem;
  }

  .search-results {
    padding: 2rem 0;
  }

  .search-no-results {
    padding: 2.5rem 1.5rem;
  }

  .no-results-title {
    font-size: 1.5rem;
  }

  .no-results-text {
    font-size: 1rem;
  }
}

/* ==========================================================================
   HOMEPAGE - CAROUSEL (Old Elementor Design)
   ========================================================================== */

.home-carousel-section {
  background: var(--color-background);
  padding: 2rem 0;
  margin-top: 1rem;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
  margin: 0 3rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 1.25rem;
}

.carousel-card {
  flex: 0 0 calc(33.333% - 0.833rem);
  min-width: calc(33.333% - 0.833rem);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.carousel-card-link {
  display: block;
  position: relative;
  text-decoration: none;
}

.carousel-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.carousel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.carousel-card-link:hover .carousel-card-image img {
  transform: scale(1.05);
}

.carousel-card-no-image {
  background: var(--color-header-bg);
}

.carousel-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}

.carousel-card-category {
  display: inline-block;
  background: var(--color-category-bg);
  color: var(--color-category-text);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.carousel-card-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

/* Carousel responsive */
@media (max-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc(50% - 0.625rem);
    min-width: calc(50% - 0.625rem);
  }
}

@media (max-width: 768px) {
  .carousel-track-container {
    margin: 0 2.5rem;
  }

  .carousel-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .carousel-card-title {
    font-size: 0.9rem;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   HOMEPAGE - FEATURED + SIDEBAR SECTION
   ========================================================================== */

.home-featured-section {
  padding: 2.5rem 0;
  background: var(--color-background);
}

.featured-sidebar-wrap {
  display: flex;
  gap: 2.5rem;
}

.featured-main {
  flex: 1;
  min-width: 0;
}

.home-sidebar {
  flex: 0 0 340px;
  width: 340px;
}

.featured-article {
  border-radius: 8px;
  overflow: hidden;
}

.featured-article-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-article-image:hover img {
  transform: scale(1.03);
}

.featured-article-content {
  padding: 0;
}

.featured-article-content .category-badge {
  margin-bottom: 0.75rem;
}

.featured-article-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

.featured-article-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-article-title a:hover {
  color: var(--color-primary);
}

.featured-article-excerpt {
  color: var(--color-text-medium);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.featured-article-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Featured + Sidebar responsive */
@media (max-width: 1024px) {
  .featured-sidebar-wrap {
    flex-direction: column;
  }

  .home-sidebar {
    flex: 1;
    width: 100%;
  }
}

/* ==========================================================================
   HOMEPAGE - BLOG LIST (Old Elementor Style)
   ========================================================================== */

.home-blog-list {
  padding: 2.5rem 0;
  background: var(--color-background-light);
}

.blog-list-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

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

.blog-list-thumbnail {
  flex: 0 0 280px;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16/10;
}

.blog-list-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-list-item:hover .blog-list-thumbnail img {
  transform: scale(1.03);
}

.blog-list-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-list-content .category-badge {
  align-self: flex-start;
}

.blog-list-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.25rem 0 0.75rem 0;
}

.blog-list-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-list-title a:hover {
  color: var(--color-primary);
}

.blog-list-excerpt {
  color: var(--color-text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

.blog-list-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Blog list responsive */
@media (max-width: 768px) {
  .blog-list-item {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-list-thumbnail {
    flex: none;
    width: 100%;
  }

  .blog-list-title {
    font-size: 1.15rem;
  }
}

/* Homepage Pagination */
.home-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.home-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--color-background);
  color: var(--color-text-medium);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  font-weight: 500;
  transition: all 0.2s ease;
}

.home-pagination .page-numbers:hover,
.home-pagination .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

.home-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SIDEBAR SEARCH ENHANCEMENTS
   ========================================================================== */

/* Sidebar Search */
.widget-search .search-form {
  display: flex;
  gap: 0.5rem;
}

.widget-search .search-field {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9rem;
  min-width: 0;
}

.widget-search .search-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(80, 10, 219, 0.1);
}

.widget-search .search-submit {
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.widget-search .search-submit:hover {
  background: var(--color-primary-hover);
}

/* ==========================================================================
   NEWSLETTER WIDGET
   ========================================================================== */

.widget-newsletter {
  border-left-color: var(--color-primary);
}

.newsletter-description {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form input[type="email"] {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9rem;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(80, 10, 219, 0.1);
}

.newsletter-form button {
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-form button:hover {
  background: var(--color-primary-hover);
}

.newsletter-message {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
}

.newsletter-message.success {
  background: #f0fdf4;
  color: #166534;
}

.newsletter-message.error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}
