/**
 * Squirrel Theme - Main Stylesheet
 *
 * @package Squirrel
 * @since   1.0.0
 */

/* ─── CSS Reset & Base ───────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  font-family: var(--sq-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: var(--sq-font-size, 16px);
  line-height: var(--sq-line-height, 1.6);
  color: var(--sq-color-text, #333);
  background-color: var(--sq-color-bg, #fff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sq-mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: none;
}

@media (min-width: 769px) {
  .sq-hide-desktop {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sq-hide-mobile {
    display: none !important;
  }

  .sq-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

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

a:hover {
  color: var(--sq-color-secondary, #d26e4b);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sq-font-heading, var(--sq-font-body));
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: inherit;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1em;
}

ul,
ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

blockquote {
  border-left: 4px solid var(--sq-color-primary);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: rgba(0, 0, 0, 0.02);
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

table th,
table td {
  padding: 0.75em 1em;
  border: 1px solid var(--sq-color-border, #e0e0e0);
  text-align: left;
}

table th {
  background: var(--sq-color-bg-dark, #f7f7f7);
  font-weight: 600;
}

/* ─── Layout ─────────────────────────────────────────── */

.sq-container {
  max-width: var(--sq-container-width, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}

.sq-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.sq-col {
  padding: 0 15px;
  min-width: 0;
}

.sq-col-1 {
  flex: 0 0 8.333%;
  max-width: 8.333%;
}

.sq-col-2 {
  flex: 0 0 16.666%;
  max-width: 16.666%;
}

.sq-col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.sq-col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.sq-col-5 {
  flex: 0 0 41.666%;
  max-width: 41.666%;
}

.sq-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.sq-col-7 {
  flex: 0 0 58.333%;
  max-width: 58.333%;
}

.sq-col-8 {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}

.sq-col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.sq-col-10 {
  flex: 0 0 83.333%;
  max-width: 83.333%;
}

.sq-col-11 {
  flex: 0 0 91.666%;
  max-width: 91.666%;
}

.sq-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.sq-row-align-center {
  align-items: center;
}

.sq-row-align-end {
  align-items: flex-end;
}

.sq-row-justify-center {
  justify-content: center;
}

.sq-row-justify-between {
  justify-content: space-between;
}

.sq-row-justify-end {
  justify-content: flex-end;
}

/* Grid System */
.sq-grid {
  display: grid;
  gap: 30px;
}

.sq-grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.sq-grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.sq-grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.sq-grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.sq-grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.sq-grid-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* ─── Header ─────────────────────────────────────────── */

#header {
  position: relative;
  z-index: 100;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.header-sticky.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.header-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.header-transparent .header-main {
  background: transparent;
}

/* Top Bar */
.header-top {
  font-size: 0.813rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sq-topbar-contact {
  display: flex;
  gap: 15px;
}

.sq-topbar-contact a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  opacity: 0.9;
}

.sq-topbar-contact a:hover {
  opacity: 1;
}

/* Main Header */
.header-main {
  padding: 10px 0;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-layout-centered .header-main-inner {
  flex-direction: column;
  text-align: center;
}

.header-logo a {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  max-height: var(--sq-logo-height, 40px);
  width: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sq-color-text);
}

/* Navigation */
.sq-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.sq-nav-main>li>a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--sq-color-text);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.sq-nav-main>li>a:hover,
.sq-nav-main>.current-menu-item>a,
.sq-nav-main>.current-menu-parent>a {
  color: var(--sq-color-primary);
}

/* Dropdown menu */
.sq-nav-main li {
  position: relative;
}

.sq-nav-main .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: var(--sq-border-radius, 4px);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 200;
}

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

.sq-nav-main .sub-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.875rem;
  color: var(--sq-color-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sq-nav-main .sub-menu a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--sq-color-primary);
}

/* Level 3 */
.sq-nav-main .sub-menu .sub-menu {
  top: -8px;
  left: 100%;
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sq-header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--sq-color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.sq-header-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--sq-color-primary);
}

.sq-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--sq-color-secondary, #d26e4b);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Header Bottom */
.header-bottom {
  border-top: 1px solid var(--sq-color-border, #e0e0e0);
  padding: 5px 0;
}

.header-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Mobile Menu ────────────────────────────────────── */

.sq-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sq-color-text);
  cursor: pointer;
  padding: 5px;
}

.sq-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sq-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sq-mobile-menu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sq-mobile-overlay.is-open .sq-mobile-menu-wrapper {
  transform: translateX(0);
}

.sq-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--sq-color-border);
}

.sq-mobile-close {
  background: none;
  border: none;
  color: var(--sq-color-text);
  cursor: pointer;
  padding: 5px;
}

.sq-mobile-menu-search {
  padding: 10px 20px;
}

.sq-nav-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sq-nav-mobile-list a {
  display: block;
  padding: 12px 20px;
  color: var(--sq-color-text);
  font-size: 0.938rem;
  border-bottom: 1px solid var(--sq-color-border, #e0e0e0);
}

.sq-nav-mobile-list .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sq-nav-mobile-list .sub-menu a {
  padding-left: 40px;
  font-size: 0.875rem;
  color: var(--sq-color-text-light);
}

.sq-nav-mobile-list .sub-menu .sub-menu a {
  padding-left: 60px;
}

.sq-mobile-menu-icons {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid var(--sq-color-border);
}

.sq-mobile-icon-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sq-color-text);
  font-size: 0.875rem;
}

.sq-mobile-menu-contact {
  padding: 10px 20px;
  border-top: 1px solid var(--sq-color-border);
}

.sq-mobile-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sq-color-text-light);
  padding: 8px 0;
  font-size: 0.813rem;
}

/* ─── Search Overlay ─────────────────────────────────── */

.sq-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.sq-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sq-search-overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: 20px;
}

.sq-search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--sq-color-text);
  cursor: pointer;
  padding: 10px;
}

/* ─── Search Form ────────────────────────────────────── */

.sq-search-form {
  position: relative;
}

.sq-search-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid var(--sq-color-border, #e0e0e0);
  border-radius: var(--sq-border-radius, 4px);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.sq-search-input-wrapper:focus-within {
  border-color: var(--sq-color-primary);
}

.sq-search-input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: transparent;
}

.sq-search-submit {
  background: var(--sq-color-primary);
  color: #fff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.sq-search-submit:hover {
  background: var(--sq-color-secondary);
}

.sq-search-overlay .sq-search-input {
  font-size: 1.5rem;
  padding: 16px 20px;
}

/* ─── Page Header ────────────────────────────────────── */

.sq-page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 40px 0;
  background-size: cover;
  background-position: center;
}

.sq-page-header-title {
  font-size: 2rem;
  margin-bottom: 0.25em;
}

.sq-page-header-subtitle {
  font-size: 1.125rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* ─── Breadcrumbs ────────────────────────────────────── */

.sq-breadcrumbs {
  font-size: 0.813rem;
  color: var(--sq-color-text-light);
  margin-bottom: 10px;
}

.sq-breadcrumbs a {
  color: inherit;
  opacity: 0.8;
}

.sq-breadcrumbs a:hover {
  opacity: 1;
  color: var(--sq-color-primary);
}

.sq-breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.sq-breadcrumb-current {
  color: var(--sq-color-text);
}

/* ─── Content Area ───────────────────────────────────── */

.sq-content-area {
  padding: 40px 0;
}

.sq-entry-content {
  font-size: 1rem;
  line-height: 1.7;
}

.sq-entry-content p {
  margin-bottom: 1.25em;
}

.sq-entry-content img {
  border-radius: var(--sq-border-radius);
  margin: 1em 0;
}

.sq-entry-content h2 {
  margin-top: 1.5em;
}

.sq-entry-content h3 {
  margin-top: 1.25em;
}

/* ─── Post Cards ─────────────────────────────────────── */

.sq-post-card {
  background: #fff;
  border-radius: var(--sq-border-radius, 4px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.sq-post-card-image {
  position: relative;
  overflow: hidden;
}

.sq-post-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.sq-post-sticky-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--sq-color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.sq-post-card-body {
  padding: 20px;
}

.sq-post-card-category a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sq-color-primary);
  letter-spacing: 0.05em;
}

.sq-post-card-title {
  font-size: 1.125rem;
  margin: 8px 0;
  line-height: 1.4;
}

.sq-post-card-title a {
  color: var(--sq-color-text);
}

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

.sq-post-card-meta {
  font-size: 0.813rem;
  color: var(--sq-color-text-light);
  margin-bottom: 8px;
}

.sq-post-card-excerpt {
  font-size: 0.875rem;
  color: var(--sq-color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.sq-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sq-color-primary);
  transition: gap 0.2s ease;
}

.sq-read-more:hover {
  gap: 8px;
}

/* ─── Single Post ────────────────────────────────────── */

.sq-single-post {
  max-width: 100%;
}

.sq-post-featured-image {
  margin-bottom: 30px;
  border-radius: var(--sq-border-radius);
  overflow: hidden;
}

.sq-post-featured-image img {
  width: 100%;
}

.sq-post-header {
  margin-bottom: 25px;
}

.sq-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--sq-color-text-light);
}

.sq-reading-time {
  font-size: 0.875rem;
  color: var(--sq-color-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.sq-post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 25px 0;
  padding: 15px 0;
  border-top: 1px solid var(--sq-color-border);
  font-size: 0.875rem;
}

.sq-post-tags a {
  background: var(--sq-color-bg-dark, #f7f7f7);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.813rem;
  color: var(--sq-color-text-light);
}

.sq-post-tags a:hover {
  background: var(--sq-color-primary);
  color: #fff;
}

/* Share Buttons */
.sq-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 0;
  border-bottom: 1px solid var(--sq-color-border);
  margin-bottom: 25px;
}

.sq-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sq-color-text);
  margin-right: 5px;
}

.sq-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sq-color-bg-dark, #f7f7f7);
  color: var(--sq-color-text-light);
  transition: all 0.2s ease;
}

.sq-share-btn:hover {
  transform: translateY(-2px);
}

.sq-share-facebook:hover {
  background: #1877f2;
  color: #fff;
}

.sq-share-twitter:hover {
  background: #000;
  color: #fff;
}

.sq-share-pinterest:hover {
  background: #bd081c;
  color: #fff;
}

.sq-share-linkedin:hover {
  background: #0a66c2;
  color: #fff;
}

.sq-share-email:hover {
  background: var(--sq-color-primary);
  color: #fff;
}

/* Author Box */
.sq-author-box {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--sq-color-bg-dark, #f7f7f7);
  border-radius: var(--sq-border-radius);
  margin: 25px 0;
}

.sq-author-avatar img {
  border-radius: 50%;
}

.sq-author-name {
  font-size: 1rem;
  margin-bottom: 5px;
}

.sq-author-bio {
  font-size: 0.875rem;
  color: var(--sq-color-text-light);
  margin-bottom: 0;
}

/* Post Navigation */
.post-navigation {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--sq-color-border);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.sq-nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--sq-color-text-light);
  margin-bottom: 4px;
}

.sq-nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sq-color-text);
}

/* Related Posts */
.sq-related-posts {
  margin: 40px 0;
}

.sq-related-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.sq-related-image img {
  border-radius: var(--sq-border-radius);
  aspect-ratio: 16/10;
  object-fit: cover;
}

.sq-related-item-title {
  font-size: 0.938rem;
  margin: 10px 0 5px;
}

.sq-related-item-title a {
  color: var(--sq-color-text);
}

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

.sq-related-date {
  font-size: 0.813rem;
  color: var(--sq-color-text-light);
}

/* ─── Buttons ────────────────────────────────────────── */

.sq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.938rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: var(--sq-border-radius, 4px);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.4;
}

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

.sq-btn-primary:hover {
  background: color-mix(in srgb, var(--sq-color-primary) 85%, black);
  color: #fff;
}

.sq-btn-secondary {
  background: var(--sq-color-secondary);
  color: #fff;
}

.sq-btn-secondary:hover {
  background: color-mix(in srgb, var(--sq-color-secondary) 85%, black);
  color: #fff;
}

.sq-btn-outline {
  background: transparent;
  border-color: var(--sq-color-primary);
  color: var(--sq-color-primary);
}

.sq-btn-outline:hover {
  background: var(--sq-color-primary);
  color: #fff;
}

.sq-btn-ghost {
  background: transparent;
  color: var(--sq-color-text);
}

.sq-btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sq-btn-sm {
  padding: 6px 16px;
  font-size: 0.813rem;
}

.sq-btn-lg {
  padding: 14px 32px;
  font-size: 1.063rem;
}

.sq-btn-xl {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.sq-btn-block {
  width: 100%;
}

/* ─── Section ────────────────────────────────────────── */

.sq-section {
  position: relative;
  overflow: hidden;
}

.sq-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.sq-section>.sq-container {
  position: relative;
  z-index: 2;
}

/* ─── Footer ─────────────────────────────────────────── */

#footer {
  margin-top: auto;
}

.sq-footer-widgets {
  padding: 50px 0 30px;
}

.sq-footer-cols {
  gap: 30px;
}

.sq-footer-cols-2 .sq-footer-col {
  flex: 0 0 50%;
  max-width: 50%;
}

.sq-footer-cols-3 .sq-footer-col {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.sq-footer-cols-4 .sq-footer-col {
  flex: 0 0 25%;
  max-width: 25%;
}

.sq-footer-col .widget-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  position: relative;
}

.sq-footer-col .widget {
  margin-bottom: 25px;
}

.sq-footer-col a {
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.sq-footer-col a:hover {
  opacity: 1;
}

.sq-footer-col ul {
  list-style: none;
  padding: 0;
}

.sq-footer-col ul li {
  padding: 5px 0;
}

.sq-footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.813rem;
}

.sq-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.sq-nav-footer .sq-nav-list {
  gap: 20px;
}

.sq-nav-footer .sq-nav-list a {
  color: inherit;
  opacity: 0.8;
}

.sq-nav-footer .sq-nav-list a:hover {
  opacity: 1;
}

/* ─── Back to Top ────────────────────────────────────── */

.sq-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--sq-color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sq-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sq-back-to-top:hover {
  background: var(--sq-color-secondary);
  transform: translateY(-3px);
}

/* ─── Pagination ─────────────────────────────────────── */

.sq-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 40px 0;
}

.sq-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--sq-border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sq-color-text);
  background: var(--sq-color-bg-dark, #f7f7f7);
  transition: all 0.2s ease;
}

.sq-pagination .page-numbers:hover {
  background: var(--sq-color-primary);
  color: #fff;
}

.sq-pagination .page-numbers.current {
  background: var(--sq-color-primary);
  color: #fff;
}

.sq-pagination .prev,
.sq-pagination .next {
  gap: 5px;
}

/* ─── Comments ───────────────────────────────────────── */

.sq-comments-section {
  margin: 40px 0;
}

.sq-comments-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

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

.sq-comment {
  margin-bottom: 20px;
}

.sq-comment-body {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--sq-color-bg-dark, #f7f7f7);
  border-radius: var(--sq-border-radius);
}

.sq-comment-avatar img {
  border-radius: 50%;
}

.sq-comment-content {
  flex: 1;
  min-width: 0;
}

.sq-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sq-comment-author {
  font-weight: 600;
  font-size: 0.938rem;
}

.sq-comment-date {
  font-size: 0.75rem;
  color: var(--sq-color-text-light);
}

.sq-comment-text {
  font-size: 0.875rem;
}

.sq-comment-actions {
  margin-top: 8px;
  font-size: 0.813rem;
}

.sq-comment-actions a {
  color: var(--sq-color-primary);
  margin-right: 10px;
}

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

.sq-comment-form textarea:focus,
.sq-comment-form input:focus {
  outline: none;
  border-color: var(--sq-color-primary);
}

/* ─── 404 Page ───────────────────────────────────────── */

.sq-page-404 {
  text-align: center;
  padding: 80px 0;
}

.sq-404-number {
  font-size: 8rem;
  font-weight: 800;
  color: var(--sq-color-primary);
  line-height: 1;
  opacity: 0.2;
  margin-bottom: 10px;
}

.sq-404-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.sq-404-text {
  color: var(--sq-color-text-light);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.sq-404-search {
  max-width: 400px;
  margin: 0 auto 30px;
}

/* ─── Sidebar / Widgets ──────────────────────────────── */

.sq-sidebar .widget {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--sq-color-bg-dark, #f7f7f7);
  border-radius: var(--sq-border-radius);
}

.sq-sidebar .widget-title {
  font-size: 1rem;
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--sq-color-primary);
}

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

.sq-sidebar .widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.sq-sidebar .widget ul li a {
  color: var(--sq-color-text);
  font-size: 0.875rem;
}

/* ─── Site Loader ────────────────────────────────────── */

.sq-site-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.sq-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--sq-color-border);
  border-top-color: var(--sq-color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Icons ──────────────────────────────────────────── */

.sq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sq-icon svg {
  width: 100%;
  height: 100%;
}

/* ─── Utilities ──────────────────────────────────────── */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.sq-hide {
  display: none !important;
}

.sq-text-center {
  text-align: center;
}

.sq-text-right {
  text-align: right;
}

.sq-text-left {
  text-align: left;
}

.sq-mt-0 {
  margin-top: 0;
}

.sq-mb-0 {
  margin-bottom: 0;
}

/* ─── Search Results ─────────────────────────────────── */

.sq-search-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--sq-color-border);
}

.sq-search-item-inner {
  display: flex;
  gap: 20px;
}

.sq-search-item-image img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--sq-border-radius);
}

.sq-search-item-type {
  font-size: 0.688rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sq-color-primary);
  letter-spacing: 0.05em;
}

.sq-search-item-title {
  font-size: 1.125rem;
  margin: 4px 0 8px;
}

.sq-search-item-excerpt {
  font-size: 0.875rem;
  color: var(--sq-color-text-light);
}

/* ─── No Results ─────────────────────────────────────── */

.sq-no-results {
  text-align: center;
  padding: 60px 20px;
}

.sq-no-results h2 {
  margin-bottom: 10px;
}

.sq-no-results p {
  color: var(--sq-color-text-light);
  margin-bottom: 25px;
}

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 992px) {
  .sq-hide-desktop {
    display: block !important;
  }

  .sq-mobile-toggle {
    display: flex !important;
  }

  .sq-hide-mobile {
    display: none !important;
  }

  .sq-col-9,
  .sq-col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sq-sidebar-left {
    flex-direction: column-reverse;
  }

  .sq-grid-md-1 {
    grid-template-columns: repeat(1, 1fr);
  }

  .sq-grid-md-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sq-grid-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .sq-footer-cols-4 .sq-footer-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .sq-container {
    padding: 0 15px;
  }

  .sq-content-area {
    padding: 25px 0;
  }

  .sq-grid-sm-1 {
    grid-template-columns: repeat(1, 1fr);
  }

  .sq-grid-sm-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sq-footer-cols-4 .sq-footer-col,
  .sq-footer-cols-3 .sq-footer-col,
  .sq-footer-cols-2 .sq-footer-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sq-footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .sq-404-number {
    font-size: 5rem;
  }

  .sq-author-box {
    flex-direction: column;
    text-align: center;
  }

  .sq-search-item-inner {
    flex-direction: column;
  }

  .sq-search-item-image img {
    width: 100%;
    height: 200px;
  }

  .post-navigation .nav-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .sq-header-icon-btn {
    width: 36px;
    height: 36px;
  }

  .header-icons {
    gap: 2px;
  }
}

@media (min-width: 993px) {
  .sq-hide-desktop {
    display: none !important;
  }
}

/* ─── WordPress Defaults ─────────────────────────────── */

.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

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

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

.alignwide {
  max-width: calc(var(--sq-container-width) + 200px);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.813rem;
  color: var(--sq-color-text-light);
  text-align: center;
  margin-top: 5px;
}

.gallery {
  display: grid;
  gap: 10px;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.sticky .sq-post-card {
  border-left: 3px solid var(--sq-color-primary);
}

.page-links {
  margin: 1.5em 0;
  padding: 10px 0;
  border-top: 1px solid var(--sq-color-border);
}

/* ─── Print ──────────────────────────────────────────── */

@media print {

  #header,
  #footer,
  .sq-sidebar,
  .sq-back-to-top,
  .sq-share-buttons,
  .sq-search-overlay,
  .sq-mobile-overlay,
  .sq-pagination {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}