/*
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: #6b7280;
  --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: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-container {
  padding: 80px 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: var(--primary);
  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;
}

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

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

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

.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: 32px;
  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-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.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: 80px 0;
  border-top: 1px solid var(--border);
}

.newsletter-card {
  background: var(--muted);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.newsletter-text {
  flex: 1;
}

.newsletter-text h3 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

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

.newsletter-form {
  flex: 1;
  max-width: 440px;
}

.input-group {
  display: flex;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.input-group input {
  flex: 1;
  padding: 0 16px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-family: var(--font-family-body);
  color: var(--foreground);
}

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

/* ==========================================================================
   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 {
  font-size: 14px;
  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 {
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

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

.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: 1024px) {
  .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 20px;
  }

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

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

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

  .input-group {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  .input-group input {
    padding: 12px 16px;
  }
}

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

.imported-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 16, 0.94);
  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;
  background:
    radial-gradient(circle at top left, rgba(89, 165, 44, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
}

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

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

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

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

.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 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  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-size: 18px;
  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: 15px;
  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(--primary);
}

.mega-menu-products .mega-menu-links a::before,
.simple-two-col .mega-menu-links a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  flex: 0 0 auto;
}

.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);
  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-size: 18px;
  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-arrow {
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
}

.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 {
  background: #393e46;
  margin: 0 28px;
}

.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 {
  color: #4fa83d;
  font-size: 17px;
  font-weight: 600;
}

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

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

.mega-menu-panel-resources {
  min-width: 520px;
}

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

.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 {
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid #41b52c;
  background: linear-gradient(90deg, #0f1012 0%, #193919 55%, #61bd43 100%);
  color: #ffffff;
  font-weight: 700;
}

.header-login-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #41b52c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #41b52c;
  font-size: 24px;
  font-weight: 700;
}

.navbar-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.navbar-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-nav-panel {
  display: none;
  padding: 0 0 20px;
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-inner {
  position: relative;
  z-index: 1;
  padding-top: 12px;
}

.mobile-nav-group,
.mobile-nav-direct-links {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-trigger {
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-nav-plus {
  font-size: 24px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
}

.mobile-nav-content {
  padding: 0 0 16px;
}

.mobile-nav-section + .mobile-nav-section {
  margin-top: 18px;
}

.mobile-nav-section h3 {
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.56);
}

.mobile-nav-direct-links {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.mobile-nav-direct-links a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}

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

.footer-coming-soon {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: rgba(245, 247, 248, 0.48);
  font-size: 16px;
}

.footer-coming-soon em {
  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: 18px;
}

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

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

  .navbar-menu-toggle,
  .mobile-nav-panel {
    display: block;
  }

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

  .header-expert-link,
  .header-login-icon {
    display: none;
  }

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

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

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