/* Add this to the TOP of your style.css file */

/* Fix horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix mobile spacing for navbar */
@media screen and (max-width: 767px) {
    /* Increase top spacing to prevent title from hiding under navbar */
    .section {
        margin-top: 80px !important;
        padding-top: 0 !important;
    }

    /* Make the button text smaller on mobile */
    .cta.green {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }

    /* Hide "Start Coding for FREE" on mobile */
    .cta.green .desktop-text {
        display: none !important;
    }

    /* Show "Join for Free" on mobile */
    .cta.green .mobile-text {
        display: inline !important;
    }

    /* Adjust heading size on mobile */
    .h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
    }
}

/* Hide mobile text by default (desktop view) */
.cta.green .mobile-text {
    display: none;
}

/* style.css */
/*
Theme Name: AlgoCademy
Theme URI: https://algocademy.com
Author: AlgoCademy
Author URI: https://algocademy.com
Description: Custom WordPress theme for AlgoCademy
Version: 1.0
*/

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Roboto+Slab:wght@100;200;300;400;500;600;700;800;900&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Base Styles */
body {
  font-family: Montserrat, sans-serif;
  color: #1a1b1f;
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  margin: 0;
}

h1 {
  margin-top: 20px;
  margin-bottom: 15px;
  font-family: 'Roboto Slab', sans-serif;
  font-size: 48px;
  line-height: 63px;
  font-weight: 700;
}

h2 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 36px;
  line-height: 50px;
  font-weight: 400;
}

/* Navigation */
.navbar {
  position: fixed;
  left: 0%;
  top: 0%;
  right: 0%;
  bottom: auto;
  z-index: 1;
  display: block;
  padding: 12px 20px;
  background-color: #F7FAFC !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.navbar-container {
  display: flex;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding: 0px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  margin-top:-5px;
}

.nav-link {
  display: block;
  margin-right: 24px;
  padding: 0px;
  transition: all 200ms cubic-bezier(.785, .135, .15, .86);
  font-family: Inter, sans-serif;
  color: #0f0f0f;
  line-height: 23px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover {
  color: #05b0e0;
  text-decoration: none;
}

.cta.green {
  display: flex;
  padding: 16px 20px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background-color: #96bd3c;
  color: #fff;
  font-size: 18px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.cta.green:hover {
  background-color: #06406c;
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.16);
  transform: translate(0px, -4px);
}

/* Main Content */
.section {
  display: block;
  max-width: none;
  margin: 10vh auto;
  padding: 10vh 20px;
}

.container {
  display: flex;
  width: 100%;
  max-width: 1280px;
  margin: 24px auto;
  flex-direction: column;
  align-items: flex-start;
}

.container.narrow {
  max-width: 1100px;
}

/* Blog List */
.blog-post-card {
  display: flex;
  max-width: 420px;
  margin-top: 24px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  align-self: center;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.blog-post-card:hover {
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.16);
  transform: translate(0px, -6px);
}

.blog-post-card-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.blog-summary-wrap {
  width: 70%;
  margin-right: auto;
  margin-bottom: 20px;
  margin-left: auto;
  text-align: left;
}

/* Typography */
.h5 {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 23px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.h5.light-blue {
  margin-top: 8px;
  margin-bottom: 0px;
  color: #05b0e0;
}

.h5.light-blue.centered {
  text-align: center;
}

.paragraph {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  letter-spacing: -0.3px;
}

.paragraph.dark-grey {
  margin-bottom: 4px;
  color: #4f4f4f;
}

.paragraph.white {
  margin-bottom: 16px;
  color: #fff;
  text-decoration: none;
}

/* Footer */
.footer {
  display: flex;
  width: 100%;
  padding: 80px 20px;
  background-color: #0f0f0f;
}

.footer-container {
  display: grid;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  grid-auto-columns: 1fr;
  grid-column-gap: 24px;
  grid-row-gap: 24px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
}

.footer-icon {
  width: 24px;
  height: 24px;
  margin-right: 16px;
}

/* Utilities */
.centered {
  text-align: center;
}

.bottom-margin-8 {
  margin-bottom: 8px;
}

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

.icon._24px {
  width: 24px;
  height: 24px;
}

.icon._32px {
  width: 32px;
  height: 32px;
}

.logo._40px {
  height: 40px;
}

/* Responsive */
@media screen and (max-width: 991px) {
  .nav-menu {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .menu-button {
    display: block;
  }

  .container._2-column {
    display: flex;
  }

  .blog-post-card {
    max-width: none;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 36px;
    line-height: 52px;
  }

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

  .blog-summary-wrap {
    width: 100%;
  }
}

@media screen and (max-width: 479px) {
  .section {
    margin-top: 80px;
    padding-top: 0vh;
  }

  .container {
    justify-content: flex-start;
  }

  .blog-post-card {
    padding: 16px;
  }
}

/* Additional/Updated styles for style.css */

/* Fixed Navbar */
.navbar {
  position: fixed;
  left: 0%;
  top: 0%;
  right: 0%;
  bottom: auto;
  z-index: 1;
  display: block;
  padding: 12px 20px;
  background-color: #F7FAFC !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.navbar-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding: 0px;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-menu {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-link {
  margin-right: 24px;
  padding: 0px;
  -webkit-transition: all 200ms cubic-bezier(.785, .135, .15, .86);
  transition: all 200ms cubic-bezier(.785, .135, .15, .86);
  font-family: Inter, sans-serif;
  color: #0f0f0f;
  line-height: 23px;
  font-weight: 700;
  text-decoration: none;
}

/* Fixed Blog List Images */
.blog-post-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  padding: 24px;
  margin-right: 8px;
  margin-left: 8px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.08);
  text-decoration: none;
  -webkit-transition: all 200ms cubic-bezier(.785, .135, .15, .86);
  transition: all 200ms cubic-bezier(.785, .135, .15, .86);
}

.blog-post-card-image {
  width: 120px;
  height: 120px;
  margin-left: 16px;
  border-radius: 8px;
  object-fit: cover;
}

/* Fixed Single Post Featured Image */
.detail-header-image {
  width: 100%;
  height: 620px;
  margin-bottom: 60px;
  border-radius: 16px;
  object-fit: cover;
}

/* Container Fixes */
.container.horizontal {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  flex-wrap: wrap;
}

.blog-list-wrap {
  width: 100%;
  margin-bottom: 60px;
}

/* Section Spacing Fix */
.section {
  margin-top: 120px;
  padding-top: 0;
}

@media screen and (max-width: 991px) {
  .blog-post-card {
    flex-direction: column;
  }

  .blog-post-card-image {
    width: 100%;
    height: 200px;
    margin-left: 0;
    margin-top: 16px;
  }

  .detail-header-image {
    height: 400px;
  }
}

@media screen and (max-width: 767px) {
  .detail-header-image {
    height: 300px;
  }

  .blog-post-card-image {
    height: 160px;
  }
}

@media screen and (max-width: 479px) {
  .detail-header-image {
    height: 200px;
  }

  .blog-post-card-image {
    height: 120px;
  }
}

/* Updated Blog Listing Styles */
.blog-list-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.blog-post-card {
  display: flex;
  padding: 32px;
  margin-bottom: 24px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-content {
  flex: 1;
  padding-right: 32px;
}

.blog-date {
  color: #0000FF;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}

.blog-title {
  color: #0000FF;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-excerpt {
  color: #000;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-meta {
  color: #666;
  font-size: 14px;
}

.blog-image {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

/* Header Styles */
.blog-header {
  text-align: center;
  margin: 60px auto 40px;
  max-width: 1000px;
}

.blog-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.blog-header h2 {
  font-size: 24px;
  font-weight: 400;
  color: #444;
  line-height: 1.4;
}

/* Start Coding Button */
.cta-button {
  background-color: #96bd3c;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #85a935;
}

@media (max-width: 768px) {
  .blog-post-card {
    flex-direction: column;
    padding: 24px;
  }

  .blog-content {
    padding-right: 0;
    padding-bottom: 24px;
  }

  .blog-image {
    width: 100%;
    height: 200px;
  }
}


/* Modern Blog Listing Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-content {
  padding: 24px;
}

.blog-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
  margin-bottom: 16px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  color: #111;
  font-weight: 500;
}

/* Header Styles */
.page-header {
  max-width: 1200px;
  margin: 64px auto 32px;
  padding: 0 24px;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}

.page-description {
  font-size: 20px;
  color: #666;
  max-width: 700px;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-image {
    height: 200px;
  }
}


/* Updated Pagination Styles */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px auto;
  max-width: 1200px;
  padding: 0 24px;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-numbers.current {
  background-color: #6366f1;
  color: #fff;
}

.page-numbers:not(.current):hover {
  background-color: #f4f4f5;
}

/* Previous/Next buttons */
.page-numbers.prev,
.page-numbers.next {
  font-weight: 500;
}

/* Dots */
.page-numbers.dots {
  pointer-events: none;
}

/* Hide extra numbers on mobile */
@media (max-width: 768px) {
  .page-numbers:not(.prev):not(.next):not(.current) {
    display: none;
  }
  
  .page-numbers.current,
  .page-numbers.prev,
  .page-numbers.next {
    display: inline-flex;
  }
}

/* Search Styles */
.blog-header-wrap {
    background: #f8fafc;
    padding: 64px 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.search-section {
    max-width: 600px;
    margin: 32px auto 0;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #64748b;
}

/* Search Results Header */
.search-results-header {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.search-results-title {
    font-size: 20px;
    color: #64748b;
    font-weight: 500;
}

.search-term {
    color: #0f172a;
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 12px;
    margin: 32px auto;
    max-width: 600px;
}

.no-results-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0f172a;
}

.no-results-text {
    color: #64748b;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .blog-header-wrap {
        padding: 32px 16px;
    }
    
    .search-section {
        margin-top: 24px;
    }
}

/* Code Snippet Styles */
pre {
    background: #F5F2F0 !important;;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    position: relative;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #a9b1d6;
}



/* Optional: Add a subtle border */
pre {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure code blocks don't overflow */
pre code {
    display: block;
    padding-right: 20px; /* Space for potential scrollbar */
}

/* Syntax Highlighting Colors - Tokyo Night theme */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #565f89;
}

.token.punctuation {
    color: #9aa5ce;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f7768e;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #9ece6a;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #89ddff;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #bb9af7;
}

.token.function,
.token.class-name {
    color: #7aa2f7;
}

.token.regex,
.token.important,
.token.variable {
    color: #ff9e64;
}

/* Single Post Content Styles */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.single-post-header {
    margin-bottom: 40px;
    text-align: center;
}

.single-post-title {
    font-size: 42px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
}

.post-content h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 24px;
    font-weight: 700;
}

.post-content h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

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

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 12px;
}

/* Add copy button to code blocks */
.code-header {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    background: #2a2b3d;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #a9b1d6;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .single-post-title {
        font-size: 32px;
    }

    .post-content {
        font-size: 16px;
    }
}


/* Post Navigation Styles */
.post-navigation {
    max-width: 800px;
    margin: 64px auto 0;
    padding: 32px 24px;
    border-top: 1px solid #e5e7eb;
}

.post-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.post-nav-link {
    display: flex;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-nav-content {
    flex: 1;
}

.post-nav-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.post-nav-title {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 16px;
}

.post-nav-link.prev {
    flex-direction: row-reverse;
}

.post-nav-link.prev .post-nav-image {
    margin-left: 0;
    margin-right: 16px;
}

.featured-image {
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .post-nav-grid {
        grid-template-columns: 1fr;
    }

    .post-nav-image {
        width: 80px;
        height: 80px;
    }

    .post-nav-title {
        font-size: 15px;
    }
}


/* Add to your main style.css */

/* Fix horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Adjust main content padding for navbar */
.section {
    padding-top: 120px; /* Increased top padding to account for fixed navbar */
    margin-top: 0;
}

/* Responsive styles for the navbar button */
.cta.green {
    padding: 12px 24px;
    font-size: 16px;
    white-space: nowrap;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    /* Adjust top padding for mobile */
    .section {
        padding-top: 100px;
    }

    /* Adjust mobile title spacing */
    .h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-top: 0;
    }

    /* Mobile CTA button */
    .nav-menu .cta.green {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Hide default text and show mobile text */
    .cta.green .desktop-text {
        display: none;
    }

    .cta.green .mobile-text {
        display: inline;
    }
}

/* Desktop text/mobile text switch */
.cta.green .mobile-text {
    display: none;
}

.cta.green .desktop-text {
    display: inline;
}

/* Add this to your style.css */

/* Default desktop styles */
.section {
    margin-top: 0;
    padding-top: 120px; /* Space for navbar on desktop */
}

/* Fix horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Desktop button text */
.cta.green .mobile-text {
    display: none;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    .section {
        padding-top: 80px !important; /* Adjusted space for mobile navbar */
    }

    /* Mobile button styles */
    .cta.green {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }

    .cta.green .desktop-text {
        display: none !important;
    }

    .cta.green .mobile-text {
        display: inline !important;
    }

    /* Mobile heading styles */
    .h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
    }
}

/* Ensure navbar stays on top */
.navbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    background-color: hsla(0, 0%, 100%, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Add this in style.css */

/* Fix horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Updated navbar and content spacing */
.navbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    padding: 12px 20px;
    background-color: hsla(0, 0%, 100%, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Content spacing fix */
body {
    padding-top: 64px; /* Height of navbar */
}

/* Button text swap */
@media screen and (max-width: 767px) {
    .navbar .cta.green::after {
        content: 'Join for Free';
    }

    .navbar .cta.green span {
        display: none;
    }

    .navbar .cta.green {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media screen and (min-width: 768px) {
    .navbar .cta.green::after {
        content: 'Start Coding for FREE';
    }

    .navbar .cta.green span {
        display: none;
    }
}
