/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Footer styling */
.footer {
  padding: 3rem 1.5rem 2rem;
}

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

.footer ul li {
  margin-bottom: 0.5rem;
}

/* Hero section adjustments */
.hero.is-primary {
  background-image: url("/assets/vpn-hero-2-2048x2048-099dea41.webp");
  background-size: cover;
  background-position: center 61%;
  background-repeat: no-repeat;
  position: relative;
}

/* Dark overlay to ensure text readability */
.hero.is-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

/* Ensure hero content appears above overlay */
.hero.is-primary .hero-body {
  position: relative;
  z-index: 2;
}

/* Keep text white for contrast */
.hero.is-primary .title,
.hero.is-primary .subtitle {
  color: white;
}

/* Pricing section */
.pricing-section {
  background-color: #f5f5f5;
}

[data-theme="dark"] .pricing-section {
  background-color: #1a1a1a;
}

[data-theme="dark"] .pricing-section .title {
  color: #f5f5f5;
}

/* Equal height boxes */
.pricing-box,
#features .box {
  height: 100%;
}

/* Pricing box flexbox layout */
.pricing-box {
  display: flex;
  flex-direction: column;
}

/* Make the content area expand */
.pricing-box .content {
  flex: 1;
}

/* Push button to bottom */
.pricing-box > div:last-child {
  margin-top: auto;
}

/* Ensure columns use flexbox for equal height on desktop only */
@media screen and (min-width: 769px) {
  #features .columns {
    display: flex;
    flex-wrap: wrap;
  }

  #features .column {
    display: flex;
  }

  #features .box {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
}

/* Newsletter input dark mode support */
.footer .input {
  background-color: #363636;
  border-color: #363636;
  color: white;
}

.footer .input::placeholder {
  color: #8c8c8c;
}

/* Fix navbar button sizing */
.navbar-item .button.is-light.is-outlined {
  min-height: 2.5rem;
  height: 2.5rem;
  padding-top: calc(0.5em - 1px);
  padding-bottom: calc(0.5em - 1px);
}

.navbar-item .button.is-primary {
  min-height: 2.5rem;
  height: 2.5rem;
}

/* Hide mobile newsletter on desktop */
.footer .newsletter-mobile {
  display: none !important;
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
  /* Hide desktop newsletter on mobile */
  .newsletter-desktop {
    display: none !important;
  }

  /* Show mobile newsletter on mobile */
  .footer .newsletter-mobile {
    display: block !important;
  }
  .hero-body {
    padding: 3rem 1.5rem;
  }

  .title.is-1 {
    font-size: 2rem;
  }

  .subtitle.is-3 {
    font-size: 1.25rem;
  }

  /* Two-column footer layout on mobile */
  .footer .columns:not(.newsletter-mobile) {
    display: flex;
    flex-wrap: wrap;
  }

  .footer .columns:not(.newsletter-mobile) .column {
    flex: 0 0 50%;
    text-align: left;
    padding: 0.75rem;
  }

  /* Newsletter row spans full width on mobile */
  .footer .newsletter-mobile {
    margin-top: 1.5rem;
  }

  .footer .newsletter-mobile .column {
    text-align: left;
    padding: 0.75rem;
  }

  .footer .buttons {
    justify-content: flex-start;
  }

  .footer hr {
    margin: 1.5rem 0;
  }

  .footer .content.has-text-centered {
    text-align: center;
  }
}
