/* Add this at the top of your main.css file */
body,
html {
  font-family: "Ezra", sans-serif;
}

/* Define colour variables */
:root {
  --primary-color: #9fe870;
  --primary-light: #faf0ca;
  --secondary-color: #2e2f5b;
  --secondary-light: #bcbcd7;
  --text-color: #001c38; /* Default text colour */
  --link-color: #8cdd00; /* Link colour */
  --link-hover-color: #0056b3; /* Link hover colour */
  --footer-bg: #333; /* Footer background */
  --footer-text: #fff; /* Footer text colour */
}


/* Apply the Inter font family globally */
body {
  font-family: "Ezra", sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: var(--text-color);
  font-size: 16px;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Resetting some default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Container for max-width content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Styling for summary table (integrations page) */
/* Desktop - no scroll */
@media (min-width: 1024px) {
  .table-scroll-wrapper {
    position: relative;
  }

  .table-container {
    overflow-x: visible;
  }

  .custom-scrollbar {
    display: none;
  }

  .table-container table {
    min-width: auto;
  }
}

/* Tablet and Mobile - with horizontal scroll */
@media (max-width: 1023px) {
  .table-scroll-wrapper {
    position: relative;
    width: 100%;
  }

  .table-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  /* Hide default scrollbar */
  .table-container::-webkit-scrollbar {
    display: none;
  }

  .table-container table {
    min-width: 800px;
  }

  /* Custom scrollbar container */
  .custom-scrollbar {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: 16px;
  }

  /* Scrollbar track (background) */
  .scrollbar-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #d9d9d9;
    opacity: 0.4;
    border-radius: 4px;
  }

  /* Custom scrollbar thumb (progress indicator) */
  .scrollbar-thumb {
    position: absolute;
    height: 100%;
    background-color: #d9d9d9;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
    z-index: 1;
  }
}

.help-card {
  position: relative;
  overflow: hidden;
  min-height: 200px; /* keep card height consistent */
  transition: background 0.3s ease;
}

/* smooth lift of text */
.help-card-content {
  transition: transform 0.35s ease;
}

.help-card:hover .help-card-content {
  transform: translateY(-28px);
}

/* icon sits flush at the bottom */
.help-card-icon {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 120px;
  height: 120px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* FORCE the icon art to visually sit at the bottom */
.help-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

/* fade + rise */
.help-card:hover .help-card-icon {
  opacity: 1;
  transform: translateY(0);
}

/* mobile adjustments */
@media (max-width: 640px) {
  .help-card {
    min-height: 180px;
  }

  .help-card-icon {
    width: 80px;
    height: 80px;
    right: 12px;
  }

  .help-card:hover .help-card-content {
    transform: translateY(-16px);
  }
}

/* Mobile: use hover background as default */
@media (max-width: 768px) {
  /* Getting Started */
  .help-card:nth-child(1) {
    background: #eafbdf !important;
  }

  /* Products & Services Management */
  .help-card:nth-child(2) {
    background: #fff1cc !important;
  }

  /* Store Setup & Customization */
  .help-card:nth-child(3) {
    background: #fff9f3 !important;
  }

  /* Event & Ticket Sales */
  .help-card:nth-child(4) {
    background: #e6fffc !important;
  }

  /* Integrations */
  .help-card:nth-child(5) {
    background: #dcdcff !important;
  }

  /* Payments & Payouts */
  .help-card:nth-child(6) {
    background: #ebf3fc !important;
  }

  /* Also apply hover state behaviors as default on mobile */
  .help-card-content {
    transform: translateY(-16px);
  }

  .help-card-icon {
    opacity: 1;
    transform: translateY(0);
  }

  /* Disable hover animation flicker on touch devices */
  .help-card:hover .help-card-content,
  .help-card:hover .help-card-icon {
    transform: none;
  }
}

.support-card {
  position: relative;
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

/* content + image hover motion */
.support-card .hover-img {
  display: none;
}

/* On hover swap images */
.support-card:hover .normal-img {
  display: none;
}
.support-card:hover .hover-img {
  display: block;
}

.support-card-content,
.support-card-image {
  transition: transform 0.45s ease;
}

/* Email Support hover */
.support-card:nth-child(1):hover {
  background: radial-gradient(
      95.9% 90.36% at 48.23% 50%,
      #d9eefb 0%,
      rgba(177, 225, 255, 0) 100%
    ),
    #90dcff;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
}

/* Live Chat hover */
.support-card:nth-child(2):hover {
  background: radial-gradient(
      121.17% 114.98% at 50% 50%,
      #fff9d5 0%,
      rgba(255, 236, 119, 0) 100%
    ),
    #ffec77;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
}

/* Hover motion */
.support-card:hover .support-card-content {
  transform: translateY(48px); /* move down toward center */
}

/* Ensure image sits flush at bottom visually */
.support-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom;
}

@media (max-width: 768px) {
  /* Email default background */
  .support-card .normal-img {
    display: none;
  }
  .support-card .hover-img {
    display: block;
  }

  .support-card:nth-child(1) {
    background: radial-gradient(
        95.9% 90.36% at 48.23% 50%,
        #d9eefb 0%,
        rgba(177, 225, 255, 0) 100%
      ),
      #90dcff;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
  }

  /* Live Chat default background */
  .support-card:nth-child(2) {
    background: radial-gradient(
        121.17% 114.98% at 50% 50%,
        #fff9d5 0%,
        rgba(255, 236, 119, 0) 100%
      ),
      #ffec77;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
  }

  /* Default text position (downward shift) */
  .support-card-content {
    transform: translateY(18px);
  }

  /* Disable hover flicker on touch screens */
  .support-card:hover .support-card-content,
  .support-card:hover .support-card-image {
    transform: none; /* keeps mobile motion stable */
  }
}

.benefit-item {
  transition: all 0.3s ease-in-out;
}

.benefit-item:hover {
  color: #000000 !important;
  transform: scale(1.1);
}

/* Styling for headers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Ezra', sans-serif;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
}
