/*
Theme Name: CDN Toolkit Blog
Theme URI: https://cdntoolkit.com
Author: CDN Toolkit
Author URI: https://cdntoolkit.com
Description: A modern blog theme for the CDN Toolkit website — news, tutorials, and insights from the edge.
Version: 2.9.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cdntoolkit-blog
Tags: blog, one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design Tokens (CSS Variables)
   ========================================================================== */

:root {
  /* Brand palette — CDN Toolkit (see docs/DESIGN-SYSTEM.md) */
  --navy-950: #081b30;
  --navy-900: #0a2340;
  --navy-800: #0c2a4a;
  --navy-700: #123b63;
  --navy-ink: #14263f;
  --navy-divider: #1d4470;
  --green-600: #2e8b4a;
  --green-primary: #3da35d;
  --green-300: #8fd3a6;
  --green-100: #e7f4ec;
  --blue-accent: #2563eb;
  --text-body: #475569;
  --text-muted: #6b7a90;
  --surface-subtle: #f7f9fb;
  --footer-tint: #f9fdfa;
  --border-light: #e4e9f0;

  /* Colors */
  --background: #ffffff;
  --foreground: var(--navy-ink);
  --border: var(--border-light);
  --input: #ffffff;
  --primary: var(--green-primary);
  --primary-foreground: #ffffff;
  --secondary: var(--green-100);
  --secondary-foreground: var(--navy-ink);
  --muted: var(--surface-subtle);
  --muted-foreground: var(--text-muted);
  --success: var(--green-primary);
  --success-foreground: #ffffff;
  --accent: var(--green-100);
  --accent-foreground: var(--navy-ink);
  --destructive: #e31d1d;
  --destructive-foreground: #ffffff;
  --card: #ffffff;
  --card-foreground: var(--navy-ink);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   2. Global Reset & Base
   ========================================================================== */

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

body {
  margin: 0;
  font-family: var(--font-family-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}
@media screen and (max-width:1024px) {
  .container {
    padding: 0 32px !important;
  }
}
@media (max-width: 1300px) {
 .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.section-container {
  padding: 50px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-family-body);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn.primary {
  background: linear-gradient(93.1deg, var(--green-600) 0.97%, var(--green-primary) 98.6%);
  color: var(--primary-foreground);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn.bg-white {
  background: var(--background);
  color: var(--foreground);
}

.btn.outline-inverse {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--primary-foreground) 24%, transparent);
  color: var(--primary-foreground);
}

/* ==========================================================================
   5. Navbar
   ========================================================================== */

.navbar {
  height: 72px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: var(--background);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.navbar-brand img {
  width: 136px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.navbar-brand-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a,
.navbar-links span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}

.navbar-links a:hover,
.navbar-links span:hover {
  color: var(--foreground);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-actions a,
.navbar-actions span {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* WordPress nav menu integration */
.navbar-links .menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links .menu li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.navbar-links .menu li a:hover {
  color: var(--foreground);
}

/* ==========================================================================
   6. Blog Header
   ========================================================================== */

.blog-header {
  padding: 80px 0 40px 0;
  text-align: center;
}

.blog-header h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
}

.blog-header p {
  font-size: 20px;
  color: var(--muted-foreground);
  margin: 0 auto;
  max-width: 600px;
}

/* ==========================================================================
   7. Sticky Category Nav
   ========================================================================== */

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #EDEFF11A;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sticky-nav .container {
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Wraps the pill strip + its drag handle so they share one column. */
.category-scroller {
  flex: 1 1 auto;
  min-width: 0;
  /*
   * Never let this grow past its container. When .sticky-nav-container stacks
   * (mobile) its cross axis is horizontal, and a non-stretch `align-items`
   * shrink-wraps this to the pills' full max-content width — which destroys the
   * strip's internal overflow, so it stops scrolling and the drag handle hides.
   * Capping the width here keeps that independent of any align-items value.
   */
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sticky-nav-container{
align-items: flex-start !important;
}

.category-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  cursor: grab;
  /* Hide the native scrollbar — overflow is hinted with an edge fade instead. */
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar { display: none; }

/* While dragging: grabbing cursor, no smooth-scroll lag, no text selection. */
.category-list.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.category-list.is-dragging a { cursor: grabbing; }

/* Soft fade on whichever edge has more pills to scroll to.
   .scroll-left / .scroll-right are toggled in navigation.js as the list scrolls. */
.category-list.scroll-right {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}

.category-list.scroll-left {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent);
          mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent);
}

.category-list.scroll-left.scroll-right {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}

/* ---- Category strip drag handle -----------------------------------------
   A thin track spanning the strip with a round handle whose position mirrors
   the strip's scroll offset. Shown by navigation.js only when it overflows. */

.category-scrollbar {
  position: relative;
  height: 29px;
  flex: 0 0 auto;
}

/* Author-level rule so the `hidden` attribute still wins over display:flex. */
.category-scrollbar[hidden] {
  display: none;
}

.category-scrollbar-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 5px;
  margin-top: -1px;
  border-radius: var(--radius-full);
  background: #dfe3e7;
}

.category-scrollbar-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: transparent;
  cursor: grab;
  /* Required so pointermove keeps firing instead of the browser panning. */
  touch-action: none;
  will-change: transform;
}

.category-scrollbar-handle img {
  display: block;
  width: 29px;
  height: 29px;
  pointer-events: none;
}

.category-scrollbar-handle:active,
.category-scrollbar-handle.is-dragging {
  cursor: grabbing;
}

.category-scrollbar-handle:focus-visible {
  outline: 2px solid #3da35d;
  outline-offset: 3px;
}

.category-item {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-item:hover {
  color: var(--foreground);
}

.category-item.active,
.category-item.current-cat {
  background: var(--secondary);
  color: var(--secondary-foreground);
  display:flex;
  align-items:center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 0 16px;
  height: 55px;
  border-radius: var(--radius-full);
  color: var(--muted-foreground);
  font-size: 14px;
  min-width: 340px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-family-body);
  color: var(--foreground);
  width: 100%;
  font-weight: 500;
}

.search-box input::placeholder {
  color: var(--muted-foreground);
}

.search-box svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
}

/* ==========================================================================
   8. Hero / Featured Post
   ========================================================================== */

.hero-section {
  padding: 64px 0 32px 0;
}

.hero-card {
  display: flex;
  gap: 64px;
  align-items: center;
}

.hero-image-wrapper {
  flex: 1.2;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  aspect-ratio: 16/9;
}

.hero-content-wrapper {
  flex: 1;
}

.post-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.post-tag a {
  color: inherit;
}

.hero-content-wrapper h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.hero-content-wrapper h2 a {
  color: inherit;
  transition: color 0.2s ease;
}

.hero-content-wrapper h2 a:hover {
  color: var(--primary);
}

.hero-content-wrapper p {
  font-size: 18px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.post-date {
  font-size: 14px;
  color: var(--muted-foreground);
}

/* ==========================================================================
   9. Article Grid
   ========================================================================== */

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

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.article-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

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

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

.article-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-tag {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.article-tag a {
  color: inherit;
}

.article-title {
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.article-title a {
  color: inherit;
  transition: color 0.2s ease;
}

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

.article-desc {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0 0 24px 0;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: auto;
}

.article-meta .author-avatar {
  width: 32px;
  height: 32px;
  display: none;
}

.article-meta .author-info {
  display: block;
}

.article-meta .author-name {
  display: none;
}

.article-meta .post-date {
  font-size: 14px;
  color: var(--muted-foreground);
}

/* ==========================================================================
   10. Pagination
   ========================================================================== */

.pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-btn,
.nav-links .prev,
.nav-links .next {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}

.page-btn.disabled {
  color: var(--muted-foreground);
  cursor: not-allowed;
  pointer-events: none;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-num,
.nav-links .page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-num.active,
.nav-links .page-numbers.current {
  background: var(--primary);
  color: var(--primary-foreground);
}

.page-num:not(.active),
.nav-links .page-numbers:not(.current) {
  color: var(--muted-foreground);
}

.page-ellipsis,
.nav-links .dots {
  color: var(--muted-foreground);
  padding: 0 8px;
}

/* ==========================================================================
   11. Customer Stories
   ========================================================================== */

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header-row .section-title {
  margin-bottom: 0;
}

.view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.view-all:hover {
  opacity: 0.8;
}

.view-all svg {
  width: 16px;
  height: 16px;
}

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

.story-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  transition: box-shadow 0.2s ease;
}

.story-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.story-image {
  aspect-ratio: 16/9;
  width: 100%;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
}

.story-content {
  padding: 32px;
}

.company-logo {
  height: 32px;
  width: auto;
  margin-bottom: 24px;
  opacity: 0.8;
}

.story-content h4 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

.story-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  transition: opacity 0.2s ease;
}

.story-link:hover {
  opacity: 0.8;
}

.story-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   12. CTA Banner
   ========================================================================== */

.cta-banner {
  background: var(--foreground);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-content {
  flex: 1;
  padding: 64px;
  color: var(--primary-foreground);
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
  color: var(--primary-foreground);
}

.cta-content p {
  font-size: 18px;
  color: color-mix(in srgb, var(--primary-foreground) 68%, transparent);
  margin: 0 0 32px 0;
  max-width: 480px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 16px;
}

.cta-image {
  flex: 1;
  min-height: 400px;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   13. Newsletter
   ========================================================================== */

.newsletter-section {
  padding: 0;
  background: transparent;
  margin-bottom: 40px;
}

/* Pale gray → green wash panel (design system §2, feature-panel gradient).
   cdntoolkit.com ships this as a 1528x350 JPG; reproduced as a CSS gradient so
   it stays crisp at any width and costs no extra request. */
.newsletter-card {
  position: relative;
  overflow: hidden;
  padding: 60px 5% 68px;
  border-radius: 20px;
  background: linear-gradient(100deg, #edf1f3 0%, #e7f3ec 100%);
}

/* Hand-drawn dashed arrow pointing at the form (design system §5). */
.newsletter-pointer {
  position: absolute;
  top: 16px;
  right: 0;
  z-index: 0;
  color: var(--navy-ink);
  opacity: 0.45;
  pointer-events: none;
}

.newsletter-pointer svg {
  display: block;
  width: 300px;
  height: 310px;
}

.newsletter-text {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-text h3 {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy-ink);
}

.newsletter-text p {
  margin: 18px auto 0;
  max-width: 800px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--navy-ink);
}

.newsletter-form {
  position: relative;
  z-index: 1;
  margin-top: 46px;
}

/* Overlapping circles anchored bottom-left of the panel (design system §5). */
.newsletter-circles {
  position: absolute;
  left: 0;
  bottom: -26px;
  color: var(--green-primary);
  pointer-events: none;
}

.newsletter-circles svg {
  display: block;
  width: 78px;
  height: 78px;
}

.newsletter-signup-form {
  max-width: 689px;
  margin: 0 auto;
}

.newsletter-fields {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 86px;
  padding-right: 11px;
  border: 1px solid #ffffff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.newsletter-fields:focus-within {
  border-color: var(--green-primary);
}

.newsletter-fields input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 20px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  color: var(--navy-ink);
}

.newsletter-fields input::placeholder {
  color: var(--text-muted);
}

.newsletter-fields input:focus {
  outline: none;
}

.newsletter-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 68px;
  border: 0;
  border-radius: 8px;
  background: var(--green-primary);
  color: var(--primary-foreground);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-submit:hover,
.newsletter-submit:focus-visible {
  background: var(--green-600);
}

.newsletter-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.newsletter-signup-message {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-family-body);
  font-size: 14px;
  line-height: 1.4;
}

.newsletter-signup-message.is-success {
  color: var(--green-600);
}

.newsletter-signup-message.is-error {
  color: #d1242f;
}

/* ---- Newsletter responsive ---- */
@media (max-width: 1200px) {
  /* The arrow needs the wide right gutter to read; drop it and let the
     circles sit in flow above the form instead. */
  .newsletter-pointer {
    display: none;
  }

  .newsletter-circles {
    position: static;
    margin: 0 auto 18px;
  }

  .newsletter-form {
    margin-top: 26px;
  }
}

@media (max-width: 1024px) {
  .newsletter-card {
    padding: 40px 32px 48px;
  }

  .newsletter-text h3 {
    font-size: 34px;
  }

  .newsletter-text p {
    font-size: 18px;
  }

  /* Tablet: two cards per row with a tighter gap */
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .newsletter-text h3 {
    font-size: 28px;
  }

  .newsletter-text p {
    font-size: 16px;
  }

  .newsletter-fields {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  .newsletter-fields input {
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
  }

  .newsletter-submit {
    width: 100%;
    height: 52px;
    font-size: 16px;
  }

  .newsletter-circles svg {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .newsletter-card {
    padding: 32px 20px 40px;
  }

  .newsletter-text h3 {
    font-size: 24px;
  }
}
/* ==========================================================================
   14. Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px 0;
  background: var(--background);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand .logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer-brand p {
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: var(--foreground);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a,
.footer-links span {
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links span:hover {
  color: var(--foreground);
}

/* WordPress footer menu */
.footer-links .menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links .menu li a {
  color: #6b7a90;
  transition: color 0.2s ease;
}

.footer-links .menu li a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted-foreground);
}

.legal-links {
  display: flex;
  gap: 24px;
}

.legal-links a {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--foreground);
}

/* ==========================================================================
   15. Single Post
   ========================================================================== */

.single-post-header {
  padding: 80px 0 40px;
  text-align: center;
}

.single-post-header .post-tag {
  margin-bottom: 16px;
}

.single-post-header h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.15;
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.single-post-featured {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.single-post-featured img {
  width: 100%;
  aspect-ratio: 16/9;
}

.single-post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--foreground);
}

.single-post-content p {
  margin-bottom: 24px;
}

.single-post-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.single-post-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.single-post-content img {
  border-radius: var(--radius-lg);
  margin: 32px 0;
}

.single-post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--muted-foreground);
}

.single-post-content code {
  background: var(--muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.single-post-content pre {
  background: var(--foreground);
  color: var(--primary-foreground);
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 32px 0;
}

.single-post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* ==========================================================================
   16. Archive / Category Header
   ========================================================================== */

.archive-header {
  padding: 80px 0 40px;
  text-align: center;
}

.archive-header h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.archive-header p {
  font-size: 20px;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   17. Screen Reader Text (Accessibility)
   ========================================================================== */

.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--muted);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--foreground);
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   18. Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .newsletter-card{
    padding: 20px!important;
  }
  .hero-card {
    flex-direction: column;
    gap: 32px;
  }

  .hero-image-wrapper {
    flex: none;
    width: 100%;
  }

  .hero-content-wrapper {
    flex: none;
    width: 100%;
  }

  .hero-content-wrapper h2 {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .cta-banner {
    flex-direction: column;
  }

  .cta-content {
    padding: 48px;
  }

  .cta-image {
    min-height: 280px;
    width: 100%;
  }

  .newsletter-card {
    flex-direction: column;
    padding: 48px;
    gap: 32px;
  }

  .newsletter-form {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem !important;
  }

  .blog-header {
    padding: 48px 0 24px;
  }

  .blog-header h1 {
    font-size: 36px;
  }

  .blog-header p {
    font-size: 16px;
  }

  .sticky-nav .container {
    flex-direction: column-reverse; /* search bar on top, category list below */
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }

  /* Stacked layout: fill the row rather than shrink-wrapping to the pills. */
  .category-scroller {
    width: 100%;
  }

  .search-box {
    min-width: 100%;
  }

  .hero-section {
    padding: 32px 0 16px;
  }

  .hero-content-wrapper h2 {
    font-size: 28px;
  }

  .section-container {
    padding: 30px 0;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .navbar-links {
    display: none;
  }

  .single-post-header h1 {
    font-size: 32px;
  }

  .archive-header h1 {
    font-size: 32px;
  }

  .cta-content {
    padding: 32px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .newsletter-card {
    padding: 32px;
  }
}

@media (max-width: 480px) {
  .blog-header h1 {
    font-size: 28px;
  }

  .category-list {
    gap: 4px;
  }

  .category-item {
    padding: 6px 12px;
    font-size: 13px;
  }

  .cta-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   Swup AJAX page transitions
   ========================================================================== */
/* Cross-fade disabled — pages swap instantly so category tabs switch like
   tabs instead of fading the whole region out and back in. */
html.is-changing .swup-transition {
  transition: none;
}

html.is-animating .swup-transition {
  opacity: 1;
}

/* Slim top progress bar shown while a page is loading. */
.swup-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(61, 163, 93, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

html.is-changing .swup-progress {
  opacity: 1;
  width: 90%;
  transition: width 8s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.is-changing .swup-transition,
  html.is-animating .swup-transition {
    transition: none;
    opacity: 1;
  }
}


/* ==========================================================================
   21. Blog Sub-Nav Bar + Reading Progress (Website 2026)
   ========================================================================== */

.blog-subnav {
  position: sticky;
  top: 90px;
  z-index: 99;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0px 10px 30px 0px #00000008;
}

@media (max-width: 1100px) {
  .blog-subnav {
    top: 64px;
  }
}

.blog-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.blog-subnav-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.subnav-crumb {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.subnav-crumb:hover { color: var(--primary); }

.back-to-blogs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.back-to-blogs:hover { color: var(--primary); }

.back-to-blogs .back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}


.blog-subnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.blog-subnav-right .follow-label { white-space: nowrap; }

.blog-subnav-right .follow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.blog-subnav-right .follow-icon:hover { transform: translateY(-1px); opacity: 0.88; }
.blog-subnav-right .follow-icon img { width: 30px; height: 30px; display: block; }

/* Reading progress — thin loader anchored to the bottom edge of the sub-nav */
.reading-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  z-index: 200;
  transition: width 0.1s linear;
}

@media (max-width: 480px) {
  .blog-subnav-right .follow-label { display: none; }
}


/* ==========================================================================
   Command-palette Search (⌘K)
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}

.search-modal[hidden] {
  display: none;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 6, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.search-open {
  overflow: hidden;
}

.search-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  background: #fafafa;
  color: #475569;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.25);
  animation: search-modal-in 0.16s ease-out;
}

@keyframes search-modal-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.search-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.search-modal-icon {
  flex: 0 0 auto;
  color: rgba(71, 85, 105, 0.5);
}

.search-modal-field {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #475569;
  font-family: var(--font-family-body, inherit);
  font-size: 17px;
}

.search-modal-field::placeholder {
  color: rgba(71, 85, 105, 0.4);
}

.search-modal-close {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  background: transparent;
  color: rgba(71, 85, 105, 0.55);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.search-modal-close:hover {
  color: #475569;
  border-color: rgba(0, 0, 0, 0.32);
}

.search-modal-results {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px;
}

.search-modal-state {
  margin: 0;
  padding: 28px 14px;
  text-align: center;
  color: rgba(71, 85, 105, 0.45);
  font-size: 14px;
}

.search-modal-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: rgba(71, 85, 105, 0.7);
  transition: background 0.12s ease, color 0.12s ease;
}

.search-modal-item.is-active {
  background: #e7f4ec;
  color: #475569;
}

.search-modal-item-icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: rgba(71, 85, 105, 0.4);
}

.search-modal-item.is-active .search-modal-item-icon {
  color: var(--primary, #3da35d);
}

.search-modal-item-icon svg {
  width: 18px;
  height: 18px;
}

.search-modal-item-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-modal-item-go {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--primary, #3da35d);
  opacity: 0;
}

.search-modal-item.is-active .search-modal-item-go {
  opacity: 1;
}

.search-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(71, 85, 105, 0.4);
  font-size: 12px;
}

.search-modal-footer kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  margin-right: 2px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
  font-family: inherit;
  font-size: 11px;
}

@media (max-width: 768px) {
  .search-modal { padding: 8vh 12px 12px; }
  .search-modal-footer { display: none; }
}

/* ==========================================================================
   24. CDN Toolkit Header & Footer
   --------------------------------------------------------------------------
   Mirrors cdntoolkit.com: a white sticky bar with the logo left, primary links
   and the green "Run Test" action right; and a single-row hairline footer with
   the contact address left and the copyright / build stamp right.
   ========================================================================== */

.ctk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border-light);
}

.ctk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 90px;
}

/* ---- Brand ---- */
.ctk-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.ctk-logo-link,
.ctk-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.ctk-logo,
.ctk-brand .custom-logo {
  display: block;
  width: auto;
  height: 45px;
  max-height: 45px;
  object-fit: contain;
}

/* ---- Primary navigation ---- */
.ctk-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.ctk-nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
}

.ctk-nav-list > li > a {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy-ink);
  transition: color 0.2s ease;
}

.ctk-nav-list > li > a:hover,
.ctk-nav-list > li > a:focus-visible {
  color: var(--green-600);
}

/* ---- Actions ---- */
.ctk-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: var(--green-primary);
  color: var(--primary-foreground);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.ctk-cta:hover,
.ctk-cta:focus-visible {
  background: var(--green-600);
}

/* ---- Hamburger (mobile only) ---- */
.ctk-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.ctk-menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.ctk-menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ctk-menu-toggle-bars span:nth-child(1) { top: 0; }
.ctk-menu-toggle-bars span:nth-child(2) { top: 7px; }
.ctk-menu-toggle-bars span:nth-child(3) { top: 14px; }

.ctk-menu-toggle.is-active .ctk-menu-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ctk-menu-toggle.is-active .ctk-menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.ctk-menu-toggle.is-active .ctk-menu-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile drawer (off-canvas) ------------------------------------------
   `hidden` is toggled by navigation.js in lockstep with `.is-open`. The UA's
   `display: none` for [hidden] is overridden so the panel stays rendered and
   can actually animate; `visibility` does the hiding, with its own change
   delayed until the slide-out finishes. */
.ctk-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  transition: visibility 0s linear 0.26s;
}

.ctk-drawer[hidden] {
  display: block;
}

.ctk-drawer.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.ctk-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 64, 0.5);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.ctk-drawer.is-open .ctk-drawer-backdrop {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

.ctk-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(340px, 86vw);
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--background);
  box-shadow: -8px 0 32px rgba(20, 38, 63, 0.14);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.ctk-drawer.is-open .ctk-drawer-panel {
  transform: translateX(0);
}

.ctk-drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 0;
  background: var(--background);
  border-bottom: 1px solid var(--border-light);
}

.ctk-drawer-logo {
  width: auto;
  height: 32px;
  max-height: 32px;
  object-fit: contain;
}

.ctk-drawer-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--navy-ink);
  cursor: pointer;
}

.ctk-drawer-close svg {
  width: 22px;
  height: 22px;
}

.ctk-drawer-close:hover,
.ctk-drawer-close:focus-visible {
  background: var(--surface-subtle);
}

.ctk-drawer-nav {
  flex: 1 1 auto;
  padding: 8px 0;
}

.ctk-drawer-list {
  display: flex;
  flex-direction: column;
}

.ctk-drawer-list > li > a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy-ink);
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s ease;
}

.ctk-drawer-list > li:last-child > a {
  border-bottom: 0;
}

.ctk-drawer-list > li > a:hover,
.ctk-drawer-list > li > a:focus-visible {
  color: var(--green-600);
}

.ctk-drawer-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.ctk-drawer-cta {
  width: 100%;
  min-height: 52px;
}

.ctk-drawer-email {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--green-600);
}

.ctk-drawer-email:hover,
.ctk-drawer-email:focus-visible {
  text-decoration: underline;
}

/* The drawer is a small-screen affordance only. */
@media (min-width: 901px) {
  .ctk-drawer,
  .ctk-drawer[hidden] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ctk-drawer,
  .ctk-drawer-backdrop,
  .ctk-drawer-panel {
    transition: none;
  }
}


/* ---- Footer ---- */
.ctk-footer {
  /* Pale green wash, derived from the live cdntoolkit.com footer. */
  background: var(--footer-tint);
  border-top: 0;
  padding: 0;
}

.ctk-footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-light);
}

.ctk-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 30px 0;
  font-size: 16px;
  line-height: 1.5;
}

.ctk-footer-contact,
.ctk-footer-legal {
  margin: 0;
}

.ctk-footer-contact-label {
  color: var(--text-muted);
}

.ctk-footer-email {
  margin-left: 4px;
  color: var(--green-600);
  font-weight: 500;
  transition: color 0.2s ease;
}

.ctk-footer-email:hover,
.ctk-footer-email:focus-visible {
  color: var(--green-primary);
  text-decoration: underline;
}

.ctk-footer-legal {
  text-align: right;
}

.ctk-footer-copyright {
  color: var(--navy-ink);
  font-weight: 700;
}

.ctk-footer-rights {
  margin-left: 4px;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .ctk-nav-list {
    gap: 24px;
  }

  .ctk-cta {
    padding: 12px 20px;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .ctk-header-inner {
    min-height: 72px;
  }

  .ctk-nav {
    display: none;
  }

  .ctk-menu-toggle {
    display: inline-flex;
  }

  .ctk-logo,
  .ctk-brand .custom-logo {
    height: 36px;
    max-height: 36px;
  }
}

@media (max-width: 768px) {
  .ctk-header-actions .ctk-cta {
    display: none;
  }

  .ctk-footer-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
    font-size: 15px;
  }

  .ctk-footer-legal {
    text-align: left;
  }
}
