.cards-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
  width: 100%;
}

.card {
  background-color: #f9f9f9;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  padding: 20px;
  flex: 1 1 calc(33.33% - 40px);
  min-width: 300px;
  margin: 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: #000000ed;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}

.card:only-child {
  flex: 0 1 600px;
  min-width: auto;
}

.card img {
  width: auto;
  max-width: 90%;
  height: auto;
  margin-bottom: 15px;
  object-fit: contain;
}

.card img.external-link-icon {
  width: 16px;
  height: 16px;
  margin: 0 0 0 4px;
  display: inline;
  vertical-align: middle;
}

.card img[src*="freepbx_logo"] {
  max-width: 200px;
  height: auto;
}

.card-title {
  font-size: 1.2em;
  margin-bottom: 10px;
  width: 100%;
}

.card-text {
  font-size: 1.3em;
  line-height: 1.5;
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .card {
    flex: 1 1 calc(50% - 30px);
  }
}

@media screen and (max-width: 600px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .card {
    flex: 1 1 100%;
    min-width: 70%;
    max-width: 100%;
    margin: 0;
  }

  .card:only-child {
    min-width: 70%;
    flex: 1 1 100%;
  }

  .card img {
    max-width: 65%;
  }
}

/* Set the header to use flexbox for better alignment */
.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Universal logo styles (applies to all devices) */
.site-header .site-title .logo {
  max-width: 100%; /* Ensures the logo scales with its container */
  height: auto; /* Keeps the aspect ratio intact */
  display: block; /* Ensures the logo is treated as a block-level element */
}

/* Media queries for logo adjustments */
@media screen and (min-width: 601px) {
  .site-header .site-title .logo {
    height: 86px; /* Fixed height for consistency on desktop */
    padding-top: 10px;
  }
}

@media screen and (max-width: 600px) {
  .site-header .site-title .logo {
    height: 70px; /* Smaller logo for mobile */
  }

  /* Hamburger menu and navigation adjustments */
  .site-nav .nav-trigger {
    display: block;
    position: absolute;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
  }

  .site-nav .trigger, .site-nav .page-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px;
  }

  .site-nav .page-link {
    width: 100%;
    padding: 10px 0;
    margin: 0;
  }

  .site-nav .page-link:first-child {
    margin-top: 15px;
  }

  .site-nav .page-link:last-child {
    margin-bottom: 15px;
  }

  .site-nav {
    padding: 10px !important;
    top: 15px;
  }

}

/* Remove the global img padding adjustment */
@media screen and (max-width: 600px) {
  /* Adjust padding only for .responsive-image */

  /* Ensure the logo retains proper positioning */
  .site-header .site-title .logo {
    padding-top: 10px !important; /* Ensure proper spacing for the logo */
    height: 70px; /* Keep the mobile logo height consistent */
  }
}

/* Typography */
.post-title, h1, h2, h3, h4, h5, h6 {
  font-family: 'Assistant', sans-serif;
  color: #000000ed;
}

.post-title {
  font-weight: 700; /* Lato Black */
  text-align: center;
}

p, .faq-answer {
  font-family: 'Inter', sans-serif;
  font-size: 1.2em; /* Increase font size */
}

h1 {
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 1.7em;
  color: #000000ed; /* Dark color, subtle tone */
  background-color: #e3eaf5; /* Light gray for a softer accent */
  padding: 15px 20px;
  border: 3px solid #333;
  box-shadow: 5px 5px 0 #333;
  text-align: center;
  width: fit-content; /* Ensure the h1 doesn't stretch full width */
  margin: 35px auto; /* Center align the h1 */
}

h1 + h1 { 
  margin-top: 0;
}




h2 {
  font-weight: 400; /* Lato Bold for secondary headings */
}

h3, h4, h5, h6 {
  font-weight: 300; /* Lato Light for smaller subheadings */
}

/* Header adjustments for desktop */
@media screen and (min-width: 601px) {
  .site-header .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    padding: 0 20px;
  }

  .site-header .site-title {
    margin-right: 50px;
  }
}

.site-nav .page-link {
  font-size: larger;
}

.site-nav {
  padding-top: 10px;
}

/* Custom styles for content with image */
.content-with-image, .content-with-image.reverse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px; /* Space between sections */
}

.content-with-image.reverse {
  flex-direction: row-reverse;
}

.text-section, .image-section {
  flex: 1;
}

.text-section {
  padding-right: 20px; /* Adjust the spacing between text and image */
}

.image-section {
  display: flex;
  justify-content: center;
  max-width: 50%; /* Adjust image width here */
}

.responsive-image {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 600px) {
  .content-with-image, .content-with-image.reverse {
    flex-direction: column;
  }

  .text-section, .image-section {
    max-width: 100%;
    padding: 0; /* Full-width on small screens */
  }

  .image-section {
    order: -1; /* Image above text for both regular and reverse sections */
  }
}

.center-text {
  text-align: center; /* Center the text */
  font-size: larger;
}

/* Styles for sections with widgets */
.content-with-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-text-section {
  flex: 1;
}

.widget-section {
  flex: 1;
  max-width: 50%; /* Adjust image width here */
  height: auto;
}

/* Reverse the order for alternating sections */
.content-with-widget.reverse {
  flex-direction: row-reverse; /* Reverses the order */
}

@media screen and (max-width: 600px) {
  .content-with-widget {
    flex-direction: column;
  }

  .widget-section {
    max-width: 100%; /* Full width on small screens */
    order: -1; /* This will put the widget on top */
  }

  .widget-text-section {
    max-width: 100%;
  }
}


#forum-topics-widget {
  width: 100%; /* Full width */
  margin: 20px 0; /* Consistent vertical spacing */
}

#forum-topics-widget iframe {
  width: 100%; /* Full width of the container */
  border: none; /* Remove border */
  min-height: 500px; /* Minimum height */
}

/* Styling the h1 heading to match other h1 headings on the site */
#forum-topics-widget h1 {
  font-family: 'Assistant', sans-serif;
  font-weight: 600; /* This weight is used for h1 tags in your CSS */
  color: #2b2323ed; /* Same color as other headings */
  text-align: center; /* Centered heading */
  margin-bottom: 20px; /* Space below the heading */
}
#blog-posts-container {
  width: 100%;
  margin: 20px 0;
}

.blog-post-item {
  margin-bottom: 30px;
}

.blog-post-item h4 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.blog-post-item h4 a {
  color: #333;
  text-align: center;
  text-decoration: underline;
  display: block; 
}

.blog-post-item p {
  margin-bottom: 1em;
}

.blog-post-item .blog-post-meta {
  font-size: 0.9em;
  color: #666;
  text-align: center; 
  display: block; 
}
details {
  background-color: #f7f7f7; /* Light grey background */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  border-left: 4px solid #007bff; /* A pop of color on the side */
  margin-bottom: 1em;
  border-radius: 4px; /* Soft rounded corners */
  overflow: hidden; /* Ensures the border-radius clips the content */
}

summary {
  color: #333; /* Dark text for readability */
  font-weight: bold;
  padding: 1em;
  cursor: pointer;
  background-color: #ffffff; /* White background */
  list-style: none; /* Remove the default list marker */
  outline: none; /* Remove focus outline */
  border-bottom: 1px solid #eaeaea; /* Subtle separation line */
  text-align: center;
}

summary:hover {
  background-color: #efefef; /* Light grey for hover state */
}

summary::-webkit-details-marker {
  display: none; /* Hide the default arrow icon */
}

.faq-answer {
  font-family: 'Inter', sans-serif;
  font-size: 1.2em; /* Increase font size */
  padding: 1em;
  background-color: #f7f7f7; /* Match the details background */
  color: #000; /* Maintain text readability */
  border-top: none; /* Remove top border if present */
}

.button-container {
  text-align: center;
  margin-top: 20px; /* Adjust based on your layout */
}

.sign-up-button, .sign-up-button:link, .sign-up-button:visited, .sign-up-button:hover, .sign-up-button:active, .sign-up-button:focus {
  display: inline-block;
  background: #000; /* Original black */
  color: #fff; /* White text, explicitly set for all states */
  padding: 0.8em 1.6em;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent; /* Sharpens the edges */
  border-radius: 5px; /* Slightly rounded corners */
  transition: background-color 0.3s, box-shadow 0.3s;
}

.sign-up-button:hover {
  background-color: #444; /* Dark gray for hover, maintains contrast */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); /* Subtle shadow for depth */
}


.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the breadcrumb items horizontally */
  font-size: 16px; /* Font size */
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 0px 0; /* Remove background, border, and shadow */
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
  margin-right: 10px; /* Space between items */
  background-color: #fff; /* White background for breadcrumb items */
  padding: 5px 10px; /* Padding inside each link */
  border: 2px solid #333; /* Border around each link */
  box-shadow: 3px 3px 0 #333; /* Shadow effect for depth */
  border-radius: 3px; /* Subtle rounding */
}

.breadcrumb a:hover {
  text-decoration: underline;
  background-color: #eee; /* Slight background change on hover */
}

.breadcrumb span.separator {
  margin-left: 10px;
  margin-right: 10px;
  color: #6c757d;
}

.breadcrumb span.last {
  color: #495057;
  background-color: #fff;
  padding: 5px 10px;
  border: 2px solid #333;
  box-shadow: 3px 3px 0 #333;
  border-radius: 3px;
}



.cities-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.city-link {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #333;
  padding: 10px 20px;
  margin: 5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, box-shadow 0.3s;
  text-align: center; /* Ensure text is centered */
}

.city-link:hover {
  background-color: #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 600px) {
  .cities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .city-link {
    flex: 0 0 auto; /* Ensures the links do not stretch fully */
  }
}

.search-box-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#citySearchBox {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
  max-width: 400px; /* Adjust as needed */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* New styles for the buttons */
.city-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.city-button {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #333;
  padding: 15px 30px;
  margin: 10px;
  font-size: 19px;
  font-family: Assistant;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.city-button:hover {
  background-color: #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* New class for image above text layout */
.image-above-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px; /* Adjust spacing between sections */
}

.image-above-text .image-section {
  width: 100%;
  max-width: 600px; /* Adjust based on your image dimensions */
}


@media screen and (max-width: 600px) {
  .image-above-text {
    flex-direction: column;
  }
}

/* Increase font size for p tags */
p, .faq-answer {
  font-family: 'Inter', sans-serif;
  font-size: 1.2em; /* Increase font size */
}

/* Increase font size and add padding for li tags */
li {
  font-size: 1.2em;  /* Increase font size */
  padding-bottom: 10px; /* Add padding between list items */
}
/* New class for image above text layout */
.image-above-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px; /* Adjust spacing between sections */
}

.image-above-text .image-section {
  width: 100%;
  max-width: 600px; /* Adjust based on your image dimensions */
}

.image-above-text .text-section {
  width: 100%;
  padding: 25px 0; /* Increase space between image and text */
}

.image-above-text .responsive-image {
  width: 70%;
  height: auto; /* Maintain aspect ratio */
  max-height: 500px; /* Adjust maximum height as needed */
}

@media screen and (max-width: 600px) {
  .image-above-text {
    flex-direction: column;
  }
}
.faq-section {
  padding-top: 15px;
  padding-bottom: 20px; /* Adjust the value as needed */
}

.button-more {
  background-color: #3498db;
  border: 2px solid #333;
  border-radius: 8px;
  color: white;
  padding: 15px 30px;
  text-align: center;
  text-decoration: none;
  display: block; /* Change from inline-block to block */
  font-size: 18px;
  margin: 20px auto; /* margin auto on the left and right */
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  width: fit-content;
  box-shadow: 5px 5px 0 #333;
}

/* Add these selectors to ensure the text remains white in all link states */
.button-more:visited,
.button-more:link {
  color: white;
}

/* You might also want to handle hover state for better UX */
.button-more:hover {
  background-color: #2980b9;
  box-shadow: 3px 3px 0 #333;
  color: white;
}

/* Active state (when being clicked) */
.button-more:active {
  background-color: #2471a3;
  box-shadow: 1px 1px 0 #333;
  color: white;
  transform: translate(2px, 2px);
}


.button-more:hover {
  background-color: #2980b9; /* Slightly darker background on hover */
  color: white; /* Ensure text color remains white on hover */
  box-shadow: 5px 5px 0 #000; /* Increase shadow contrast on hover */
}


/* Custom styles for Use Case Main Points */
.use-case-main-point {
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #2b2323ed;
  background-color: #F9F9F9;
  padding: 10px 15px;
  border-radius: 10px;
  margin: 20px auto;
  width: fit-content;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#coverage-controls {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 20px;
  grid-row-gap: 10px;
  margin-bottom: 0px; /* Keep the margin bottom at 0px as requested */
  width: 100%;
  overflow: hidden;
}

.left-column, .right-column {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  background-color: #fff;
  padding: 20px;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0px; /* Remove any margin below these columns */
}

.gridjs-search-input,
#filter-container select.gridjs-input {
  width: 300px !important;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.45;
  border-radius: 0;
  border: 2px solid #333;
  background-color: #f0f0f0;
  color: #000;
  box-sizing: border-box;
}

/* Ensure the extra search box is hidden */
#coverage-table .gridjs-search {
  display: none !important;
}

#legend-container {
  background-color: #ffe082;
  padding: 20px;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  box-sizing: border-box;
  width: 100%;
}

#coverage-table {
  margin-top: 0 !important;
  padding-top: 0px;
}

#coverage-content {
  display: flex;
  flex-direction: column;
}

@media (max-width: 665px) {
  #coverage-controls {
    grid-template-columns: 1fr !important;
    grid-row-gap: 10px; /* Ensure some row gap to separate elements */
  }

  .left-column, .right-column {
    width: 100%;
    margin-bottom: 10px; /* Add a bit of spacing to separate the elements */
  }

  #coverage-controls {
    overflow-x: hidden;
  }

  #legend-container {
    margin-top: 10px;
  }
}
/* Custom styles for content with image - refined neobrutalism */
.content-with-image, .content-with-image.reverse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  padding: 20px;
  flex-wrap: wrap;
}

.content-with-image.reverse {
  flex-direction: row-reverse;
}

.text-section, .image-section {
  flex: 1;
  min-width: 250px;
}

.text-section {
  padding: 20px;
  font-family: 'Inter', sans-serif;
  color: #000000ed;
  text-align: center; /* Center child elements, including the button */
}


.image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.responsive-image {
  max-width: 70%;
  height: auto;
  box-shadow: none; /* Remove box shadow */
  padding: 0; /* Remove padding */
  background-color: transparent; /* Remove background */
  box-shadow: 5px 5px 0 #333;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 600px) {
  .content-with-image, .content-with-image.reverse {
    flex-direction: column;
    padding: 15px;
    align-items: center; /* Center items vertically */
  }

  .text-section, .image-section {
    width: 100%;
    padding: 10px 0; /* Reduce vertical padding */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
  }

  .image-section {
    order: -1; /* Image above text for both regular and reverse sections */
  }

  .text-section {
    text-align: center;
  }

  .text-section p {
    max-width: 100%; /* Ensure text doesn't overflow */
    margin-left: auto;
    margin-right: auto;
  }

  .responsive-image {
    max-width: 70%; /* Slightly increase image size */
    margin: 0 auto; /* Center the image */
  }
}
/* Global styles for all li elements */
ul li, ol li {
  background-color: #f9f9f9;
  padding: 20px 15px;
  margin-bottom: 10px;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  text-align: center;
  display: block;
  position: relative; /* Allow absolute positioning of internal elements */
}

/* Style for links within li elements */
ul li a, ol li a {
  color: #007bff;
  text-decoration: none;
  display: inline; /* Ensure links remain inline */
  position: relative;
}

ul li a:hover, ol li a:hover {
  text-decoration: underline;
}

/* Ensure padding and centering on mobile */
@media screen and (max-width: 600px) {
  ul, ol {
    margin-left: 0; /* Override the margin-left to center the list items on mobile */
  }

  ul li, ol li {
    margin-left: auto;
    margin-right: auto;
    padding: 20px; /* Ensure even padding around the text */
    margin-bottom: 15px; /* Increase margin for better spacing between items */
    text-align: center; /* Ensure text remains centered */
  }

  ul li a, ol li a {
    display: inline-block; /* Allow links to behave like inline elements but with padding */
    padding: 0; /* Remove any extra padding from links */
  }

  ul li p {
    margin: 10px 0; /* Ensure spacing around paragraphs inside li */
  }
}


/* Footer section header styles */
.contact-list-header {
  font-family: 'Assistant', sans-serif; /* Ensure consistency with your header font */
  font-size: 1.4em; /* Slightly reduce the size of the text */
  font-weight: bold; /* Keep the text bold */
  color: #000; /* Darker color for better contrast */
  background-color: #fffad1; /* Add a bold background color */
  padding: 8px 12px; /* Adjust padding for better proportions */
  border: 2px solid #333; /* Bold border to align with neobrutalism style */
  box-shadow: 5px 5px 0 #333; /* Add the signature shadow */
  text-align: center; /* Center the text */
  margin: 0 auto 20px auto; /* Center horizontally and add spacing below */
  width: fit-content; /* Allow the box to fit the content width */
}

.site-nav .page-link {
  padding: 10px 20px;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  border-radius: 5px;
  margin-right: 10px;
  font-weight: bold;
  color: #000;
  background-color: #efefef;
  display: inline-block;
}

.site-nav .page-link:hover {
  background-color: #eee;
}

.site-nav .page-link.mobile-only {
  display: none;
}

@media screen and (max-width: 600px) {
  .site-nav {
    position: absolute;
    top: 9px;
    right: 15px;
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: center;
    padding: 15px 0;
    z-index: 1000;
  }

  .site-header .wrapper {
    position: relative;
  }

  .site-header .site-title {
    margin-left: 10px;
  }

  .site-nav label[for="nav-trigger"] {
    position: relative;
    float: right;
  }

  .site-nav .page-link {
    display: block;
    width: 90%;
    margin: 10px auto;
    text-align: center;
  }

  .site-nav .page-link.mobile-only {
    display: block;
  }
}

.text-section p {
  font-family: 'Inter', sans-serif;
  font-size: 1.2em;
  font-weight: normal; /* Keep text weight normal */
  color: #000;
  margin-bottom: 15px;
  position: relative;
}

.text-section p::before {
  content: '✦'; /* Add a simple graphic or icon before the text */
  margin-right: 10px;
  font-size: 1.4em;
  color: #000;
}

/* Top Bar Styles */
.top-bar {
  background-color: #55595d;
  padding: 15px 0;
  color: white;
  margin-top: 0px;
}

/* Desktop-specific adjustments */
@media screen and (min-width: 601px) {
  .top-bar-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 30px;
    max-width: 1200px; /* Match your site's max-width */
    margin: 0 auto; /* Center the wrapper */
  }

  .top-bar-link {
    color: white;
    text-decoration: none;
    margin-left: 20px; /* Change from margin-right to margin-left */
    display: inline-block; /* Change from flex to inline-block */
    font-family: 'Inter', sans-serif;
    font-size: 17px;
  }

  .top-bar-link:visited {
    color: white; /* Ensure visited links remain white */
  }

  .top-bar-link:hover,
  .top-bar-link:visited:hover {
    text-decoration: underline;
    color: white;
  }

  /* Add straight line separators between links */
  .top-bar-link:not(:last-child)::after {
    content: '|';
    color: white;
    margin-left: 20px;
    display: inline-block;
  }
}

/* Mobile-specific adjustments */
@media screen and (max-width: 600px) {
  .top-bar {
    display: none;
  }
}

h1.post-title {
  margin: 1px auto; /* Adjust the margin for this page only */
}

.neo-brutalism-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.neo-brutalism-search {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

.neo-brutalism-search input {
  border: 2px solid #000;
  padding: 5px;
  font-size: 16px;
  width: 100%;
  max-width: 300px;
}

input.gridjs-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  font-size: 16px !important;
  line-height: 1.45;
  outline: none;
  padding: 10px 13px;
  width: 100%;
  max-width: 300px;
}

.gridjs-wrapper {
  width: 100%;
  overflow-x: auto;
}

.gridjs-table {
  width: 100%;
}

.gridjs-td {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  padding: 12px 15px;
}

.gridjs-td a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.gridjs-td a:hover {
  text-decoration: underline;
}

/* New class for image on top content, similar to content-with-image */
.image-on-top-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  padding: 20px;
  margin-bottom: 20px;
}

.image-on-top-content .image-section {
  width: 100%;
  max-width: 600px; /* Adjust to suit your design */
  text-align: center;
  margin-bottom: 20px; /* Adds space between the image and text */
}

.image-on-top-content .responsive-image {
  max-width: 80%;
  height: auto;
}

.image-on-top-content .text-section {
  width: 100%;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: #2b2323ed;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 600px) {
  .image-on-top-content {
    padding: 15px;
  }

  .image-on-top-content .text-section {
    padding: 10px 0;
  }

  .image-on-top-content .image-section {
    margin-bottom: 15px;
  }

  .image-on-top-content .responsive-image {
    max-width: 95%;
    height: auto;
  }
}

.cards-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
  width: 100%;
}

.card {
  background-color: #f9f9f9;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  padding: 20px;
  flex: 1 1 calc(33.33% - 40px);
  min-width: 300px;
  margin: 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: #000000ed;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}

.card:only-child {
  flex: 0 1 600px;
  min-width: auto;
}

.card img {
  width: auto;
  max-width: 50%;
  height: auto;
  margin-bottom: 15px;
  object-fit: contain;
}

.card-title {
  font-size: 1.2em;
  margin-bottom: 10px;
  width: 100%;
}

.card-text {
  font-size: 1.3em;
  line-height: 1.5;
  width: 100%;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 1024px) {
  .card {
    flex: 1 1 calc(50% - 30px);
  }
}

@media screen and (max-width: 600px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .card {
    flex: 1 1 100%;
    min-width: 70%;
    max-width: 100%;
    margin: 0;
  }

  .card:only-child {
    min-width: 70%;
    flex: 1 1 100%;
  }

  .card img {
    max-width: 35%;
  }
}

.external-link-icon {
  width: 17px;  /* Adjust size */
  height: 17px;
  margin-left: -2px;
  vertical-align: middle;
}

ul, ol {
  margin-left: 0px;
}

/* Coverage controls layout */
#coverage-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  margin-bottom: -25px;
  width: 100%;
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 20px;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  width: 100%;
  box-sizing: border-box;
}

/* Hide the extra search box */
#coverage-table .gridjs-search {
  display: none !important;
}

/* Style for dropdown and search input */
.gridjs-search-input,
#filter-container select.gridjs-input {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #333;
  background-color: #f0f0f0;
  color: #000;
  box-sizing: border-box;
  margin-bottom: 10px;
}

/* Legend container styling */
#legend-container {
  background-color: #ffe082;
  padding: 20px;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  box-sizing: border-box;
  width: 100%;
}

/* Responsive layout for mobile */
@media (max-width: 665px) {
  #coverage-controls {
    grid-template-columns: 1fr;
    grid-gap: 10px;
  }

  .left-column, .right-column {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Ensure the table is full width and doesn't overflow */
#coverage-table {
  width: 100%;
}

/* Style adjustments for the Grid.js table */
.gridjs-wrapper {
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  margin-top: 0px;
}

.gridjs-table {
  border: none;
}

.gridjs-th {
  background-color: #f0f0f0;
  border: 1px solid #333;
  font-weight: bold;
}

.gridjs-td {
  border: 1px solid #ccc;
}

/* Ensure consistent styling for inputs */
input.gridjs-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 2px solid #333 !important;
  border-radius: 0 !important;
  font-size: 16px !important;
  line-height: 1.45;
  padding: 10px 13px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Styles for the rates controls layout */
#rates-controls {
  margin-bottom: 20px;
}

#rates-controls .left-column {
  background-color: #fff;
  padding: 20px;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  width: 100%;
  box-sizing: border-box;
}

.filter-label {
  margin-bottom: 10px;
}

#filter-container {
  display: flex;
  gap: 10px;
}

#countryDropdown,
#custom-search {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.45;
  border-radius: 0;
  border: 2px solid #333;
  background-color: #f0f0f0;
  color: #000;
  box-sizing: border-box;
  height: 48px; /* Set a fixed height for both elements */
}

#countryDropdown {
  padding: 0 20px; /* Adjust padding for the dropdown */
  appearance: none; /* Remove default appearance */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 20px top 50%;
  background-size: 12px auto;
}

/* Ensure the table takes full width */
#rates-table .gridjs-container {
  width: 100%;
}

/* Media query for mobile devices */
@media screen and (max-width: 600px) {
  #filter-container {
    flex-direction: column;
  }
  
  #filter-container .gridjs-search {
    margin-bottom: 10px;
  }
}

.reset-button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #f0f0f0;
  border: 2px solid #333;
  box-shadow: 3px 3px 0 #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-button:hover {
  background-color: #e0e0e0;
}

.reset-button:active {
  box-shadow: 1px 1px 0 #333;
  transform: translate(2px, 2px);
}

@media screen and (min-width: 601px) {
  #filter-container {
    display: flex;
    gap: 10px;
  }

  .reset-button {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  #filter-container {
    flex-direction: column;
  }

  .reset-button {
    width: 100%;
  }
}

/* Neobrutalism style for the reset button */
#reset-button.reset-button {
  background-color: #f0f0f0;
  border: 2px solid #333;
  box-shadow: 3px 3px 0 #333;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  padding: 10px 20px;
  width: 200px; /* Fixed width */
  transition: all 0.2s ease;
}

#reset-button.reset-button:hover {
  background-color: #e0e0e0;
}

#reset-button.reset-button:active {
  box-shadow: 1px 1px 0 #333;
  transform: translate(2px, 2px);
}

/* Ensure the button is centered */
#filter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive design */
@media screen and (min-width: 601px) {
  #filter-container {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }

  #reset-button.reset-button {
    margin-top: 0;
  }
}

.left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spacing {
  margin-top: 35px;
}

.spacingminor {
  margin-top: 15px;
}
/* sign-up cards */
.neo-card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.neo-card {
  border: 3px solid #000;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  width: 100%;
  max-width: 190px; 
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f0f0f0;
  box-shadow: 8px 8px 0px 0px #000;
}

@media (max-width: 767px) {
  .neo-card {
    max-width: 33%; 
  }
}

.neo-card:hover {
  background-color: #e0e0e0;
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px 0px #000;
}

/* New style for selected card */
.neo-card-selected,
.neo-card-selected:hover {
  background-color: #e0e0e0;
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px 0px #000;
  border-color: #3498db; /* Add a blue border to further highlight selection */
}

/* Ensure the radio button is visible when selected */
.neo-card input[type="radio"]:checked + label {
  font-weight: bold;
  color: #3498db;
}

.neo-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border: 2px solid #000;
}

.neo-card-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 10px;
  color: #000;
}

/* Ensure the cursor changes to a pointer over the entire label */
.neo-card label {
  display: block;
  cursor: pointer;
}

/* Center the entire form within its container */
.neo-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 3px solid #000;
  box-shadow: 8px 8px 0px 0px #000;
  border-radius: 8px;
}

.neo-form-container h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333;
}

.neo-form-container select,
.neo-form-container input[type="text"] {
  border: 2px solid #000;
  padding: 10px;
  border-radius: 4px;
  font-size: 1em;
  width: 100%;
  max-width: 300px;
}

.neo-form-container .submit_button input[type="button"] {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.neo-form-container .submit_button input[type="button"]:hover {
  background-color: #444;
}
/* Center the dropdowns and increase their height */
.neo-form-container select {
  display: block;
  margin: 0 auto; /* Center the dropdowns */
  height: 55px; /* Increase height */
}

.mod_vnum_block select {
  margin-bottom: 15px; /* Add space between stacked dropdowns on mobile */
}

@media (max-width: 767px) {
  .mod_vnum_block select {
    margin-bottom: 15px; /* Add more spacing between stacked dropdowns */
  }
}

.mod_vnum_destination_info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
  width: 100%;
}

.mod_vnum_destination_info select,
.mod_vnum_destination_info input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 2px solid #000;
  border-radius: 4px;
  box-sizing: border-box;
  margin: 10px auto; /* Center the dropdowns and input fields, and add margin for spacing */
  height: 55px; /* Increase height for better visibility */
}

.config-title {
  text-align: center; /* Center the text */
  font-size: 1.3em; /* Increase font size for emphasis */
  color: #333; /* Align with overall style */
  margin: 20px 0 15px 0; /* Add space above and below the title */
}

.phone-input-container {
  margin: 10px auto;
  width: 100%;
  max-width: 300px;
}

.submit_button input[type="submit"].button-more {
  background-color: #3498db !important; /* Ensure blue button */
  border: 2px solid #333;
  border-radius: 8px;
  color: white;
  padding: 15px 30px;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  width: fit-content;
  box-shadow: 5px 5px 0 #333;
  margin: 20px auto; /* Center the button */
}

.submit_button input[type="submit"].button-more:hover {
  background-color: #2980b9 !important;
  box-shadow: 5px 5px 0 #000;
}

.mod_vnum_destination_info .form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mod_vnum_destination_info .form-group label {
  text-align: center;
  width: 100%;
  max-width: 300px;
  font-size: 1.1em;
  color: #333;
  margin-bottom: 5px;
}

.mod_vnum_destination_info .form-group select,
.mod_vnum_destination_info .form-group input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 2px solid #000;
  border-radius: 4px;
  box-sizing: border-box;
  margin: 10px auto;
  height: 55px;
}

/* Center the hyperlink under the input fields */
.field-info {
  margin-top: 10px;
  font-size: 1.3em;
  color: #007bff;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.field-info:hover {
  color: #2980b9;
}

code {
  font-size: 17px;
}

.disabled-dropdown {
  color: #999; /* Lighter text color */
  background-color: #f0f0f0; /* Lighter background color */
}
.config-prompt {
  text-align: center;
  font-style: italic;
  color: #888;
  padding: 20px;
  background-color: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 8px;
  margin: 20px 0;
}

/* Remove magnifying glass icon */
.image-wrapper {
  position: relative;
  display: inline-block;
  cursor: zoom-in; /* This will change the cursor to a magnifying glass on hover */
}

/* Lightbox overlay */
.lightbox-overlay {
  display: none; /* Hide by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
}
/* virtual phone number page */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.country-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background-color: #ffde59;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border: 3px solid #000;
  box-shadow: 5px 5px 0px #000;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.country-button:hover {
  background-color: #ffd700;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px #000;
}

.country-button:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px #000;
}

.country-button .fi {
  margin-right: 10px;
  font-size: 1.5em;
}

.country-button .fi::before {
  display: inline-block;
}

#more-countries-btn {
  grid-column: 1 / -1;
  margin: 20px auto 30px;
  padding: 15px 30px;
  font-size: 18px;
  max-width: 250px;
  width: 100%;
}

.search-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

#country-search {
  width: 100%;
  max-width: 400px;
  padding: 15px 40px 15px 15px;
  font-size: 16px;
  border: 3px solid #000;
  box-shadow: 5px 5px 0px #000;
  transition: all 0.3s ease;
}

#country-search:focus {
  outline: none;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px #000;
}

@media (max-width: 767px) {
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .country-button {
    font-size: 14px;
    padding: 10px;
  }

  #more-countries-btn {
    max-width: 200px;
  }

  #country-search {
    max-width: 80%;
  }
}

.neo-text-block {
  background-color: #f9f9f9;
  border: 3px solid #333;
  box-shadow: 8px 8px 0 #333;
  padding: 30px;
  margin: 30px 0;
  font-family: 'Inter', sans-serif;
  color: #000000ed;
  line-height: 1.6;
}

.neo-text-block p {
  font-size: 1.2em;
  margin-bottom: 20px;
  text-align: left;
}

.neo-text-block p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 600px) {
  .neo-text-block {
    padding: 20px;
    margin: 20px 0;
  }

  .neo-text-block p {
    font-size: 1.2em;
  }
}

.text-section a {
  display: inline-block;
}

.text-section a + br {
  display: none;
}

.text-section a::after {
  content: "\00a0"; /* Non-breaking space */
  font-size: 0; /* Make the space invisible */
  white-space: nowrap;
}

.text-section li,
.text-section p {
  white-space: normal; /* Reset white-space for the container */
}

/* Improve link wrapping behavior for all screen sizes */
.text-section p, .text-section li {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}

.text-section p a, .text-section li a {
  display: inline;
  white-space: normal;
  word-break: keep-all;
  hyphens: none;
}

/* Prevent punctuation from wrapping to new line after links */
.text-section p a + *, .text-section li a + * {
  display: inline;
  white-space: normal;
}

@media screen and (max-width: 600px) {
  .text-section p, .text-section li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
  }
}
/* Neobrutalism style for the main containers */
#coverage-controls .left-column,
#coverage-controls .right-column {
  background-color: #fff;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Style for the headings */
#coverage-controls h2.filter-label,
#coverage-controls #legend-container h4 {
  font-family: 'Assistant', sans-serif;
  font-size: 1.5em;
  font-weight: 600;
  color: #000000ed;
  background-color: #ffde59;
  padding: 10px 15px;
  border: 2px solid #333;
  box-shadow: 3px 3px 0 #333;
  text-align: center;
  width: fit-content;
  margin: 0 auto 15px;
  display: block;
}

/* Style for the dropdown and search input */
#coverage-controls .gridjs-input,
#coverage-controls #countryDropdown,
#coverage-controls #custom-search {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 2px solid #333;
  box-shadow: 3px 3px 0 #333;
  font-size: 16px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#coverage-controls #filter-container,
#coverage-controls #search-container {
  width: 100%;
  max-width: 300px;
  margin-bottom: 15px;
}

/* Add "Or" text between dropdowns and search */
#coverage-controls #filter-container::after {
  content: "Or";
  display: block;
  text-align: center;
  font-weight: 600;
  margin: 5px auto;
  font-size: 1.2em;
  background-color: #ffde59;
  padding: 5px 15px;
  border: 2px solid #333;
  box-shadow: 3px 3px 0 #333;
  width: fit-content;
}

/* Legend container styling */
#legend-container {
  background-color: #ffde59;
  padding: 15px;
  border: 2px solid #333;
  box-shadow: 5px 5px 0 #333;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

#legend-container h4 {
  background-color: #fff !important;
  margin: -30px auto 20px !important;
  width: fit-content !important;
  position: relative;
  z-index: 1;
  font-family: 'Assistant', sans-serif !important;
  font-size: 1.5em !important;
  font-weight: 600 !important;
  color: #000000ed !important;
  padding: 10px 15px !important;
  border: 2px solid #333 !important;
  box-shadow: 3px 3px 0 #333 !important;
  text-align: center !important;
  display: block !important;
}

#legend-container .legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#legend-container .legend-icon {
  margin-right: 10px;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

#legend-container .legend-text {
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 665px) {
  #coverage-controls {
    flex-direction: column;
  }

  #coverage-controls .left-column,
  #coverage-controls .right-column {
    width: 100%;
  }

  #coverage-controls h2.filter-label,
  #coverage-controls #legend-container h4 {
    font-size: 1.3em;
    margin: 0 auto 15px;
    width: auto;
    max-width: 90%;
  }

  #legend-container h4 {
    margin: -25px auto 15px !important;
  }

  #legend-container .legend-text {
    font-size: 1.0em;
  }
}

/* Styling for the search input and its clear button */
#search-container {
  position: relative;
}

#custom-search {
  padding-right: 30px; /* Make room for the larger clear button */
}

/* Target the clear button (cross) */
#custom-search::-webkit-search-cancel-button {
  position: relative;
  right: 10px;  /* Adjust as needed */
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: 
    linear-gradient(45deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 43%,#000 45%,#000 55%,rgba(0,0,0,0) 57%,rgba(0,0,0,0) 100%), 
    linear-gradient(135deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 43%,#000 45%,#000 55%,rgba(0,0,0,0) 57%,rgba(0,0,0,0) 100%);
  cursor: pointer;
}

/* Hover effect */
#custom-search::-webkit-search-cancel-button:hover {
  background: 
    linear-gradient(45deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 43%,#333 45%,#333 55%,rgba(0,0,0,0) 57%,rgba(0,0,0,0) 100%), 
    linear-gradient(135deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 43%,#333 45%,#333 55%,rgba(0,0,0,0) 57%,rgba(0,0,0,0) 100%);
}

.coverage-grid th:nth-child(2) .gridjs-sort,
.coverage-grid th:nth-child(3) .gridjs-sort {
    display: none !important;
}

.gridjs-td, .gridjs-th {
  vertical-align: middle;
  text-align: center;
}

@media screen and (min-width: 601px) {
  .gridjs-th[data-column-id="prefix"],
  .gridjs-td[data-column-id="prefix"] {
    width: 190px !important;
    min-width: 90px !important;
    padding: 8px 10px;
  }

  .gridjs-td {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    padding: 10px;
  }

  .gridjs-table {
    table-layout: fixed;
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .gridjs-td {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    padding: 8px 5px;
  }

  .gridjs-th[data-column-id="prefix"],
  .gridjs-td[data-column-id="prefix"] {
    width: 90px !important;
    min-width: 90px !important;
    padding: 8px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gridjs-th:not([data-column-id="prefix"]),
  .gridjs-td:not([data-column-id="prefix"]) {
    width: auto !important;
  }

  .gridjs-table {
    table-layout: fixed;
    width: 100%;
  }

  .gridjs-wrapper {
    overflow-x: auto;
  }
}

/* Use Case Section Styles */


.use-case-title {
  font-family: 'Assistant', sans-serif;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  color: #000;
}

.use-case-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.use-case-card {
  border: 3px solid #000;
  border-radius: 8px;
  padding: 20px;
  background-color: #f0f0f0;
  box-shadow: 5px 5px 0px 0px #000;
}


.use-case-card p {
  font-family: 'Inter', sans-serif;
  font-size: 1.2em;
  color: #333;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .use-case-card {
    padding: 15px;
  }
  .use-case-title {
    font-size: 1.1em;
  }
  
}


/* Grid Containers */
.region-grid,
.city-grid,
.special-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

/* Buttons */
.region-button,
.city-button,
.special-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background-color: #ffde59;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border: 3px solid #000;
  box-shadow: 5px 5px 0px #000;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.region-button:hover,
.city-button:hover,
.special-button:hover {
  background-color: #ffd700;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px #000;
}

.region-button:active,
.city-button:active,
.special-button:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px #000;
}

/* More Buttons */
#more-regions-btn,
#more-cities-btn {
  grid-column: 1 / -1;
  margin: 20px auto 30px;
  padding: 15px 30px;
  font-size: 18px;
  max-width: 250px;
  width: 100%;
}

/* Search Containers */
.search-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

/* Search Inputs */
#region-search,
#city-search {
  width: 100%;
  max-width: 400px;
  padding: 15px 40px 15px 15px;
  font-size: 16px;
  border: 3px solid #000;
  box-shadow: 5px 5px 0px #000;
  transition: all 0.3s ease;
}

#region-search:focus,
#city-search:focus {
  outline: none;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px #000;
}

/* Responsive Styles */
@media (max-width: 767px) {
  .region-grid,
  .city-grid,
  .special-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .region-button,
  .city-button,
  .special-button {
    font-size: 17px;
    padding: 10px;
  }

  #more-regions-btn,
  #more-cities-btn {
    max-width: 200px;
  }

  #region-search,
  #city-search {
    max-width: 80%;
  }
}

/* WebP image centering styles */
.image-section picture {
  display: block;
  width: 100%;
  text-align: center;
}

.image-section picture img {
  margin: 0 auto;
  display: block;
  max-width: 70%;
}

/* Override social media icon styles */
.social-media-list .svg-icon {
  width: 33px !important;
  height: 33px !important;
  display: inline-block !important;
  fill: #373333 !important;
  padding-right: 0px !important;
  padding-top: 9px !important;
  vertical-align: text-top !important;
}

/* Phone number error styling */
.error-message-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  height: 0;
  overflow: hidden;
}

#phone_number_error, #city_error, #forwarding_error, #voip_error, #itsp_error {
  color: #e74c3c;
  font-weight: bold;
  text-align: center;
  width: 100%;  /* Full width */
  margin: 0 auto;
  border-radius: 5px;
  transition: all 0.3s ease;
  min-height: 20px;
  font-size: 1.1em;  /* Larger font */
  display: block;
  padding: 10px;
}

#phone_number_error:not(:empty), #city_error:not(:empty), #forwarding_error:not(:empty), #voip_error:not(:empty), #itsp_error:not(:empty) {
  background-color: #fdecea;
  border: 3px solid #e74c3c;
  margin: 8px auto;
  box-shadow: 3px 3px 0 #333;  /* Match your site's styling */
  animation: flash 0.5s ease-in-out;
}

/* Show container when error message exists */
.error-message-container:has(> div:not(:empty)),
.error-message-container.has-error {
  height: auto;
  min-height: 20px;
  margin: 10px 0;
  overflow: visible;
}

/* More noticeable animation */
@keyframes flash {
  0%, 100% { background-color: #fdecea; }
  50% { background-color: #f8c2bd; }
}

.phone-input:invalid {
  border: 2px solid #e74c3c !important;
}
