html {
  scroll-behavior: smooth;
}

/* Breadcrumb horizontal scroll - hide scrollbar while maintaining scrollability */
.breadcrumb-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.breadcrumb-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Add scroll margin to anchor targets to account for sticky header */
#features,
#guides-news,
#got-questions,
#contact-us,
#download-app {
  scroll-margin-top: 120px;
}

@media (max-width: 1023px) {
  #features,
  #guides-news,
  #got-questions,
  #contact-us,
  #download-app {
    scroll-margin-top: 80px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  font-family: var(--font-maison);
}

strong {
  font-weight: 700;
}

button {
  cursor: pointer;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    rgba(20, 184, 166, 1) 0%,
    rgba(94, 234, 212, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.swipper-arrow {
  margin: 0 auto -32px;
  border-radius: 50px;
  position: absolute;
  max-width: 120px;
  bottom: 0;
  right: 0;
  left: 0;
}

.swipper-arrow > div:after {
  display: none;
}

.swipper-arrow > div {
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
}

.iphone-screens {
  position: relative;
  z-index: 2;
  padding-top: 2%;
}

.iphone-screens img {
  margin: -2% auto -175px;
  max-width: 1120px;
  width: 90%;
  display: block;
}

.iphone-screens:before {
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  content: "";
  background: #fff;
  position: absolute;
  padding-bottom: 25%;
}

.swiper-grow {
  width: 100%;
}

@media (width > 767px) {
  .swiper-grow {
    width: calc(100px - 63px - 48px);
  }
}

@media (width < 767px) {
  .iphone-screens {
    margin: 0 -32%;
  }
}

/* Guide Content Styling */
.guide-content {
  max-width: none;
  line-height: 1.75;
  font-size: 1rem;
}

/* Category page intro and content styling - match guide-content */
.category-intro-content h2,
.category-intro-content h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 900;
  font-family: var(--font-maison);
  color: rgb(15 23 42);
}

.category-intro-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: rgb(71 85 105);
}

@media (min-width: 768px) {
  .category-intro-content h2 {
    font-size: 1.875rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
  }

  .category-intro-content h3 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }
}

.guide-content > * + * {
  margin-top: 2.5rem;
}

.guide-content h2 {
  font-size: 1.875rem;
  line-height: 1.2;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-weight: 900;
  font-family: var(--font-maison);
}

.guide-content h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 900;
  font-family: var(--font-maison);
}

.guide-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.guide-content strong {
  font-weight: 700;
}

/* Numbered Lists (Ordered Lists) - Prominent Numbers in Teal Circles */
.guide-content ol {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
  margin: 2.5rem 0;
}

.guide-content ol li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
  line-height: 1.75;
  display: block;
  min-height: 2rem;
}

.guide-content ol li > *:first-child {
  display: inline;
}

.guide-content ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  font-family: var(--font-maison);
  font-size: 1rem;
  color: rgb(255 255 255);
  background-color: rgb(20 184 166);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Unordered Lists - All get circle-check-big icons by default in guides */
.guide-content ul {
  list-style: none;
  padding-left: 0;
  margin: 2.5rem 0;
}

.guide-content ul li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
  display: block;
  min-height: 2rem;
}

.guide-content ul li > *:first-child {
  display: inline;
}

.guide-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Icon will be injected via JavaScript */
}

.guide-content ul li[data-icon-initialized]::before {
  display: none;
}

.guide-content ul li[data-icon-initialized] {
  padding-left: 2.2rem;
}

/* FAQ Section Styling */
.guide-content h2 + h3 {
  margin-top: 1.5rem;
}

.guide-content h3 + p {
  margin-top: 0.5rem;
}

/* Blockquote Styling (TL;DR sections) */
.guide-content blockquote {
  margin: 3rem 0;
  padding: 2rem;
  background-color: rgb(241 245 249);
  border-left: 4px solid rgb(20 184 166);
  border-radius: 0.5rem;
}

/* Handle nested blockquotes (WordPress sometimes creates them) */
.guide-content blockquote blockquote {
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
}

.guide-content blockquote h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: rgb(15 23 42);
}

.guide-content blockquote blockquote h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: rgb(15 23 42);
}

.guide-content blockquote p {
  margin-bottom: 0;
}

.guide-content blockquote p:last-child {
  margin-bottom: 0;
}

.guide-content blockquote blockquote p {
  margin-bottom: 0;
}

.guide-content blockquote blockquote p:last-child {
  margin-bottom: 0;
}

/* WordPress Column Blocks */
.guide-content .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
}

.guide-content .wp-block-column {
  flex: 1;
  min-width: 250px;
  padding: 2rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.75rem;
  background-color: rgb(255 255 255);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

@media (max-width: 768px) {
  .guide-content .wp-block-column {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Column Content Styling */
.guide-content .wp-block-column h2,
.guide-content .wp-block-column h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 900;
  font-family: var(--font-maison);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Ensure text content in flex headings maintains proper spacing */
.guide-content .wp-block-column h2 > *:not(i[data-lucide]):not(svg),
.guide-content .wp-block-column h3 > *:not(i[data-lucide]):not(svg) {
  white-space: normal;
}

/* Icon styling in headings and columns */
.guide-content [data-icon],
.guide-content [class*="lucide-"] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guide-content [data-icon] i[data-lucide],
.guide-content [class*="lucide-"] i[data-lucide],
.guide-content ul li i[data-lucide] {
  flex-shrink: 0;
  color: rgb(20 184 166);
}

/* UL list item icon positioning */
.guide-content ul li i[data-lucide] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.guide-content .wp-block-column [data-icon] i[data-lucide],
.guide-content .wp-block-column [class*="lucide-"] i[data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
}

.guide-content .wp-block-column p {
  margin-bottom: 0;
  line-height: 1.75;
}

/* Images in Columns */
.guide-content .wp-block-column img {
  width: auto;
  height: auto;
  max-width: 100%;
  margin-bottom: 1rem;
}

/* Column Layout with Images */
.guide-content .wp-block-column > *:first-child {
  margin-top: 0;
}

.guide-content .wp-block-column .wp-block-image,
.guide-content .wp-block-column img {
  margin-bottom: 1rem;
}

/* Iframe Styling (Maps) */
.guide-content iframe {
  width: 100%;
  max-width: 100%;
  height: 450px;
  border: none;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .guide-content iframe {
    height: 350px;
  }
}

/* Images */
.guide-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.guide-content .wp-block-image {
  margin: 1.5rem 0;
}

.guide-content .wp-block-image img {
  margin: 0;
}

/* Better spacing for first/last elements */
.guide-content > blockquote:first-child {
  margin-top: 0;
}

.guide-content > *:last-child {
  margin-bottom: 0;
}

/* Paragraphs with small font (like "Note:" sections) */
.guide-content p.has-small-font-size {
  font-size: 0.875rem;
  color: rgb(71 85 105);
  margin-top: 0.5rem;
}

/* Ensure proper spacing between sections */
.guide-content h2:not(:first-child) {
  margin-top: 4rem;
}

.guide-content h2 + h3 {
  margin-top: 1.5rem;
}

.guide-content h3:not(:first-child) {
  margin-top: 3rem;
}

/* Additional spacing for lists after headings */
.guide-content h2 + ol,
.guide-content h2 + ul {
  margin-top: 2rem;
}

.guide-content h3 + ol,
.guide-content h3 + ul {
  margin-top: 1.5rem;
}

/* Table Styling */
.guide-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 3rem 0;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  background-color: rgb(255 255 255);
}

.guide-content table,
.guide-content table * {
  border-color: rgb(226 232 240);
}

.guide-content table thead {
  background-color: rgb(241 245 249);
}

.guide-content table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 900;
  font-family: var(--font-maison);
  font-size: 1rem;
  color: rgb(15 23 42);
  border: none;
  border-bottom: 1px solid rgb(226 232 240);
  border-right: 1px solid rgb(226 232 240);
}

.guide-content table th:last-child {
  border-right: none;
}

.guide-content table tbody tr {
  border: none;
}

.guide-content table tbody tr:not(:last-child) {
  border-bottom: 1px solid rgb(226 232 240);
}

.guide-content table td {
  padding: 1rem 1.5rem;
  color: rgb(15 23 42);
  border: none;
  border-right: 1px solid rgb(226 232 240);
}

.guide-content table td:last-child {
  border-right: none;
}

.guide-content table tbody tr:hover {
  background-color: rgb(248 250 252);
}

@media (max-width: 768px) {
  .guide-content table {
    font-size: 0.875rem;
  }

  .guide-content table th,
  .guide-content table td {
    padding: 0.75rem 1rem;
  }
}

/* Testimonial Author Image Styling */
.testimonial-author-image {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 4px;
}

.testimonial-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(20%); */
  /* opacity: 0.9; */
}

.testimaonial-author-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 184, 166, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

/* Ninja Forms - Match Sample Form Styling */

/* Hide all unnecessary elements */
#nf-form-1-cont .nf-form-title,
#nf-form-1-cont .nf-response-msg:empty,
#nf-form-1-cont .nf-debug-msg,
#nf-form-1-cont .nf-before-form,
#nf-form-1-cont .nf-before-form-content,
#nf-form-1-cont .nf-after-form-content,
#nf-form-1-cont .nf-after-form,
#nf-form-1-cont .nf-form-fields-required,
#nf-form-1-cont .nf-form-hp,
#nf-form-1-cont .nf-field-label,
#nf-form-1-cont .nf-before-field,
#nf-form-1-cont .nf-after-field,
#nf-form-1-cont .nf-input-limit,
#nf-form-1-cont .nf-error-wrap:empty,
#nf-form-1-cont .nf-form-errors:empty {
  display: none !important;
}

/* Form container - full width */
#nf-form-1-cont {
  width: 100%;
  max-width: 712px;
  margin: 0 auto;
}

/* Form layout - horizontal flex */
#nf-form-1-cont .nf-form-layout {
  width: 100%;
}

#nf-form-1-cont .nf-form-layout form {
  width: 100%;
}

#nf-form-1-cont .nf-form-layout form > div {
  width: 100%;
}

#nf-form-1-cont .nf-form-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  #nf-form-1-cont .nf-form-content {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Custom element wrapper - flexbox layout */
#nf-form-1-cont nf-fields-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  width: 100% !important;
  max-width: 712px !important;
}

@media (min-width: 640px) {
  #nf-form-1-cont nf-fields-wrap {
    flex-direction: row !important;
  }
}

/* nf-field elements - base styles */
#nf-form-1-cont nf-field {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Email field - flexible, grows to fill space */
#nf-form-1-cont nf-field:nth-child(1) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* Submit button - fixed width on desktop, full width on mobile */
#nf-form-1-cont nf-field:nth-child(2) {
  width: 100% !important;
}

@media (min-width: 640px) {
  #nf-form-1-cont nf-field:nth-child(2) {
    flex: 0 0 255px !important;
    width: 255px !important;
    max-width: 255px !important;
  }
}

/* Field containers */
#nf-form-1-cont .nf-field-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

#nf-form-1-cont .nf-field {
  width: 100% !important;
  max-width: none !important;
}

#nf-form-1-cont .field-wrap {
  width: 100% !important;
  max-width: none !important;
}

#nf-form-1-cont .nf-field-element {
  width: 100% !important;
  max-width: none !important;
}

/* Email input - match sample form */
#nf-form-1-cont input[type="email"].ninja-forms-field {
  width: 100%;
  height: 4rem;
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgb(15 23 42);
  background-color: rgb(255 255 255);
  color: rgb(15 23 42);
  box-sizing: border-box;
}

#nf-form-1-cont input[type="email"].ninja-forms-field::placeholder {
  color: rgb(15 23 42);
}

#nf-form-1-cont input[type="email"].ninja-forms-field:focus {
  outline: none;
  border-color: rgb(15 23 42);
}

/* Submit button - match sample form */
#nf-form-1-cont input[type="submit"].ninja-forms-field {
  width: 100%;
  height: 4rem;
  padding: 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 900;
  font-family: var(--font-maison);
  background-color: rgb(15 23 42);
  color: rgb(255 255 255);
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
  text-transform: uppercase;
}

#nf-form-1-cont input[type="submit"].ninja-forms-field:hover {
  opacity: 0.9;
}

/* Error messages - show when present */
#nf-form-1-cont .nf-error-wrap.nf-error:not(:empty) {
  display: block !important;
  margin-top: 0.5rem;
  color: rgb(239 68 68);
  font-size: 0.875rem;
}
