/*
Theme Name: 5centsCDN Blog
Theme URI: https://www.5centscdn.net/blog
Author: 5centsCDN
Author URI: https://www.5centscdn.net
Description: A modern blog theme for the 5centsCDN website — news, tutorials, and insights from the edge.
Version: 1.0.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: fivecentscdn-blog
Tags: blog, one-column, custom-menu, featured-images, translation-ready
*/

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

:root {
  /* Colors */
  --background: #ffffff;
  --foreground: #1c1c1c;
  --border: #e5e7eb;
  --input: #ffffff;
  --primary: #59a52c;
  --primary-foreground: #ffffff;
  --secondary: #cae2bc;
  --secondary-foreground: #1c1c1c;
  --muted: #f2f3f5;
  --muted-foreground: #cacdd4;
  --success: #59a52c;
  --success-foreground: #ffffff;
  --accent: #cae2bc;
  --accent-foreground: #1c1c1c;
  --destructive: #e31d1d;
  --destructive-foreground: #ffffff;
  --card: #ffffff;
  --card-foreground: #1c1c1c;

  /* 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, #316526 0.97%, #4fa83d 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: color-mix(in srgb, var(--background) 92%, var(--secondary) 8%); */
  /* backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border); */
}

.sticky-nav .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.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: 60px;
  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;
}

.newsletter-card {
  position: relative;
  background-color: #f4f5f7;
  border: 1px solid #E1E1E1;
  border-radius: 20px;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.03);
}
@media (max-width: 1024px) {
  .newsletter-card{
    padding: 32px!important;
  }
}
/* Background image layer: 40% opacity, multiply-blended with the card colour. */
.newsletter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/images/newsletter-bg.jpg') center / cover no-repeat;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.newsletter-card > * {
  position: relative;
  z-index: 1;
}

.newsletter-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.newsletter-text h3 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: #1c1c1c;
}

.newsletter-text p {
  font-size: 16px;
  color: var(--muted-foreground);
  margin: 12px 0 0;
}

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

.newsletter-fields {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.newsletter-fields input {
  flex: 1 1 auto;
  min-width: 0;
  height: 64px;
  padding: 0 24px;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.03);
  outline: none;
  font-size: 16px;
  font-family: var(--font-family-body);
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-fields input::placeholder {
  color: #8a8f98;
}

.newsletter-fields input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(89, 165, 44, 0.15);
}

.newsletter-submit {
  flex: 0 0 auto;
  height: 64px;
  padding: 0 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(93.1deg, #316526 0.97%, #4fa83d 98.6%);
  color: #ffffff;
  font-family: var(--font-family-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.newsletter-submit:hover {
  filter: brightness(1.06);
}

.newsletter-submit:active {
  transform: translateY(1px);
}

.newsletter-submit:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.newsletter-submit:disabled {
  filter: grayscale(0.3) brightness(0.95);
  cursor: not-allowed;
}

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

.newsletter-signup-message.is-success {
  color: #1a7f37;
}

.newsletter-signup-message.is-error {
  color: #d1242f;
}
/* ==========================================================================
   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: #cacdd4;
  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: 32px!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;
  }

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

  .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;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .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;
  }
}

/* ==========================================================================
   19. Imported Header/Footer Theme Layer
   ========================================================================== */

.imported-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0D0E10;
  color: #f5f7f8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  mask-image: linear-gradient(180deg,rgba(0,0,0,1) 49.6%,rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(180deg,rgba(0,0,0,1) 49.6%,rgba(0,0,0,0));
  background: linear-gradient(180deg,rgba(13,14,16,.85),rgba(13,14,16,0));
}

.imported-header-inner {
  position: relative;
  z-index: 1;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.imported-header-left,
.imported-header-actions {
  display: flex;
  align-items: center;
  gap:2.5rem;
}

.imported-header-left {
  gap: 36px;
}

/* Header actions: gap-0 by default, xl:gap-2.5 (10px) at ≥1280px. */
.imported-header-actions {
  gap: 0;
}

@media (min-width: 80rem) {
  .imported-header-actions {
    gap: 0.625rem;
  }
}

.imported-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  width: 120px;
}

.imported-brand > a,
.imported-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.imported-brand .custom-logo-link,
.imported-brand .custom-logo {
  display: block;
}

.imported-brand img,
.footer-brand img,
.footer-brand .custom-logo {
  width: auto;
  max-height: 44px;
  object-fit: contain;
}

.desktop-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav-item {
  position: relative;
}

.desktop-nav-trigger,
.desktop-nav-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav-trigger:hover,
.desktop-nav-item > a:hover,
.desktop-nav-item:hover > .desktop-nav-trigger {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mega-menu-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  width: max-content;
  min-width: 670px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0d0e10;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.has-mega-menu:hover .mega-menu-panel,
.has-mega-menu:focus-within .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0;
}

.mega-menu-column {
  padding: 18px 24px;
}

.mega-menu-column.plain {
  min-width: 250px;
  padding: 0;
}

.mega-menu-column.has-divider {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.mega-menu-column h3 {
  margin-bottom: 8px;
  padding: 10px 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
}

.mega-menu-links,
.mobile-nav-links,
.legal-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-menu-links a,
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  padding: 12px 15px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 1rem; /* 16px — matches the website's list-link size (text-l @ lg) */
  line-height: 1.45;
  transition: background 0.2s ease, color 0.2s ease;
}

.mega-menu-links a:hover,
.mobile-nav-links a:hover {
  background: #252a24;
  color: var(--background);
}

.mega-menu-products .mega-menu-links a::before,
.simple-two-col .mega-menu-links a::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url('assets/images/header-icons/dot.svg') center / contain no-repeat;
  flex: 0 0 auto;
}

.mega-menu-products .mega-menu-links a:hover::before,
.simple-two-col .mega-menu-links a:hover::before {
  background-image: url('assets/images/header-icons/dot-hover.svg');
  background-size: 12px;
}

.mega-menu-links {
  gap: 0;
}

.mega-menu-links.bullets li {
  position: relative;
  padding-left: 0;
}

.mega-menu-links.bullets li::before {
  content: none;
}

.mega-menu-products {
  display: grid;
  grid-template-columns: 305px 1px minmax(0, 1fr);
  column-gap: 32px;
  align-items: stretch;
  min-height: 385px;
  padding: 20px;
  border-radius: 10px;
  background: #1a1b1d;
  overflow: hidden;
}

.mega-menu-sidebar {
  padding: 0;
}

.mega-menu-eyebrow {
  margin: 0;
  padding: 0 15px 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
}

.mega-feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-menu-sidebar .mega-feature-item {
  width: 100%;
  min-height: 58px;
  padding: 15px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.48);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.mega-menu-sidebar .mega-feature-item.is-active {
  background: #252a24;
  color: #ffffff;
}

.mega-menu-sidebar .mega-feature-item:hover {
  background: #252a24;
  color: #ffffff;
}

.mega-feature-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mega-feature-icon,
.mega-feature-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.mega-feature-icon img,
.mega-feature-arrow img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Grey icon by default; coloured swapped in on hover / active. */
.mega-feature-item .icon-active {
  display: none;
}

.mega-feature-item.is-active .icon-default,
.mega-feature-item:hover .icon-default {
  display: none;
}

.mega-feature-item.is-active .icon-active,
.mega-feature-item:hover .icon-active {
  display: block;
}

.mega-feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #4fa83d;
  color: #091109;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.mega-menu-divider {
  width: 1px;
  align-self: stretch;
  background: #393e46;
  margin: 0;
}

.mega-menu-main {
  min-width: 560px;
  padding: 0;
}

.mega-product-panel {
  display: none !important;
}

.mega-product-panel[hidden] {
  display: none !important;
}

.mega-product-panel.is-active {
  display: block !important;
}

.products-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.mega-product-panel[data-product-panel="cloud-storage"] .products-grid,
.mega-product-panel[data-product-panel="calculators"] .products-grid {
  grid-template-columns: minmax(260px, 1fr);
}

.mega-menu-products .mega-menu-links li {
  padding-left: 0;
}

.mega-menu-products .mega-menu-links li::before {
  content: none;
}

.mega-menu-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 15px;
}

.mega-menu-promo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4fa83d;
  font-size: 17px;
  font-weight: 600;
}

.mega-menu-promo-arrow {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.mega-menu-panel-products {
  min-width: 940px;
}

.mega-menu-panel-solutions {
  min-width: 670px;
}

.mega-menu-panel-resources {
  min-width: 260px;
  padding: 8px;
}

.simple-two-col {
  border-radius: 14px;
  background: #1c1e20;
  overflow: hidden;
}

.resources-menu-card {
  width: 246px;
  border-radius: 8px;
  background: #1c1e20;
  overflow: hidden;
}

.resources-menu-card .mega-menu-column {
  padding: 18px 20px;
}

.resources-menu-card .mega-menu-column h3 {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.resources-menu-card .mega-menu-links a {
  min-width: 0;
  gap: 12px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 1rem;
}

/* Real resource icons replace the old square bullet. */
.resources-menu-card .mega-menu-links a::before {
  content: none;
}

.resources-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.resources-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.resources-links a .icon-active {
  display: none;
}

.resources-links a:hover .icon-default {
  display: none;
}

.resources-links a:hover .icon-active {
  display: block;
}

.header-expert-link {
  color: #4fa83d;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.header-expert-link:hover {
  color: #7bd75d;
}

.imported-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 61px;
  width: 121px;
  min-width: max-content;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid var(--color-brand, #4fa83d);
  background: linear-gradient(91.37deg, #0d0e10 0.69%, #0d0e10 49.97%, #4fa83d 99.25%);
  color: var(--color-primary, #fdfffd);
  font-weight: 600;
  overflow: hidden;
}

.header-login-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;margin-left: 1rem;
}

.header-login-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 61px;
  height: 61px;
  border-radius: 999px;
  border: 1px solid var(--color-brand, #4fa83d);
  overflow: hidden;
  
}

.header-login-glyph {
  position: relative;
  width: 30px;
  height: 30px;
}

.header-login-glyph img {
  position: absolute;
  inset: 0;
  width: 30px;
  height: 30px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.login-door {
  transform: translateX(0);
  opacity: 1;
}

.login-arrow {
  transform: translateX(-26px);
  opacity: 0;
}

.header-login-icon:hover .login-door,
.header-login-icon:focus-visible .login-door {
  transform: translateX(26px);
  opacity: 0;
}

.header-login-icon:hover .login-arrow,
.header-login-icon:focus-visible .login-arrow {
  transform: translateX(0);
  opacity: 1;
}

.header-login-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translate(-50%, -6px);
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(57, 62, 70, 0.6);
  background: linear-gradient(180deg, #1f241d 0%, #0d0e10 55%, #0d0e10 100%);
  color: var(--color-primary, #fdfffd);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.header-login-icon:hover .header-login-tooltip,
.header-login-icon:focus-visible .header-login-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- Stacked brand wordmark (5CENTS / CDN) ---------------------------- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary);
  color: #0b0d0c;
  font-size: 23px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  flex: 0 0 auto;
}

.brand-word {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.brand-word-top {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.brand-word-bottom {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

/* ---- Hamburger toggle (plain bars that morph to an X) ----------------- */
.navbar-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar-menu-toggle-bars {
  position: relative;
  display: block;
  width: 26px;
  height: 18px;
}

.navbar-menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 99px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.navbar-menu-toggle-bars span:nth-child(1) {
  top: 0;
}

.navbar-menu-toggle-bars span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.navbar-menu-toggle-bars span:nth-child(3) {
  top: auto;
  bottom: 0;
}

.navbar-menu-toggle.is-active .navbar-menu-toggle-bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.navbar-menu-toggle.is-active .navbar-menu-toggle-bars span:nth-child(3) {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

/* ---- Tablet centered "Products" pill --------------------------------- */
.tablet-nav-pill {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #23262b;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   Responsive Nav Drawer (mobile accordion + tablet master/detail)
   ========================================================================== */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  background: #0a0b0d;
  top:64px;
}

.nav-drawer.is-open {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

.nav-drawer-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 88px;
  padding-bottom: 32px;
}

.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: calc(100vh - 120px);
}

.nav-drawer-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-drawer-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #1a1b1d;
  color: #ffffff;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

a.nav-drawer-pill {
  text-decoration: none;
}

.nav-drawer-pill:hover {
  background: #1a1b1d;
}

.nav-drawer-chevron {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease;
}

.nav-drawer-chevron svg {
  width: 100%;
  height: 100%;
}

.nav-drawer-group.is-open > .nav-drawer-pill .nav-drawer-chevron {
  transform: rotate(180deg);
}

.nav-drawer-content {
  padding: 6px 6px 10px;
}

.nav-drawer-content[hidden] {
  display: none;
}

.nav-drawer-cards {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

.nav-drawer-cards a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-drawer-cards a:hover {
  background: #1c1f24;
  color: #ffffff;
}

.nav-drawer-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.55);
}

.nav-drawer-cards a:hover .nav-drawer-icon {
  color: var(--primary);
}

.nav-drawer-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #0b140b;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-drawer-section {
  padding: 8px 14px 4px;
}

.nav-drawer-section + .nav-drawer-section {
  margin-top: 6px;
}

.nav-drawer-section-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.nav-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-drawer-links a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  flex: 0 0 auto;
}

.nav-drawer-links a:hover {
  color: var(--primary);
}

.nav-drawer-links a:hover::before {
  background: var(--primary);
}

.nav-drawer-promo {
  margin-top: 6px;
  padding: 0 0 2px;
}

.nav-drawer-promo-eyebrow {
  display: block;
  margin-bottom: 10px;
  padding-left: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

.nav-drawer-promo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 12px;
  background: #1a1b1d;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.nav-drawer-promo-link:hover {
  background: #1d2025;
}

.nav-drawer-promo-arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.nav-drawer-promo-arrow svg {
  width: 100%;
  height: 100%;
}

.nav-drawer-cta {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 8px;
}

.nav-drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.nav-drawer-btn.is-ghost-green {
  color: var(--primary);
}

.nav-drawer-btn.is-ghost {
  color: #ffffff;
}

.nav-drawer-btn.is-primary {
  color: #ffffff;
  border-color: #41b52c;
  background: linear-gradient(90deg, #0f1012 0%, #193919 45%, #61bd43 100%);
  font-weight: 700;
}

/* ==========================================================================
   Swup AJAX page transitions
   ========================================================================== */
/* Cross-fade the swapped content region. */
html.is-changing .swup-transition {
  transition: opacity 0.22s ease;
}

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

/* 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(89, 165, 44, 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;
  }
}

.imported-footer {
  padding: 0 0 28px;
  background: #0d0e10;
  color: #f5f7f8;
  border-top: 0;
}

.imported-footer-top {
  padding-top: 0;
}

.imported-footer-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 52px;
  background: rgba(255, 255, 255, 0.14);
}

.imported-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px;
}

.imported-footer-column h2 {
  margin-bottom: 22px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.imported-footer .footer-links .menu,
.imported-footer .footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.imported-footer .footer-links a {
  color: rgba(245, 247, 248, 0.9);
  /* font-size: 16px; */
  line-height: 1.5;
  transition: color 0.2s ease;
}

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

.imported-footer .footer-links li.has-link-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(245, 247, 248, 0.48);
  font-size: 16px;
}

.imported-footer .footer-links li.has-link-badge a {
  color: rgba(245, 247, 248, 0.48);
}

.footer-link-badge {
  padding: 5px 14px;
  border: 1px solid rgba(65, 181, 44, 0.7);
  border-radius: 999px;
  color: rgba(245, 247, 248, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.footer-extra-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 0px;
}

.footer-extra-links a {
  color: #41b52c;
}

.imported-footer-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.footer-newsletter-card,
.footer-contact-card {
  min-height: 192px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background:
    radial-gradient(circle at top left, rgba(89, 165, 44, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.footer-newsletter-card h2,
.footer-contact-card h2 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-contact-card h2 span,
.footer-newsletter-card p,
.footer-contact-card p {
  color: rgba(245, 247, 248, 0.55);
}

.footer-newsletter-card p,
.footer-contact-card p {
  font-size: 15px;
}

.footer-newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 18px;
  /* padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18); */
  border-radius: 999px;
  /* background: rgba(0, 0, 0, 0.24); */
}

.footer-newsletter-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
}

.footer-newsletter-form input::placeholder {
  color: rgba(245, 247, 248, 0.48);
}

.footer-newsletter-form button,
.footer-action-button {
  min-height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer-newsletter-form button,
.footer-action-button.secondary {
  background: linear-gradient(90deg, #0d0e10 0%, #2a2f37 55%, #8c939e 100%);
}

.footer-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.footer-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-action-button.primary {
  border-color: #41b52c;
  background: linear-gradient(90deg, #0f1012 0%, #193919 55%, #61bd43 100%);
}

.imported-footer-bottom {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.imported-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(245, 247, 248, 0.92);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.imported-legal-links .legal-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}

.imported-legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-ai-link,
.legal-menu li {
  padding-right: 18px;
  margin-right: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.legal-menu li:last-child {
  border-right: 0;
  padding-right: 0;
}

.legal-menu a {
  color: rgba(245, 247, 248, 0.9);
  font-size: 16px;
}

.footer-ai-link {
  color: rgba(245, 247, 248, 0.95);
  font-size: 16px;
}

/* Keep the off-canvas drawer desktop-proof. */
@media (min-width: 1101px) {
  .nav-drawer {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

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

  .imported-header-inner {
    min-height: 72px;
  }

  /* Header CTAs move into the drawer on tablet/mobile. */
  .header-expert-link,
  .header-login-icon,
  .imported-header-cta {
    display: none;
  }

  .imported-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .imported-footer-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Tablet: centered pill + two-column master/detail drawer --------- */
@media (min-width: 600px) and (max-width: 1100px) {
  .tablet-nav-pill {
    display: inline-flex;
    align-items: center;
  }

  body.nav-open .tablet-nav-pill {
    display: none;
  }

  .nav-drawer-groups {
    position: relative;
    min-height: 440px;
  }

  .nav-drawer-group.has-children,
  .nav-drawer-group.is-link,
  .nav-drawer-promo {
    width: 300px;
  }

  .nav-drawer-group.is-open > .nav-drawer-pill {
    background: linear-gradient(90deg, rgba(89, 165, 44, 0.30), rgba(89, 165, 44, 0.04));
  }

  .nav-drawer-content {
    position: absolute;
    top: 0;
    left: 348px;
    right: 0;
    bottom: 0;
    padding: 4px 0 4px 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
  }

  .nav-drawer-cards a {
    padding-left: 0;
    padding-right: 0;
  }

  .nav-drawer-cards a:hover {
    background: transparent;
    color: var(--primary);
  }

  .nav-drawer-cta {
    grid-template-columns: 1fr 1fr;
  }

  .nav-drawer-btn.is-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .imported-header-inner {
    min-height: 74px;
  }

  .imported-header-left {
    gap: 16px;
  }

  .imported-header-actions {
    gap: 12px;
  }

  .imported-header-cta {
    display: none;
  }

  .imported-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-contact-actions,
  .footer-newsletter-form {
    grid-template-columns: 1fr;
  }

  .imported-legal-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .imported-brand {
    max-width: calc(100vw - 120px);
  }

  .imported-footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-newsletter-card,
  .footer-contact-card {
    padding: 22px;
  }
}

/* ==========================================================================
   20. Website 2026 / Figma Footer
   ========================================================================== */

.figma-footer {
  --footer-bg: #0d0e10;
  --footer-bg-top: #1f241d;
  --footer-primary: #fdfffd;
  --footer-secondary: #cacdd4;
  --footer-subtle: #7d7d7d;
  --footer-brand: #4fa83d;
  --footer-divider: #393e46;
  --footer-font-body: "Noto Sans", var(--font-family-body);
  --footer-font-heading: "Montserrat", var(--font-family-body);
  padding: 0 0 20px;
  background: var(--footer-bg);
  color: var(--footer-secondary);
  border-top: 0;
  font-family: var(--footer-font-body);
}

.figma-footer-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 20px;
}

.figma-footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 40px auto 0;
   padding: 0px;
}

.figma-footer-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, #393e46 25%, #fdfffd 50%, #393e46 75%);
  clip-path: polygon(0% 50%, 15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%);
}

.figma-footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 50px 0 30px;
}

.figma-footer-column {
  width: 100%;
  max-width: 166px;
}

.figma-footer-column h2 {
  margin: 0 0 15px;
  padding: 5px;
  color: var(--footer-primary);
  font-family: var(--footer-font-heading);
  /* font-size: 14px; */
  font-weight: 600;
  line-height: 20px;
}

.figma-footer .footer-links .menu,
.figma-footer .footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.figma-footer .footer-links li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.figma-footer .footer-links a,
.figma-footer .footer-links span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 5px;
  color: var(--footer-subtle);
  /* font-size: 13px; */
  line-height: 1.5;
  transition: color 0.3s ease;
}

.figma-footer .footer-links a:hover,
.figma-footer .footer-links a:focus-visible {
  color: var(--footer-brand);
}

/* Clamp long footer link labels to two lines, then ellipsis-truncate. */
.figma-footer .footer-links li a,
.figma-footer .footer-links li span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.figma-footer .footer-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: max-content;
  padding: 6px 14px;
  border: 1px solid var(--footer-brand);
  border-radius: 999px;
  background: linear-gradient(91.37deg, #0d0e10 0.69%, #0d0e10 49.97%, #4fa83d 99.25%);
  color: var(--footer-primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.figma-footer .footer-extra-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.figma-footer .footer-extra-links a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 5px;
  color: #59a52c;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.figma-footer .footer-extra-links img {
  width: 35px;
  height: 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.figma-footer .footer-extra-links a:hover img,
.figma-footer .footer-extra-links a:focus-visible img {
  transform: translateX(8px);
}

.figma-footer-ai {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-bottom: 24px;
}

.figma-footer-ai > a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 15px;
  color: var(--footer-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.figma-footer-ai ul {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 15px;
}

.figma-footer-ai img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.figma-footer-ai a,
.footer-social-links a {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.figma-footer-ai a:hover,
.figma-footer-ai a:focus-visible,
.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  opacity: 0.86;
  transform: translateY(-1px);
}

.figma-footer-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.figma-footer-card {
  position: relative;
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1f241d 0%, #0d0e10 55%, #0d0e10 100%);
}

.figma-footer-card::before {
 content: "";
    padding: var(--border-width,1px);
    background: var(--border-gradient,conic-gradient(from 180deg at 50% 50%,#393e4680 0deg,#393e4680 .37turn,#fdfffd80 180deg,#393e4680 .63turn,#393e4680 1turn));
    border-radius: inherit;
    --m: conic-gradient(#000 0 0);
    -webkit-mask: var(--m)content-box exclude,var(--m);
    mask: var(--m)content-box exclude,var(--m);
    pointer-events: none;
    z-index: 0;
    opacity: var(--opacity,100%);
    position: absolute;
    inset: 0;
}

.figma-footer-card h2,
.figma-footer-card p {
  position: relative;
  z-index: 1;
}

.figma-footer-card h2 {
  margin: 0;
  color: var(--footer-primary);
  font-family: var(--footer-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.figma-footer-card h2 span,
.figma-footer-card p {
  color: var(--footer-subtle);
}

.figma-footer-card p {
  margin: 4px 0 15px;
  font-size: 12px;
  line-height: 1.5;
}

.footer-newsletter-form {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Mobile (base): input and button are separate, full-width stacked pills. */
.footer-newsletter-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.footer-newsletter-input input {
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border: 1px solid var(--footer-divider);
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(180deg, #1f241d 0%, #0d0e10 55%, #0d0e10 100%);
  color: var(--footer-secondary);
  font: inherit;
  text-align: left;
}

.footer-newsletter-input input::placeholder {
  color: var(--footer-subtle);
}

.footer-newsletter-input button,
.footer-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  width: 100%;
  gap: 8px;
  padding: 11px 32px;
  border-radius: 999px;
  color: var(--footer-primary);
  font-family: var(--footer-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-newsletter-input button {
  border: 2px solid var(--footer-divider);
  background: linear-gradient(229.37deg, #949ba8 -8.06%, #0d0e10 56.86%, #0d0e10 73.09%);
}

.footer-newsletter-input button:hover,
.footer-newsletter-input button:focus-visible,
.footer-action-button:hover,
.footer-action-button:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}
.footer-newsletter-input button:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

.footer-newsletter-message {
 position: absolute!important;
  bottom: -35px;
  z-index: 1;
  margin: 12px 0 0;
  font-family: var(--footer-font-body);
  font-size: 13px;
  line-height: 1.4;
}

.footer-newsletter-message.is-success {
  color: #5fd37a;
}

.footer-newsletter-message.is-error {
  color: #ff6b6b;
}
.footer-contact-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 22px;
}

.footer-action-button.secondary {
  border: 2px solid var(--footer-divider);
  background: linear-gradient(93.44deg, #0d0e10 1.07%, #0d0e10 52.36%, #949ba8 98.63%);
}

.footer-action-button.primary {
  border: 2px solid var(--footer-brand);
  background: linear-gradient(91.37deg, #0d0e10 0.69%, #0d0e10 49.97%, #4fa83d 99.25%);
}

.footer-action-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.figma-footer-bottom-divider {
  width: 100%;
  height: 1px;
  margin: 30px 0;
  background: var(--footer-divider);
}

.figma-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0;
  border: 0;
  color: var(--footer-secondary);
}

.figma-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.figma-footer-meta > span {
  color: var(--footer-secondary);
  font-size: 14px;
  font-weight: 500;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-links img {
  width: 36px;
  height: 36px;
}

.figma-legal-links {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--footer-secondary);
  font-size: 13px;
  line-height: 20px;
}

.figma-legal-links .footer-ai-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 15px;
  border-right: 1px solid var(--footer-divider);
  color: var(--footer-secondary);
}

.figma-legal-links .footer-ai-link img {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

.figma-legal-links .legal-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}

.figma-legal-links .legal-menu li {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.figma-legal-links .legal-menu li:nth-child(2) {
  padding: 0 15px;
  border-right: 1px solid var(--footer-divider);
  border-left: 1px solid var(--footer-divider);
}

.figma-legal-links .legal-menu li:first-child {
  padding-right: 0;
}

.figma-legal-links .legal-menu li:last-child {
  padding-left: 15px;
}

.figma-legal-links a,
.figma-legal-links .legal-menu a,
.figma-legal-links .legal-menu span {
  color: var(--footer-secondary);
  font-size: 13px;
  line-height: 20px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.figma-legal-links a:hover,
.figma-legal-links a:focus-visible {
  color: var(--footer-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 48rem) {
  .figma-footer-shell {
    padding-right: 0;
    padding-left: 0;
  }

  .figma-footer-inner {
    margin-top: 60px;
  }

  .figma-footer-column {
    max-width: fit-content;
    min-width: 221px;
  }

  .figma-footer-column:nth-child(2) {
    min-width: 230px;
  }

  .figma-footer-column:nth-child(4),
  .figma-footer-column:nth-child(5) {
    min-width: 342px;
  }

  .figma-footer-column h2 {
    /* font-size: 15px; */
  }

  .figma-footer .footer-links a,
  .figma-footer .footer-links span,
  .figma-footer .footer-extra-links a {
    /* font-size: 14px; */
  }

  .figma-footer-card {
    padding: 25px;
  }

  .figma-footer-card h2,
  .figma-footer-meta > span {
    font-size: 15px;
  }

  .figma-footer-card p {
    font-size: 13px;
    line-height: 1.5385;
  }

  .footer-newsletter-input {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    height: 66px;
    padding: 10px 10px 10px 25px;
    border: 1px solid var(--footer-divider);
    border-radius: 999px;
    background: linear-gradient(180deg, #1f241d 0%, #0d0e10 55%, #0d0e10 100%);
  }

  .footer-newsletter-input input {
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
  }

  .footer-newsletter-input button {
    max-height: 46px;
    min-height: 46px;
    width: 140px;
    flex: 0 0 140px;
  }

  .footer-contact-actions {
    flex-direction: row;
  }

  .figma-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .figma-legal-links,
  .figma-legal-links a,
  .figma-legal-links .legal-menu a,
  .figma-legal-links .legal-menu span {
    font-size: 14px;
    line-height: 22px;
  }
}

@media (min-width: 64rem) {
  .figma-footer-inner {
    margin-top: 80px;
  }

  .figma-footer .footer-links a,
  .figma-footer .footer-links span,
  .figma-footer .footer-extra-links a,
  .figma-footer-card h2,
  .figma-footer-meta > span,
  .figma-legal-links,
  .figma-legal-links a,
  .figma-legal-links .legal-menu a,
  .figma-legal-links .legal-menu span {
    /* font-size: 16px; */
  }

  .figma-footer-cards {
    flex-direction: row;
  }

  .figma-footer-card {
    max-width: 50%;
    padding: 30px;
  }

  .figma-footer-card p {
    font-size: 14px;
    line-height: 1.4286;
  }

  .footer-newsletter-input button,
  .footer-action-button {
    font-size: 16px;
  }
}

@media (min-width: 80rem) {
  .figma-footer-shell {
    padding-right: 0;
    padding-left: 0;
  }

  .figma-footer-inner {
    margin-top: 100px;
  }

  .figma-footer-column h2,
  .figma-footer-ai > a,
  .figma-footer-card h2,
  .figma-footer-meta > span,
  .footer-newsletter-input button,
  .footer-action-button {
    font-size: 18px;
  }
}

/* lg:w-fit lg:min-w-max — columns size to content at ≥1024px. */
@media (min-width: 64rem) {
  .figma-footer-column,
  .figma-footer-column:nth-child(2),
  .figma-footer-column:nth-child(4),
  .figma-footer-column:nth-child(5) {
    width: fit-content;
    min-width: max-content;
    max-width: fit-content;
  }
}

@media (max-width: 767px) {
  .figma-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .figma-footer-column,
  .figma-footer-column:nth-child(2),
  .figma-footer-column:nth-child(4),
  .figma-footer-column:nth-child(5) {
    max-width: none;
  }

  .figma-footer-ai,
  .figma-legal-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .figma-footer-grid {
    grid-template-columns: 1fr;
  }

  .figma-footer-ai {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .figma-legal-links {
    flex-direction: column;
  }

  .figma-legal-links .footer-ai-link,
  .figma-legal-links .legal-menu li:nth-child(2),
  .figma-legal-links .legal-menu li:first-child,
  .figma-legal-links .legal-menu li:last-child {
    padding: 0;
    border: 0;
  }

  .figma-legal-links .legal-menu {
    justify-content: center;
    gap: 15px;
  }
}

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

.blog-subnav {
  position: sticky;
  top: 125px;
  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; }
}

/* ==========================================================================
   22. Newsletter — body + media layout (Figma "Join our Newsletter")
   ========================================================================== */

/* App-mockup image bleeds off the right edge of the card (desktop). */
.newsletter-card.has-media .newsletter-body {
  max-width: 56%;
}

.newsletter-media {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  max-width: 450px;
}

@media (max-width: 1280px) {
.newsletter-media{
  max-width: 380px;

}
}
.newsletter-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Tablet: stack the mockup beneath the copy/form. */
@media (max-width: 768px) {
  .newsletter-card.has-media {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-card.has-media .newsletter-body {
    max-width: 100%;
  }
  .newsletter-media {
    position: static;
    transform: none;
    width: 100%;
    max-width: 460px;
    margin: 8px auto 0;
  }
}

/* Mobile: tighter card, stacked input + full-width button, hide mockup. */
@media (max-width: 768px) {
  .newsletter-card {
    padding: 32px 24px;
    border-radius: 16px;
  }
  .newsletter-text h3 {
    font-size: 28px;
  }
  .newsletter-fields {
    flex-direction: column;
  }
  .newsletter-submit {
    padding: 0 24px;
  }
  .newsletter-media {
    display: none;
  }
}


/* ==========================================================================
   23. Responsive Menu Fix – Tablet & Mobile
   ========================================================================== */

/* ---- Ensure nav-drawer can show even when is-open class is added --------- */
.nav-drawer.is-open {
  display: block !important;
}

/* ---- Tablet breakpoint (769px – 1100px) --------------------------------- */
@media (min-width: 769px) and (max-width: 1100px) {
  /* Header inner layout */
  .imported-header-inner {
    padding: 0 24px;
  }

  /* Show hamburger */
  .navbar-menu-toggle {
    display: inline-flex;
  }

  /* Hide desktop nav */
  .desktop-nav {
    display: none;
  }

  /* Hide desktop-only CTAs */
  .header-expert-link,
  .header-login-icon,
  .imported-header-cta {
    display: none;
  }
}

/* ---- Mobile breakpoint (≤ 768px) ---------------------------------------- */
@media (max-width: 768px) {
  /* Header */
  .imported-header-inner {
    min-height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  /* Logo sizing */
  .imported-brand img,
  .imported-brand .custom-logo {
    max-height: 36px;
  }

  /* Show hamburger */
  .navbar-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  /* Hide desktop nav */
  .desktop-nav {
    display: none;
  }

  /* Hide desktop-only CTAs */
  .header-expert-link,
  .header-login-icon,
  .imported-header-cta {
    display: none;
  }

  /* Tablet pill stays hidden on mobile */
  .tablet-nav-pill {
    display: none;
  }

  /* Nav drawer full-screen on mobile */
  .nav-drawer-scroll {
    padding-top: 32px;
  }

  /* Mobile accordion: content not side-by-side */
  .nav-drawer-content {
    position: static;
    left: auto;
    border-left: none;
    padding: 0 0 8px 16px;
    overflow-y: visible;
  }

  .nav-drawer-group.has-children,
  .nav-drawer-group.is-link,
  .nav-drawer-promo {
    width: 100%;
  }

  .nav-drawer-groups {
    min-height: 0;
  }

  /* CTA buttons stack on mobile */
  .nav-drawer-cta {
    grid-template-columns: 1fr;
  }

  .nav-drawer-btn.is-primary {
    grid-column: 1;
  }
}

/* ---- Extra small (≤ 480px) ----------------------------------------------- */
@media (max-width: 480px) {
  .imported-header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .imported-brand img,
  .imported-brand .custom-logo {
    max-height: 32px;
  }
}

/* ==========================================================================
   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 rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #1a1b1d;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  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(255, 255, 255, 0.08);
}

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

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

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

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

.search-modal-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 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(255, 255, 255, 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(255, 255, 255, 0.7);
  transition: background 0.12s ease, color 0.12s ease;
}

.search-modal-item.is-active {
  background: #252a24;
  color: #fff;
}

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

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

.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, #4fa83d);
  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(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 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(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-family: inherit;
  font-size: 11px;
}

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

/* Match the footer gutters to the header's effective container gutters:
   0 above 1100px, 24px from 769-1100px, 32px at/below 1024px. */
   @media (max-width: 1300px) {
  .figma-footer-inner { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 1100px) {
  .figma-footer-inner { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 1024px) {
  .figma-footer-inner { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
  .figma-footer-inner { padding-left: 1rem; padding-right: 1rem; }
}
