#all_benefit_listing {
  display: flex;
  flex-wrap: wrap;       /* allow items to wrap into rows */
  gap: 15px;             /* spacing between partner boxes */
}

/* Partner box styling */
#all_benefit_listing .partner {
  flex: 1 1 calc(32% - 20px);  /* 3 columns on desktop */
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  position: relative;  
}
@media (min-width: 1024px) {
#all_benefit_listing {
 padding-left: 10px !important;            /* spacing between partner boxes */
}
}
@media (min-width: 768px) {
	#all_benefit_listing .partner {
		max-width: 32.3%;
	}
}

/* Responsive: On mobile (max 768px) -> 1 column */
@media (max-width: 768px) {
  #all_benefit_listing .partner {
    flex: 1 1 100%;  /* full width */
  }
}
div.text_input {
  float: left;
  margin: 0 10px 0 15px;
  display: inline-block;
}
div.search_button input {
  width: 10em;
  height: 3em;
  background: #163e58;
  border: none;
  color: white;
  display: inline-block;
}
select.category_search_deopdown {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  outline: 0;
  box-shadow: none;
  border: 0 !important;
  background: white !important;
  background-image: none;
}
/* Remove IE arrow */
select.category_search_deopdown::-ms-expand {
  display: none;
}
/* Custom Select */
div.text_input input {
  height: 3em;
  line-height: 3;
  border: 1px solid grey;
  width: 16em;
  padding-left: 10px;
}
.select {
  float: left;
  display: flex;
  width: 15em;
  height: 3em;
  line-height: 3;
  background: #2c3e50;
  overflow: hidden;
  border: 1px solid grey;
  position: relative;
}
select.category_search_deopdown {
  flex: 1;
  padding: 0 0.5em;
  color: black;
  cursor: pointer;
}
/* Arrow */
.select::after {
  content: "\25BC";
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 1em;
  background: #444444;
  color: #847a7a;
  cursor: pointer;
  pointer-events: none;
  -webkit-transition: 0.25s all ease;
  -o-transition: 0.25s all ease;
  transition: 0.25s all ease;
}
#benefits-page #page-content {
  width: 100%;
}
@media (min-width: 767px) {
  body #benefits-page .featured-partners .partner {
    width: 25% !important;
  }
}
.holder {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  width: 18rem !important;
}
.holder a {
  font-size: 12px;
  cursor: pointer;
  margin: 0 5px;
  color: #195184 !important;
}
.holder a:hover {
  background-color: #222;
  color: #fff;
}
.holder a.jp-previous {
  margin-right: 15px;
}
.holder a.jp-next {
  margin-left: 15px;
}
.holder a.jp-current,
a.jp-current:hover {
  color: #ff4242 !important;
  font-weight: bold;
}
.holder a.jp-disabled,
a.jp-disabled:hover {
  color: #bbb;
}
.holder a.jp-current,
a.jp-current:hover,
.holder a.jp-disabled,
a.jp-disabled:hover {
  cursor: default;
  background: none;
}
.holder span {
  margin: 0 5px;
}
.featured-partners {
  text-align: center;
}
form {
  /*float:right;*/
  margin-right: 10px;
}
form label {
  margin-right: 5px;
}
div#all_benefit_listing {
  min-height: auto !important;
}
/*pagination style */
.pagination {
  display: inline-block;
}

.holder a {
  color: black;
  margin: 0px;
  padding: 8px;
  text-decoration: none;
  border: 1px solid #ddd;
}

.holder a.active {
  background-color: #4caf50;
  color: white;
  border: 1px solid #4caf50;
}

.holder a:hover:not(.active) {
  background-color: #ddd;
}

.holder a:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  margin: 0px;
}

.holder a:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  margin: 0px;
}
div#all_benefit_listing {
  border: none !important;
  background: none !important;
}

.overlay {
  position: absolute;
  top: 70px;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  background-color: #e1e1e1;
}
.text input {
  color: white;
  border: none;
  padding: 8px 8px 8px 8px;
}
#partner-new:hover .overlay {
  opacity: 1;
}
#partner-new:hover {
  background-color: #e1e1e1;
}
#partner-new img {
  cursor: pointer;
}

.text {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.benefits-single {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.summary-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Media Queries */
@media only screen and (max-width: 600px) {
  /* Login Logo */
  div.login-logo img {
    width: 200px !important;
  }

  #benefits-page #page-content {
    padding: 0;
  }

  #benefits-login-bar #login {
    margin: 0;
  }

  .summary-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* New style added */
div#partner-new {
  /*background-color:#e1e1e1 !important;*/
  border: 1px solid #e1e1e1;
}
@media (min-width: 767px) {
  body #benefits-page .featured-partners.all_benefit_listing #partner-new {
    /* width: 32%; */
    width: 32.12% !important;
  }
  body
    #benefits-page.vendors-page
    .featured-partners.all_benefit_listing
    #partner-new {
    width: 24% !important;
  }
  body #benefits-page .featured-partners.all_benefit_listing #partner-new {
	  margin-left: 0px !important;
  }
}
body #benefits-page .featured-partners.all_benefit_listing #partner-new {
  padding: 15px;
  margin-bottom: 0px;
  height: 182px;
}
@media all and (max-width: 1024px) {
  body #benefits-page .featured-partners.all_benefit_listing #partner-new {
    height: 200px !important;
  }
}
#benefits-page .featured-partners #partner-new .content .title {
  font-weight: bold;
}
#benefits-page .featured-partners #partner-new .content .summary {
  font-weight: normal !important;
}
@media all and (max-width: 767px) and (min-width: 480px) {
  body #benefits-page .featured-partners.all_benefit_listing #partner-new {
    width: 45% !important;
  }
}
div.serch_bar {
  background-color: #e1e1e1;
  padding: 20px 0 20px 0;
}
div.search_inner_div {
  margin: auto;
  width: 700px;
}
@media (min-width: 481px) and (max-width: 767px) {
  div.search_inner_div,
  div.search_inner_div div.select,
  div.search_inner_div div.text_input,
  div.search_inner_div div.search_button,
  div.search_inner_div div.search_button input,
  div.search_inner_div div.text_input input {
    width: 100%;
  }
  div.search_inner_div div.text_input {
    margin: 0px !important;
  }
  div.search_inner_div {
    margin-left: 5px;
  }
  div.search_inner_div div.select,
  div.search_inner_div div.text_input,
  div.search_inner_div div.search_button {
    margin: 0 0 5px 0 !important;
  }
}

@media all and (max-width: 767px) {
  div.search_inner_div {
    width: 100%;
  }
  form.search_tag_form {
    margin-right: 0px;
  }
  form.search_tag_form > div {
    width: 80%;
    margin: 0 auto;
    margin-bottom: 10px;
    float: none;
  }
  form.search_tag_form div.text_input input {
    width: 100%;
  }
  form.search_tag_form div.search_button input {
    width: 100%;
  }
}
.all_vendor_listing ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none; /* Ensures no default list styles */
  gap: 16px; /* Adjust the gap between items as needed */
  align-items: center;
}

.all_vendor_listing li {
  flex: 1 1 calc(25% - 16px); /* 4 columns for laptop */
  padding: 15px; /* Add padding as needed */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.all_vendor_listing li img {
  max-width: 250px;
  max-height: 100%;
  display: block;
  object-fit: contain; /* Ensures the image fits within the container without being stretched */
}

@media (max-width: 1024px) {
  .all_vendor_listing li {
    flex: 1 1 calc(50% - 16px); /* 2 columns for tablet */
  }
}

@media (max-width: 768px) {
  .all_vendor_listing li {
    flex: 1 1 100%; /* 1 column for mobile */
  }
}

@media (max-width: 768px) and (min-width: 480px) {
  .all_vendor_listing li {
    flex: Adjusted;
  }
}

/*#vendors-new img{ cursor:pointer;}*/
div#vendors-new {
  /*background-color:#e1e1e1 !important;*/
  border: 1px solid #e1e1e1;
}
#vendors-new:hover .overlay {
  opacity: 1;
}
#vendors-new:hover {
  background-color: #e1e1e1;
}
#vendors-new img {
  cursor: pointer;
}

@media (min-width: 767px) {
  body #benefits-page .featured-partners.all_benefit_listing #vendors-new {
    /* width: 32%; */
    width: 24% !important;
  }
}

body #benefits-page .featured-partners.all_benefit_listing #vendors-new {
  margin-right: 10px !important;
  padding: 15px;
  margin-bottom: 10px;
  height: 192px;
}
@media all and (max-width: 1024px) {
  body #benefits-page .featured-partners.all_benefit_listing #vendors-new {
    height: 200px !important;
  }
}
#benefits-page .featured-partners #vendors-new .content .title {
  font-weight: bold;
}
#benefits-page .featured-partners #vendors-new .content .summary {
  font-weight: normal !important;
  line-height: 20px;
}

@media all and (max-width: 767px) and (min-width: 480px) {
  body #benefits-page .featured-partners.all_benefit_listing #vendors-new {
    width: 45% !important;
  }
}
.vendors-page-list a {
  text-decoration: none !important;
}

/* Hero Banner Section with Featured Cards */
.hero-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  margin-bottom: 0;
}

.banner-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

/* Banner text and button removed - image only */

/* Banner Image Styles */
.banner-image {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
}

/* Benefits Page Content */
.benefits-page {
  margin: -60px 0 -45px 0; /* 20% overlap with 300px banner height */
  position: relative;
  z-index: 5;
  padding: 2rem 0 0 0;
  min-height: auto;
}

.featured-benefits {
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

/* Simple 3-Card Grid - Aligned with Featured Partners */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
  min-height: auto;
  max-width: 1160px;
  margin: 0 auto;
}

/* Skeleton loading removed - not needed for static cards */

/* Content Cards */
.featured-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
  border: none;
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

/* Simple static cards - no animation states needed */

/* No images needed for simple text blocks */

.featured-card .card-content {
  padding: 1.5rem;
  text-align: left;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card .card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.3;
}

.featured-card .card-content p {
  color: #666;
  line-height: 1.4;
  font-size: 0.85rem;
  margin: 0;
}

/* Tertiary CTA link (matches savify-core style) */
.cta-btn {
  /* margin-top: 0.5rem; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  color: #163e58;
}

/* Light button variant to match cards */
.cta-btn.light {
  background: #01a2ca;
  color: #ffffff !important;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Right-align inside cards */
.featured-card .card-content::after {
  content: "";
  display: table;
  clear: both;
}

.featured-card .card-content .cta-btn {
  float: left;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Hover Effects for Featured Cards */
.featured-card:hover .card-content {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-card:hover {
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .benefits-page {
    margin-top: -60px; /* 20% overlap with ~300px tablet banner height */
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
    min-height: auto;
    max-width: 1000px;
  }

  .featured-card {
    height: auto;
  }

  .featured-card .card-content {
    margin: 0 0.25rem;
    padding: 1rem;
  }

  /* Card image removed - no images needed */

  /* Skeleton removed for static cards */
}

@media (max-width: 768px) {
  .hero-banner {
    height: 250px;
  }

  /* Banner text and button removed - image only */

  .benefits-page {
    margin-top: -50px; /* 20% overlap with 250px mobile banner height */
  }

  /* Search form responsive adjustments */
  .search-container {
    float: none !important;
    display: block !important;
    margin: 10px 0;
  }

  .search_tag_form {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .search_tag_form > div {
    width: 100% !important;
    margin: 0 !important;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1rem;
    min-height: auto;
    max-width: 100%;
  }

  .featured-card {
    height: auto;
  }

  .featured-card .card-content {
    margin: 0 0.5rem;
    padding: 1rem;
  }

  /* Card image removed - no images needed */

  /* Skeleton removed for static cards */
}

@media (max-width: 480px) {
  .hero-banner {
    height: 200px;
  }

  .benefits-page {
    margin-top: -40px; /* 20% overlap with ~200px extra small mobile banner height */
  }

  /* Banner text and button removed - image only */

  .featured-grid {
    padding: 0;
    gap: 0.75rem;
    min-height: auto;
    max-width: 100%;
  }

  .featured-card {
    height: auto;
  }

  .featured-card .card-content {
    margin: 0 0.25rem;
    padding: 0.75rem;
  }

  .featured-card .card-content h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .featured-card .card-content p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  /* Skeleton removed for static cards */
}

@media (min-width: 1067px) {
  .container-benefits {
    max-width: 1160px;
	margin: 0 auto;
  }
}