/* ==========================================================================
   Queenslanders Theme - Main Stylesheet
   Clean, spacious, content-focused layout with blue professional color scheme
   Inspired by artfulparent.com layout patterns
   Uses CSS custom properties set on :root by PHP
   ========================================================================== */


/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ql-body-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: var(--ql-base-size, 17px);
  font-weight: var(--ql-body-weight, 400);
  color: var(--ql-text, #1f2937);
  background-color: var(--ql-bg, #f8fafc);
  line-height: var(--ql-line-height, 1.7);
  letter-spacing: var(--ql-letter-spacing, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.has-sticky-header {
  padding-top: 80px;
}


/* --------------------------------------------------------------------------
   1a. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ql-heading-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-weight: var(--ql-heading-weight, 700);
  color: var(--ql-heading-color, #111827);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.6em;
}

h1 { font-size: var(--ql-h1, 36px); }
h2 { font-size: var(--ql-h2, 30px); }
h3 { font-size: var(--ql-h3, 24px); }
h4 { font-size: var(--ql-h4, 20px); }
h5 { font-size: var(--ql-h5, 18px); }
h6 { font-size: var(--ql-h6, 16px); }

p {
  margin-top: 0;
  margin-bottom: 1.5em;
}

a {
  color: var(--ql-link, #1a56db);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--ql-link-hover, #1e3a5f);
  text-decoration: underline;
}

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

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

blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--ql-primary, #1a56db);
  background: #f0f5ff;
  font-style: italic;
  color: #374151;
}

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

pre, code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
}

code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1f2937;
}

pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1.25em 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ql-border, #e5e7eb);
}

th {
  font-weight: 600;
  color: var(--ql-heading-color, #111827);
  background: #f9fafb;
}

hr {
  border: 0;
  border-top: 1px solid var(--ql-border, #e5e7eb);
  margin: 2em 0;
}

figure {
  margin: 1.5em 0;
}

figcaption {
  font-size: 0.85em;
  color: #6b7280;
  margin-top: 0.5em;
  text-align: center;
}


/* --------------------------------------------------------------------------
   1b. Accessibility
   -------------------------------------------------------------------------- */

.ql-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--ql-primary, #1a56db);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.ql-skip-link:focus {
  top: 0;
  outline: 2px solid var(--ql-accent, #f59e0b);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--ql-primary, #1a56db);
  outline-offset: 2px;
}

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

.screen-reader-text:focus {
  clip: auto !important;
  display: block;
  height: auto;
  width: auto;
  z-index: 100000;
  background: #fff;
  padding: 8px 16px;
}


/* ==========================================================================
   2. BUTTONS
   ========================================================================== */

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

.ql-btn:hover {
  text-decoration: none;
}

.ql-btn--primary {
  background-color: var(--ql-btn-bg, #1a56db);
  color: var(--ql-btn-text, #fff);
  border-color: var(--ql-btn-bg, #1a56db);
}

.ql-btn--primary:hover,
.ql-btn--primary:focus {
  background-color: var(--ql-btn-hover, #1e3a5f);
  border-color: var(--ql-btn-hover, #1e3a5f);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.ql-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ql-site-content {
  flex: 1;
}

.ql-container {
  max-width: var(--ql-content-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ql-content-area {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.no-sidebar .ql-content-area {
  grid-template-columns: 1fr;
}

.sidebar-left .ql-content-area {
  grid-template-columns: 340px 1fr;
}

.sidebar-left .ql-sidebar {
  order: -1;
}

.ql-main {
  min-width: 0;
}


/* ==========================================================================
   4. TOP BAR
   ========================================================================== */

.ql-top-bar {
  background: var(--ql-secondary, #1e3a5f);
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.4;
}

.ql-top-bar__inner {
  max-width: var(--ql-content-width, 1200px);
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.ql-top-bar__phone,
.ql-top-bar__email {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ql-top-bar__phone a,
.ql-top-bar__email a {
  color: #d1d5db;
  text-decoration: none;
}

.ql-top-bar__phone a:hover,
.ql-top-bar__email a:hover {
  color: #fff;
  text-decoration: none;
}

.ql-top-bar__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ql-top-bar__social a {
  color: #d1d5db;
  transition: color 0.2s;
}

.ql-top-bar__social a:hover {
  color: #fff;
  text-decoration: none;
}


/* ==========================================================================
   5. SITE HEADER
   ========================================================================== */

.ql-site-header {
  background: var(--ql-header-bg, #fff);
  border-bottom: 1px solid var(--ql-border, #e5e7eb);
  position: relative;
  z-index: 1000;
}

.ql-site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  animation: ql-slideDown 0.3s ease;
}

@keyframes ql-slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ql-site-header__inner {
  max-width: var(--ql-content-width, 1200px);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ql-site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ql-site-branding__logo img {
  height: 44px;
  width: auto;
}

.ql-site-branding__text {
  display: flex;
  flex-direction: column;
}

.ql-site-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.ql-site-title a {
  color: var(--ql-heading-color, #111827);
  text-decoration: none;
}

.ql-site-title a:hover {
  color: var(--ql-primary, #1a56db);
  text-decoration: none;
}

.ql-site-description {
  font-size: 13px;
  color: #6b7280;
  margin: 2px 0 0;
  line-height: 1.3;
}


/* --------------------------------------------------------------------------
   5a. Main Navigation
   -------------------------------------------------------------------------- */

.ql-main-navigation {
  display: flex;
  align-items: center;
}

.ql-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.ql-nav-menu li {
  position: relative;
}

.ql-nav-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ql-text, #1f2937);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ql-nav-menu li a:hover,
.ql-nav-menu li a:focus,
.ql-nav-menu li.current-menu-item > a,
.ql-nav-menu li.current_page_item > a {
  background-color: var(--ql-primary, #1a56db);
  color: #fff;
  text-decoration: none;
}

/* Submenu */
.ql-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--ql-border, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  list-style: none;
  z-index: 9999;
}

.ql-nav-menu li:hover > .sub-menu,
.ql-nav-menu li:focus-within > .sub-menu {
  display: block;
}

.ql-nav-menu .sub-menu li a {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 0;
  white-space: nowrap;
}

.ql-nav-menu .sub-menu li a:hover {
  background-color: #f0f5ff;
  color: var(--ql-primary, #1a56db);
}

/* Nested submenu */
.ql-nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}


/* --------------------------------------------------------------------------
   5b. Mobile Menu Toggle
   -------------------------------------------------------------------------- */

.ql-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--ql-border, #e5e7eb);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ql-text, #1f2937);
  font-size: 14px;
  font-weight: 500;
  gap: 6px;
  transition: background-color 0.2s;
}

.ql-menu-toggle:hover {
  background-color: #f3f4f6;
}

.ql-menu-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.ql-menu-toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.ql-hero {
  background: linear-gradient(135deg, var(--ql-primary, #1a56db) 0%, var(--ql-secondary, #1e3a5f) 100%);
  padding: 56px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ql-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ql-hero__content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ql-hero__title {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ql-hero__description {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.ql-hero__search {
  max-width: 520px;
  margin: 0 auto;
}

.ql-hero__search form {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ql-hero__search input[type="search"],
.ql-hero__search input[type="text"] {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.ql-hero__search button,
.ql-hero__search input[type="submit"] {
  padding: 14px 28px;
  background: var(--ql-accent, #f59e0b);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.ql-hero__search button:hover,
.ql-hero__search input[type="submit"]:hover {
  background: #d97706;
}


/* ==========================================================================
   7. BREADCRUMBS
   ========================================================================== */

.ql-breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.ql-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.ql-breadcrumb-item {
  display: flex;
  align-items: center;
}

.ql-breadcrumb-item a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.ql-breadcrumb-item a:hover {
  color: var(--ql-primary, #1a56db);
  text-decoration: underline;
}

.ql-breadcrumb-sep {
  margin: 0 8px;
  color: #d1d5db;
  font-size: 11px;
}


/* ==========================================================================
   8. FEATURED POSTS
   ========================================================================== */

.ql-featured-posts {
  padding: 48px 0 24px;
}

.ql-featured-posts__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ql-primary, #1a56db);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ql-primary, #1a56db);
  display: inline-block;
}

.ql-featured-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ql-featured-posts__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ql-featured-posts__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ql-featured-posts__thumbnail {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.ql-featured-posts__item:hover .ql-featured-posts__thumbnail img {
  transform: scale(1.05);
}

.ql-featured-posts__item-title {
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.ql-featured-posts__item-title a {
  color: var(--ql-heading-color, #111827);
  text-decoration: none;
}

.ql-featured-posts__item-title a:hover {
  color: var(--ql-primary, #1a56db);
  text-decoration: none;
}


/* ==========================================================================
   9. POST CARDS - Horizontal List Layout (artfulparent style)
   ========================================================================== */

.ql-posts-grid {
  display: flex;
  flex-direction: column;
}

.ql-post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--ql-border, #e5e7eb);
  align-items: start;
}

.ql-post-card:first-child {
  padding-top: 0;
}

.ql-post-card:last-child {
  border-bottom: none;
}

.ql-post-card__thumbnail {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}

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

.ql-post-card:hover .ql-post-card__thumbnail img {
  transform: scale(1.03);
}

.ql-post-card__thumbnail a {
  display: block;
  height: 100%;
}

.ql-post-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.ql-post-card__header {
  margin-bottom: 8px;
}

.ql-post-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}

.ql-post-card__title a {
  color: var(--ql-heading-color, #111827);
  text-decoration: none;
  transition: color 0.2s;
}

.ql-post-card__title a:hover {
  color: var(--ql-primary, #1a56db);
  text-decoration: none;
}

.ql-post-card__meta {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.ql-post-card__meta a {
  color: #6b7280;
}

.ql-post-card__meta a:hover {
  color: var(--ql-primary, #1a56db);
}

.ql-post-card__meta span + span::before {
  content: '\00b7';
  margin-right: 4px;
  color: #d1d5db;
}

.ql-post-card__excerpt {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 16px;
}

.ql-post-card__excerpt p {
  margin: 0;
}

.ql-post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ql-primary, #1a56db);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.ql-post-card__read-more::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.ql-post-card__read-more:hover {
  color: var(--ql-link-hover, #1e3a5f);
  text-decoration: none;
  gap: 10px;
}

.ql-post-card__read-more:hover::after {
  transform: translateX(2px);
}


/* --------------------------------------------------------------------------
   9a. Grid Layout Variant (for .blog-grid body class)
   -------------------------------------------------------------------------- */

.blog-grid .ql-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-grid .ql-post-card {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  padding: 0;
  border-bottom: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-grid .ql-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.blog-grid .ql-post-card__thumbnail {
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

.blog-grid .ql-post-card__content {
  padding: 24px;
}

.blog-grid .ql-post-card__title {
  font-size: 20px;
}


/* --------------------------------------------------------------------------
   9b. Card Layout Variant (for .blog-card body class)
   -------------------------------------------------------------------------- */

.blog-card .ql-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card .ql-post-card {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  padding: 0;
  border-bottom: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card .ql-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.blog-card .ql-post-card__thumbnail {
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

.blog-card .ql-post-card__content {
  padding: 20px;
}

.blog-card .ql-post-card__title {
  font-size: 18px;
}

.blog-card .ql-post-card__excerpt {
  font-size: 14px;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   9c. Ad Post Card
   -------------------------------------------------------------------------- */

.ql-post-card--ad {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--ql-border, #e5e7eb);
  align-items: start;
  position: relative;
}

.blog-grid .ql-post-card--ad,
.blog-card .ql-post-card--ad {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  padding: 0;
  border-bottom: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}


/* ==========================================================================
   10. FRONT PAGE
   ========================================================================== */

.ql-front-page .ql-posts-grid {
  padding-top: 16px;
}


/* ==========================================================================
   11. SINGLE POST
   ========================================================================== */

.ql-single-post {
  max-width: 780px;
  margin: 0 auto;
}

.ql-single-content {
  max-width: 780px;
}

.ql-article__header {
  margin-bottom: 32px;
}

.ql-article__title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ql-heading-color, #111827);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ql-article__meta {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.ql-article__meta a {
  color: #6b7280;
  font-weight: 500;
}

.ql-article__meta a:hover {
  color: var(--ql-primary, #1a56db);
}

.ql-article__featured-image {
  margin-bottom: 36px;
  border-radius: 12px;
  overflow: hidden;
}

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


/* --------------------------------------------------------------------------
   11a. Article Content Typography
   -------------------------------------------------------------------------- */

.ql-article__content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ql-text, #1f2937);
}

.ql-article__content h2 {
  font-size: 28px;
  margin-top: 2em;
  margin-bottom: 0.6em;
  padding-top: 0.5em;
}

.ql-article__content h3 {
  font-size: 22px;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.ql-article__content h4 {
  font-size: 18px;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.ql-article__content p {
  margin-bottom: 1.6em;
}

.ql-article__content img {
  border-radius: 8px;
  margin: 2em auto;
}

.ql-article__content ul,
.ql-article__content ol {
  margin-bottom: 1.6em;
  padding-left: 1.6em;
}

.ql-article__content li {
  margin-bottom: 0.4em;
}

.ql-article__content blockquote {
  margin: 2em 0;
  padding: 1.25em 1.75em;
  border-left: 4px solid var(--ql-primary, #1a56db);
  background: #f0f5ff;
  border-radius: 0 8px 8px 0;
  font-size: 1.05em;
}

.ql-article__content table {
  margin: 2em 0;
}

.ql-article__content .wp-block-image {
  margin: 2em 0;
}

.ql-article__content .wp-block-image figcaption {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-top: 8px;
}

.ql-article__content a {
  color: var(--ql-link, #1a56db);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ql-article__content a:hover {
  color: var(--ql-link-hover, #1e3a5f);
}


/* --------------------------------------------------------------------------
   11b. Article Footer & Tags
   -------------------------------------------------------------------------- */

.ql-article__footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ql-border, #e5e7eb);
}

.ql-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.ql-article__tags a {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ql-primary, #1a56db);
  background: #eff6ff;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.ql-article__tags a:hover {
  background: var(--ql-primary, #1a56db);
  color: #fff;
  text-decoration: none;
}


/* ==========================================================================
   12. AUTHOR BOX
   ========================================================================== */

.ql-author-box {
  display: flex;
  gap: 24px;
  padding: 30px;
  background: #f8fafc;
  border-radius: 12px;
  margin-top: 40px;
  align-items: flex-start;
}

.ql-author-box__avatar {
  flex-shrink: 0;
}

.ql-author-box__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.ql-author-box__info {
  flex: 1;
  min-width: 0;
}

.ql-author-box__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.ql-author-box__name a {
  color: var(--ql-heading-color, #111827);
  text-decoration: none;
}

.ql-author-box__name a:hover {
  color: var(--ql-primary, #1a56db);
}

.ql-author-box__bio {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.ql-author-box__bio p {
  margin: 0;
}


/* ==========================================================================
   13. RELATED POSTS
   ========================================================================== */

.ql-related-posts {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--ql-border, #e5e7eb);
}

.ql-related-posts__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ql-heading-color, #111827);
}

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

.ql-related-posts__item {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ql-related-posts__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ql-related-posts__thumbnail {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.ql-related-posts__item:hover .ql-related-posts__thumbnail img {
  transform: scale(1.05);
}

.ql-related-posts__item-title {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.ql-related-posts__item-title a {
  color: var(--ql-heading-color, #111827);
  text-decoration: none;
}

.ql-related-posts__item-title a:hover {
  color: var(--ql-primary, #1a56db);
  text-decoration: none;
}


/* ==========================================================================
   14. POST NAVIGATION
   ========================================================================== */

.ql-post-navigation {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ql-border, #e5e7eb);
}

.ql-post-navigation__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.ql-post-navigation__prev,
.ql-post-navigation__next {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ql-post-navigation__next {
  text-align: right;
}

.ql-post-navigation__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.ql-post-navigation__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--ql-heading-color, #111827);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.ql-post-navigation__link:hover {
  color: var(--ql-primary, #1a56db);
  text-decoration: none;
}


/* ==========================================================================
   15. COMMENTS (WordPress defaults)
   ========================================================================== */

.comments-area {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--ql-border, #e5e7eb);
}

.comments-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
}

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

.comment-list .comment {
  padding: 24px 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

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

.comment-author .fn {
  font-weight: 600;
  font-size: 15px;
}

.comment-metadata {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.comment-content {
  font-size: 15px;
  line-height: 1.65;
}

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

.reply a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ql-primary, #1a56db);
}

.children {
  list-style: none;
  padding-left: 40px;
}

.comment-respond {
  margin-top: 40px;
}

.comment-reply-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ql-border, #e5e7eb);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--ql-primary, #1a56db);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

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

.comment-form .submit {
  display: inline-flex;
  padding: 10px 28px;
  background: var(--ql-btn-bg, #1a56db);
  color: var(--ql-btn-text, #fff);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.comment-form .submit:hover {
  background: var(--ql-btn-hover, #1e3a5f);
}


/* ==========================================================================
   16. SIDEBAR
   ========================================================================== */

.ql-sidebar {
  padding-top: 8px;
}

.ql-widget {
  margin-bottom: 40px;
}

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

.ql-widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ql-heading-color, #111827);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ql-primary, #1a56db);
  margin-bottom: 20px;
}

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

.ql-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 15px;
}

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

.ql-widget ul li a {
  color: var(--ql-text, #1f2937);
  text-decoration: none;
}

.ql-widget ul li a:hover {
  color: var(--ql-primary, #1a56db);
}

/* Sidebar search widget */
.ql-widget .search-form {
  display: flex;
}

.ql-widget .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--ql-border, #e5e7eb);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.ql-widget .search-field:focus {
  border-color: var(--ql-primary, #1a56db);
}

.ql-widget .search-submit {
  padding: 10px 16px;
  background: var(--ql-btn-bg, #1a56db);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ql-widget .search-submit:hover {
  background: var(--ql-btn-hover, #1e3a5f);
}


/* ==========================================================================
   17. PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 48px 0 16px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ql-border, #e5e7eb);
  border-radius: 21px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ql-text, #1f2937);
  text-decoration: none;
  background: #fff;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--ql-primary, #1a56db);
  color: #fff;
  border-color: var(--ql-primary, #1a56db);
  font-weight: 600;
}

.page-numbers.dots {
  border: none;
  background: none;
  padding: 0 4px;
  min-width: auto;
  color: #9ca3af;
}

.page-numbers.prev,
.page-numbers.next {
  font-weight: 600;
  padding: 0 18px;
}


/* ==========================================================================
   18. ARCHIVE PAGES
   ========================================================================== */

.ql-archive {
  padding-bottom: 16px;
}

.ql-archive__header {
  padding: 32px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ql-border, #e5e7eb);
}

.ql-archive__title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ql-heading-color, #111827);
}

.ql-archive__description {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.ql-archive__description p {
  margin: 0;
}


/* ==========================================================================
   19. SEARCH RESULTS
   ========================================================================== */

.ql-search-results {
  padding-bottom: 16px;
}

.ql-search-results__header {
  padding: 32px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ql-border, #e5e7eb);
}

.ql-search-results__title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: var(--ql-heading-color, #111827);
}

.ql-search-results__list {
  display: flex;
  flex-direction: column;
}

.ql-search-item__header {
  margin-bottom: 4px;
}

.ql-search-item__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.ql-search-item__title a {
  color: var(--ql-heading-color, #111827);
  text-decoration: none;
}

.ql-search-item__title a:hover {
  color: var(--ql-primary, #1a56db);
}

.ql-search-item__meta {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.ql-search-item__excerpt {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0;
}


/* ==========================================================================
   20. 404 PAGE
   ========================================================================== */

.ql-error-404 {
  text-align: center;
  padding: 80px 24px;
}

.ql-error-404__header {
  margin-bottom: 24px;
}

.ql-error-404__title {
  font-size: 120px;
  font-weight: 900;
  color: var(--ql-primary, #1a56db);
  line-height: 1;
  margin: 0 0 8px;
  opacity: 0.15;
}

.ql-error-404__content {
  max-width: 520px;
  margin: 0 auto;
}

.ql-error-404__message {
  font-size: 20px;
  color: #4b5563;
  margin-bottom: 32px;
  line-height: 1.6;
}

.ql-error-404__search {
  max-width: 400px;
  margin: 0 auto 40px;
}

.ql-error-404__search form {
  display: flex;
}

.ql-error-404__search input[type="search"],
.ql-error-404__search input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--ql-border, #e5e7eb);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.ql-error-404__search input:focus {
  border-color: var(--ql-primary, #1a56db);
}

.ql-error-404__search button,
.ql-error-404__search input[type="submit"] {
  padding: 12px 24px;
  background: var(--ql-btn-bg, #1a56db);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ql-error-404__search button:hover,
.ql-error-404__search input[type="submit"]:hover {
  background: var(--ql-btn-hover, #1e3a5f);
}

.ql-error-404__recent {
  text-align: left;
  max-width: 400px;
  margin: 0 auto 32px;
}

.ql-error-404__recent h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ql-error-404__recent ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ql-error-404__recent li {
  padding: 6px 0;
}

.ql-error-404__recent a {
  font-size: 15px;
  color: var(--ql-link, #1a56db);
}

.ql-error-404__home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--ql-btn-bg, #1a56db);
  color: var(--ql-btn-text, #fff);
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.ql-error-404__home-link:hover {
  background: var(--ql-btn-hover, #1e3a5f);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}


/* ==========================================================================
   21. NO RESULTS
   ========================================================================== */

.ql-no-results {
  text-align: center;
  padding: 60px 24px;
}

.ql-no-results__header {
  margin-bottom: 16px;
}

.ql-no-results__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ql-heading-color, #111827);
  margin: 0 0 16px;
}

.ql-no-results__content {
  max-width: 480px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.ql-no-results__content .search-form {
  display: flex;
  max-width: 400px;
  margin: 24px auto 0;
}

.ql-no-results__content .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--ql-border, #e5e7eb);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-family: inherit;
  font-size: 14px;
}

.ql-no-results__content .search-submit {
  padding: 10px 20px;
  background: var(--ql-btn-bg, #1a56db);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}


/* ==========================================================================
   22. AD SLOTS
   ========================================================================== */

.ql-ad-slot {
  margin: 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ql-ad-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  opacity: 0.3;
  margin-bottom: 6px;
  line-height: 1;
}

.ql-ad-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.ql-ad-content img {
  max-width: 100%;
  height: auto;
}

.ql-ad-slot--header-banner {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.ql-ad-slot--in-article {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.ql-ad-slot--in-feed {
  padding: 24px 0;
}

.ql-ad-slot--sidebar {
  margin-bottom: 32px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
}

.ql-ad-slot--before-content {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.ql-ad-slot--after-content {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.ql-ad-slot--footer {
  padding: 24px 0;
}


/* ==========================================================================
   23. SITE FOOTER
   ========================================================================== */

.ql-site-footer {
  background: var(--ql-footer-bg, #111827);
  color: var(--ql-footer-text, #d1d5db);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   23. Footer Main (4-Column Layout)
   -------------------------------------------------------------------------- */

.ql-footer-main {
  padding: 64px 0 48px;
}

.ql-footer-main__grid {
  max-width: var(--ql-content-width, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.8fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.ql-footer-main__col {
  min-width: 0;
}

/* Footer Logo */
.ql-footer-logo {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}

.ql-footer-logo__img {
  max-height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.ql-footer-logo--text {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.ql-footer-main__desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ql-footer-text, #d1d5db);
  margin: 0;
}

/* Footer Headings */
.ql-footer-main__heading {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px 0;
  padding: 0;
  letter-spacing: -0.01em;
}

/* Footer Disclaimer */
.ql-footer-main__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ql-footer-text, #d1d5db);
  margin: 0;
}

.ql-footer-main__text strong {
  color: #fff;
  font-weight: 700;
}

.ql-footer-main__desc strong {
  color: #fff;
  font-weight: 700;
}

/* Footer Nav List */
.ql-footer-nav-list {
  list-style: disc;
  padding: 0 0 0 20px;
  margin: 0;
}

.ql-footer-nav-list li {
  padding: 5px 0;
}

.ql-footer-nav-list li::marker {
  color: var(--ql-footer-text, #d1d5db);
}

.ql-footer-nav-list li a {
  color: #60a5fa;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}

.ql-footer-nav-list li a:hover {
  color: #93bbfd;
  text-decoration: underline;
}

/* Footer Social Icons */
.ql-footer-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ql-footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.ql-footer-social-icon svg {
  width: 24px;
  height: 24px;
}

.ql-footer-social-icon:hover {
  color: #60a5fa;
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   23a. Footer Bottom Bar
   -------------------------------------------------------------------------- */

.ql-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ql-footer-bottom__inner {
  max-width: var(--ql-content-width, 1200px);
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.ql-footer-bottom__copyright {
  font-size: 14px;
  color: #9ca3af;
}

.ql-footer-bottom__copyright strong {
  color: #fff;
  font-weight: 700;
}

.ql-footer-bottom__copyright a {
  color: #d1d5db;
  text-decoration: none;
}

.ql-footer-bottom__copyright a:hover {
  color: #fff;
}

/* Legacy widget styles kept for backward compat */
.ql-footer-widgets {
  padding: 60px 0 40px;
}

.ql-footer-widgets__grid {
  max-width: var(--ql-content-width, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.ql-footer-widgets__column {
  min-width: 0;
}

.ql-footer-widget {
  margin-bottom: 32px;
}

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

.ql-footer-widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

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

.ql-footer-widget ul li {
  padding: 6px 0;
}

.ql-footer-widget ul li a {
  color: var(--ql-footer-text, #d1d5db);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.ql-footer-widget ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.ql-footer-widget p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ql-footer-text, #d1d5db);
}


/* ==========================================================================
   24. WORDPRESS CORE STYLES
   ========================================================================== */

/* Alignment */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

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

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

.alignwide {
  margin-left: -60px;
  margin-right: -60px;
  max-width: calc(100% + 120px);
}

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

/* Captions */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
}

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

.wp-caption-text {
  font-size: 0.85em;
  color: #6b7280;
  margin-top: 0.5em;
  text-align: center;
}

/* Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1.5em;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  border-radius: 4px;
}

/* WordPress block styles */
.wp-block-button__link {
  display: inline-flex;
  padding: 10px 24px;
  background: var(--ql-btn-bg, #1a56db);
  color: var(--ql-btn-text, #fff);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.wp-block-button__link:hover {
  background: var(--ql-btn-hover, #1e3a5f);
  color: #fff;
  text-decoration: none;
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--ql-border, #e5e7eb);
  margin: 2em 0;
}

.wp-block-quote {
  border-left: 4px solid var(--ql-primary, #1a56db);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: #f0f5ff;
  border-radius: 0 8px 8px 0;
}

.wp-block-pullquote {
  border-top: 4px solid var(--ql-primary, #1a56db);
  border-bottom: 4px solid var(--ql-primary, #1a56db);
  padding: 2em 0;
  text-align: center;
  margin: 2em 0;
}

.wp-block-pullquote blockquote {
  border: none;
  background: none;
  font-size: 1.25em;
  font-style: italic;
}

.wp-block-embed {
  margin: 2em 0;
}

.wp-block-embed__wrapper {
  position: relative;
}

.wp-block-embed__wrapper iframe {
  max-width: 100%;
}


/* ==========================================================================
   25. FORMS (General)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ql-text, #1f2937);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
  padding: 10px 14px;
  border: 1px solid var(--ql-border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ql-primary, #1a56db);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

select {
  padding: 10px 14px;
  border: 1px solid var(--ql-border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}


/* ==========================================================================
   26. UTILITY HELPERS
   ========================================================================== */

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

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

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


/* ==========================================================================
   27. RESPONSIVE - 1024px (Tablet Landscape)
   ========================================================================== */

@media (max-width: 1024px) {

  .ql-content-area {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sidebar-left .ql-content-area {
    grid-template-columns: 1fr;
  }

  .sidebar-left .ql-sidebar {
    order: 0;
  }

  .ql-sidebar {
    border-top: 1px solid var(--ql-border, #e5e7eb);
    padding-top: 40px;
  }

  .ql-footer-widgets__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

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

  .blog-card .ql-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .alignwide {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}


/* ==========================================================================
   28. RESPONSIVE - 768px (Tablet Portrait)
   ========================================================================== */

@media (max-width: 768px) {

  /* Mobile navigation */
  .ql-menu-toggle {
    display: flex;
  }

  .ql-main-navigation .ql-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--ql-border, #e5e7eb);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 12px 0;
    z-index: 9999;
  }

  .ql-main-navigation .ql-nav-menu.is-active {
    display: flex;
  }

  .ql-nav-menu li a {
    padding: 10px 24px;
    border-radius: 0;
  }

  .ql-nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: #f9fafb;
  }

  .ql-nav-menu .sub-menu li a {
    padding-left: 40px;
  }

  .ql-nav-menu .sub-menu .sub-menu li a {
    padding-left: 56px;
  }

  .ql-nav-menu li:hover > .sub-menu {
    display: none;
  }

  .ql-nav-menu li.is-toggled > .sub-menu {
    display: flex;
    flex-direction: column;
  }

  /* Hero adjustments */
  .ql-hero {
    padding: 48px 20px;
  }

  .ql-hero__title {
    font-size: 34px;
  }

  .ql-hero__description {
    font-size: 17px;
  }

  /* Post cards stack */
  .ql-post-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }

  .ql-post-card__thumbnail {
    aspect-ratio: 16 / 9;
  }

  .ql-post-card__title {
    font-size: 20px;
  }

  .blog-grid .ql-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-card .ql-posts-grid {
    grid-template-columns: 1fr;
  }

  .ql-post-card--ad {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Single post */
  .ql-article__title {
    font-size: 30px;
  }

  .ql-article__content {
    font-size: 17px;
  }

  /* Post navigation */
  .ql-post-navigation__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ql-post-navigation__next {
    text-align: left;
  }

  /* Related posts */
  .ql-related-posts__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Featured posts */
  .ql-featured-posts__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Footer */
  .ql-footer-main__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .ql-footer-widgets__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ql-footer-bottom__inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Top bar */
  .ql-top-bar__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* 404 page */
  .ql-error-404 {
    padding: 48px 16px;
  }

  .ql-error-404__title {
    font-size: 80px;
  }

  /* Archive */
  .ql-archive__title {
    font-size: 26px;
  }

  /* Author box */
  .ql-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  /* Comments */
  .children {
    padding-left: 20px;
  }

  /* Alignments */
  .alignleft,
  .alignright {
    float: none;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .alignfull {
    margin-left: -20px;
    margin-right: -20px;
    max-width: calc(100% + 40px);
    width: calc(100% + 40px);
  }
}


/* ==========================================================================
   29. RESPONSIVE - 480px (Small Mobile)
   ========================================================================== */

@media (max-width: 480px) {

  .ql-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ql-content-area {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .ql-site-header__inner {
    padding: 12px 16px;
  }

  .ql-site-title {
    font-size: 20px;
  }

  .ql-hero {
    padding: 36px 16px;
  }

  .ql-hero__title {
    font-size: 28px;
  }

  .ql-hero__description {
    font-size: 15px;
  }

  .ql-hero__search form {
    flex-direction: column;
    border-radius: 8px;
  }

  .ql-hero__search input[type="search"],
  .ql-hero__search input[type="text"] {
    border-radius: 8px 8px 0 0;
  }

  .ql-hero__search button,
  .ql-hero__search input[type="submit"] {
    border-radius: 0 0 8px 8px;
  }

  .ql-post-card {
    padding: 20px 0;
  }

  .ql-post-card__title {
    font-size: 18px;
  }

  .ql-post-card__excerpt {
    font-size: 14px;
  }

  .ql-article__title {
    font-size: 26px;
  }

  .ql-article__content {
    font-size: 16px;
  }

  .ql-related-posts__grid {
    grid-template-columns: 1fr;
  }

  .ql-error-404__title {
    font-size: 60px;
  }

  .ql-footer-widgets {
    padding: 40px 0 24px;
  }

  .ql-footer-main__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }

  .ql-footer-main {
    padding: 40px 0 32px;
  }

  .ql-footer-widgets__grid {
    padding: 0 16px;
  }

  .ql-footer-bottom__inner {
    padding: 16px;
  }

  .pagination {
    gap: 4px;
  }

  .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .page-numbers.prev,
  .page-numbers.next {
    padding: 0 12px;
  }

  .ql-top-bar {
    display: none;
  }
}


/* ==========================================================================
   30. PRINT STYLES
   ========================================================================== */

@media print {

  .ql-site-header,
  .ql-site-footer,
  .ql-sidebar,
  .ql-ad-slot,
  .ql-post-card--ad,
  .ql-hero,
  .ql-top-bar,
  .ql-menu-toggle,
  .ql-main-navigation,
  .ql-related-posts,
  .ql-post-navigation,
  .ql-breadcrumbs,
  .ql-footer-widgets,
  .ql-footer-bottom,
  .ql-skip-link,
  .comments-area,
  .pagination,
  .ql-hero__search,
  .ql-error-404__search,
  .ql-featured-posts {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
  }

  .ql-content-area {
    display: block;
  }

  .ql-single-post,
  .ql-single-content {
    max-width: 100%;
  }

  .ql-article__title {
    font-size: 24pt;
  }

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

  .ql-article__content a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
    color: #555;
  }

  .ql-article__content img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h2, h3, h4 {
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }
}


/* ==========================================================================
   31. TRANSITIONS & ANIMATIONS
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
