/* ==========================================================================
   Global Variables & Base Styles
   ========================================================================== */

   :root {
    /* Colors */
    --custom-primary-color: #1ebea0;
    --custom-primary-hover-color: #4addc1;
    --custom-secondary-background: #f5f5f5;
    --custom-dark-background: #2a2a32;
    --custom-text-color: #48494e;
    --custom-white-color: #fff;
    --custom-black-color: #000;
    --custom-border-color: #dfe2e6;
    --custom-notice-background: #fff9aa;
    --custom-notice-border-color: #ffee6a;
    --custom-contact-background: #fff4e5;
    --custom-content-box-background: #E7F3F0;
  
    /* Typography */
    --custom-font-primary: "Inter", sans-serif;
  
    /* Borders & Spacing */
    --custom-border-radius-small: 4px;
    --custom-border-radius-medium: 10px;
    --custom-border-radius-large: 12px;
    --custom-border-radius-xl: 21px;
    --custom-gap-distance: 20px;
  }
  
  body.custom_new {
    font-family: var(--custom-font-primary);
  }
  
  .custom_new .post-content {
    padding: 2% 5%;
  }
  
  /* Generic element styling within post-content */
  .post-content .partners li,
  .post-content ul.partners {
    padding: 0;
  }
  
  /* Remove default underline from links in specific containers */
  .partners a[href^="http://"]:after,
  .partners a[href^="https://"]:after {
    content: none;
  }
  
  /* ==========================================================================
     Partner Cards Component
     ========================================================================== */
  
  .partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--custom-gap-distance);
  }
  
  .partners .partnerCard {
    animation: Bb 0.8s forwards;
    border: 1px solid var(--custom-border-color);
    border-radius: var(--custom-border-radius-small);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
    flex: 1 1 calc(33.333% - var(--custom-gap-distance));
    max-width: calc(33.333% - var(--custom-gap-distance));
    overflow: hidden;
  }
  
  .partners .partnerCard:hover,
  .partners .partnerCard:focus {
    box-shadow: 0 3px 8px 0 rgb(0 0 0 / 0.04),
                0 20px 40px 0 rgb(0 0 0 / 0.08);
  }
  
  .partners .partnerCard-link {
    text-decoration: none;
  }
  
  .partners .partnerCard .logoWrapper {
    background-color: var(--custom-dark-background);
    background-position: 50%, 50%;
    background-size: cover;
    height: 182px;
    position: relative;
    border-top-left-radius: 3px; /* Kept specific for top corners */
    border-top-right-radius: 3px;
    flex-shrink: 0;
  }
  
  .partners .partnerCard .logoWrapper img {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    flex-shrink: 0;
  }
  
  .partners .partnerCard .logo {
    color: var(--custom-white-color);
    display: block;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }
  
  .partners .partnerCard .logo svg {
    height: auto;
    width: 100%;
  }
  
  .partners .partnerCard .logo svg path,
  .partners .partnerCard .logo svg rect {
    fill: var(--custom-white-color);
  }
  
  .partners .partnerCard-content {
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
  }
  
  .partners .partnerCard-description {
    overflow: hidden;
  }
  
  .partners .partnerCard-icon {
    display: inline-block;
    float: left;
    margin-right: 5px;
    max-width: 60px;
  }
  
  /* Partner Cards Media Queries */
  @media (max-width: 1024px) {
    .partners .partnerCard {
      flex: 1 1 calc(50% - var(--custom-gap-distance));
      max-width: calc(50% - var(--custom-gap-distance));
    }
  }
  
  @media (max-width: 600px) {
    .partners .partnerCard {
      flex: 1 1 100%;
      max-width: 100%;
    }
  }
  
  @media (min-width: 768px) {
    .partners .partnerCard-content {
      flex-direction: row;
    }
  }
  
  
  /* ==========================================================================
     Custom "New" Layout Section (`.custom_new`)
     ========================================================================== */
  
  .custom_new .new_title h1 {
    font-size: 11vw;
    line-height: 1.1;
    padding-bottom: 2%;
    padding-top: 5%;
    text-align: center;
    text-transform: capitalize;
  }
  
  .custom_new .subheader {
    display: block;
    margin: auto;
    max-width: 900px;
    text-align: center;
  }
  
  .custom_new .cst_cards_3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--custom-gap-distance);
    margin: 10px auto;
  }
  
  .custom_new .cst_card {
    background: var(--custom-secondary-background);
    border-radius: var(--custom-border-radius-medium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 10%;
  }
  
  .custom_new .cst_card.alt-sidebar {
    align-items: center;
    margin-bottom: 11%;
  }
  
  .custom_new .cst_card_image {
    height: 140px;
    margin-top: 10px;
  }
  
  .custom_new .cst_card_image img {
    filter: opacity(0.7);
    max-height: 100%;
  }
  
  .custom_new .cst_card_title {
    font-size: 1.5rem;
    font-weight: 900;
    padding: 5% 5% 2%;
    text-align: center;
  }
  
  .custom_new .cst_card_desc {
    color: var(--custom-text-color);
    flex-grow: 1;
    font-size: 1rem;
    padding: 0 10% 5%;
    text-align: center;
  }
  
  .custom_new .cst_card_button {
    background: var(--custom-primary-color);
    border-radius: var(--custom-border-radius-large);
    color: var(--custom-white-color);
    display: block;
    margin: auto;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
    width: 75%;
  }
  
  .custom_new .cst_card_button:hover {
    background: var(--custom-primary-hover-color);
  }
  
  /* "New" Layout Media Queries */
  @media (min-width: 768px) {
    .custom_new .cst_cards_3 {
      grid-template-columns: repeat(2, 1fr);
    }
    .custom_new .new_title h1 {
      font-size: 7.5vw;
    }
  }
  
  @media (min-width: 1700px) {
    .custom_new .cst_cards_3 {
      grid-template-columns: repeat(3, 1fr);
    }
    .custom_new .new_title h1 {
      font-size: 5.5vw;
    }
  }
  
  @media (min-width: 2250px) {
    .custom_new .cst_cards_3 {
      grid-template-columns: repeat(5, 1fr);
    }
    .custom_new .new_title h1 {
      font-size: 3.5vw;
    }
  }
  
  /* ==========================================================================
     Content Grids & Cards
     ========================================================================== */
  
  .grid_container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--custom-gap-distance);
  }
  
  .content_card {
    background: var(--custom-secondary-background);
    border-radius: var(--custom-border-radius-large);
    display: inline-flex;
    padding: 2% 6%;
    width: 100%;
  }
  
  .content_card p {
    margin: 2%;
  }
  
  p.content_title {
    font-size: 5vw;
    font-weight: bold;
  }
  
  /* Content Grids & Cards Media Queries */
  @media (min-width: 768px) {
    .content_card {
      width: calc(50% - var(--custom-gap-distance));
    }
    p.content_title {
      font-size: 1vw;
    }
  }
  
  /* ==========================================================================
     Utility & Miscellaneous Components
     ========================================================================== */
  
  /* Notice Banner */
  .custom_new #notice-banner {
    align-items: center;
    background: var(--custom-notice-background);
    border: 1px solid var(--custom-notice-border-color);
    border-radius: var(--custom-border-radius-large);
    display: flex;
    flex-direction: column;
    margin-bottom: 3%;
    padding: 4% 6%;
  }
  
  .custom_new .pop-text {
    font-size: 3vw;
    font-weight: bold;
    text-align: center;
  }
  
  .custom_new .lay_feedback {
    background: var(--custom-white-color);
    border: 2px solid var(--custom-black-color);
    border-radius: var(--custom-border-radius-medium);
    color: var(--custom-black-color);
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-top: 10px;
    padding: 3px 13px;
    transition: background 0.2s, color 0.2s;
  }
  
  .custom_new .lay_feedback:hover {
    background: var(--custom-black-color);
    color: var(--custom-white-color);
  }
  
  @media (min-width: 768px) {
    .custom_new #notice-banner {
      padding: 1% 3%;
    }
  }
  
  /* Side Contact Box */
  .custom_new .side_contact {
    background: var(--custom-primary-color);
    border-radius: var(--custom-border-radius-small);
    margin-bottom: 10px;
    text-align: center;
  }
  
  .custom_new .side_contact a {
    color: var(--custom-white-color);
    display: inline-block;
    font-weight: bold;
    padding: 10px;
    text-decoration: none;
    width: 100%;
  }
  
  /* Content Box & Indent */
  .content_box {
    background: var(--custom-content-box-background);
    border-radius: var(--custom-border-radius-xl);
    padding: 2% 4%;
  }
  
  .content_box h2 {
    margin: 1% 0;
  }
  
  .content_indent {
    padding-left: 5%;
  }
  
  /* Flex Icon Container */
  .fl_cont {
    background: #e7f7ff;
    display: flex;
    margin-bottom: 1%;
    padding: 1%;
    width: auto;
    color: #093145;
  }
  
  .fl_cont .fl_icon {
    margin-right: 1%;
  }
  
  /* Code Blocks */
  p code,
  ul code,
  li code {
    background: var(--custom-secondary-background);
    border-radius: var(--custom-border-radius-medium);
    padding: 4px 13px;
    line-height: 2em;
  }
  
  /* Reset background for highlighted code blocks */
  .highlight code,
  .code-header code {
    background: none;
    padding: 0;
    border-radius: 0;
  }
  
  /* Contact Us Box */
  .cont_us {
    background: var(--custom-secondary-background);
    border-radius: var(--custom-border-radius-medium);
    margin-bottom: 1%;
    padding: 30px;
    text-align: center;
  }
  
  p.cont_title {
    font-size: 1vw;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
  }
  
  p.cont_subtext {
    margin: 0;
  }
  
  .cont_us button {
    background: var(--custom-primary-color);
    border: none;
    border-radius: var(--custom-border-radius-large);
    color: var(--custom-white-color);
    cursor: pointer;
    display: block;
    font-weight: bold;
    margin: 1% auto;
    padding: 1% 3%;
    text-align: center;
    text-decoration: none;
    text-transform: capitalize;
    transition: background 0.3s ease;
  }
  
  .cont_us button:hover {
    background: var(--custom-primary-hover-color);
  }

  .community-hero {
    background: #011427;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--custom-border-radius-large);
    margin-bottom: 2rem;
    font-family: sans-serif;
    color: #fff;
  }
  
  .community-hero .header-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    margin-top:0;
    font-weight:bold;
  }
  
  .community-hero p {
    color: #fff;
  }
  
  .hero-cta {
    display: inline-block;
    margin-top: 1rem;
    background: linear-gradient(291deg, rgba(236, 0, 140, 1) 0%, rgba(0, 174, 240, 1) 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
  }

/* ==========================================================================
   Responsive Layout Media Queries (Using Official Breakpoints)
   ========================================================================== */

/* xs-phone (≤360px) */
@media (max-width: 360px) {
  .partners .partnerCard {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* s-phone (≤375px) */
@media (max-width: 375px) {
  .custom_new .new_title h1 {
    font-size: 13vw;
  }
}

/* iphone (≤414px) */
@media (max-width: 414px) {
  .custom_new .new_title h1 {
    font-size: 12vw;
  }

  .custom_new .cst_card_title {
    font-size: 1.3rem;
  }

  .custom_new .pop-text {
    font-size: 4vw;
  }
}

/* tablet-small (≤600px) */
@media (max-width: 600px) {
  .partners .partnerCard {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* tablet (≥768px) */
@media (min-width: 768px) {
  .partners .partnerCard-content {
    flex-direction: row;
  }

  .custom_new .cst_cards_3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom_new .new_title h1 {
    font-size: 7.5vw;
  }

  .custom_new #notice-banner {
    padding: 1% 3%;
  }

  .content_card {
    width: calc(50% - var(--custom-gap-distance));
  }

  p.content_title {
    font-size: 1vw;
  }
}

/* tablet-large (≥992px) */
@media (min-width: 992px) {
  .custom_new .cst_card_desc {
    font-size: 1.1rem;
  }
}

/* desktop (≤1024px) */
@media (max-width: 1024px) {
  .partners .partnerCard {
    flex: 1 1 calc(50% - var(--custom-gap-distance));
    max-width: calc(50% - var(--custom-gap-distance));
  }
}

/* laptop (≥1280px) */
@media (min-width: 1280px) {
  .custom_new .cst_cards_3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .custom_new .new_title h1 {
    font-size: 5.5vw;
  }
}

/* widescreen (≥1440px) */
@media (min-width: 1440px) {
  .custom_new .cst_card_desc {
    font-size: 1.15rem;
  }

  .content_card {
    padding: 2% 8%;
  }
}

/* extra-large screens (≥1700px) */
@media (min-width: 1700px) {
  .custom_new .cst_cards_3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .custom_new .new_title h1 {
    font-size: 5.5vw;
  }
}

/* ultra-wide (≥2250px) */
@media (min-width: 2250px) {
  .custom_new .cst_cards_3 {
    grid-template-columns: repeat(5, 1fr);
  }

  .custom_new .new_title h1 {
    font-size: 3.5vw;
  }
}

.page-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  height: calc(100vh - 4rem);
  overflow-y: auto;
}

.content-area {
  flex-grow: 1;
}

/* Hide Mobile Toggle on Desktop */
.mobile-filter-toggle {
  display: none;
}

/* --- Search Input Styles --- */
.search-container {
  margin-bottom: 1.5rem;
}
.search-container input[type="search"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

/* --- Accordion Filter Styles --- */
.filters-container {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
}

.filter-group .accordion-header {
  width: 100%;
  background-color: #f9fafb;
  border: none;
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-group:first-child .accordion-header {
border-top: none;
}

.filter-group .accordion-header::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: bold;
  color: #9ca3af;
}

.filter-group .accordion-header.active::after {
  content: '−';
}

.filter-group .accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: white;
  padding: 0 1rem;
}

.accordion-panel-content {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.accordion-panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  cursor: pointer;
}

.accordion-panel input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

/* --- Card & Modal Styles --- */
.cards {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(24%, 24%));
 gap: 0 1%;
}

@media (max-width: 2339px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(32%, 32%));
   }
}


@media (max-width: 1900px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(49%, 49%));
   }
}

@media (max-width: 1600px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(99%, 99%));
    gap:0;
   }
}

#featuredContainer ~ .cards {
margin-top:2%;
}

.card {
 background-color: white;
 border-radius: 0.75rem;
 box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
 padding: 1.5rem;
 width: 100%;
 display: flex;
 flex-direction: column;
}

.modal {
  z-index: 100;
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Prevent scrolling of the main page */
}

.modal-content {
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  max-height: 75%; /* Limit modal height */
  overflow-y: auto; /* Enable scrolling within the modal */
  overflow-x:hidden;
}

.modal-content img {
  margin-top: 10%;
}

.ven-data {
  display: flex;
}

.ven-col.image {
  width: 33%;
}

.ven-col.data {
  padding: 0 10px;
  width:66%;
}

.card .logo {
 width: 100%;
 object-fit: contain;
 border-radius: 0.5rem;
 margin-bottom: 1rem;
 aspect-ratio: 1 / 1;
}

.card .ven-short-desc {
  font-size: 14px;
}

.card h3 {
 font-size: 1.25rem;
 font-weight: 600;
 color: #111827;
 text-transform: capitalize;
 margin-top:0;
}

.tag {
 display: inline-block;
 padding: 0.25rem 0.75rem;
 border-radius: 9999px;
 font-size: 0.75rem;
 font-weight: 500;
 margin-right: 0.5rem;
 margin-bottom: 0.5rem;
 background-color: #e5e7eb;
 color: #374151;
}

.tag.eco, .tag.acp, .tag.community { background-color: #d1fae5; color: #065f46; }
.tag.comm { background-color: #e6f4fe; color: #0090ff; text-transform:uppercase; }

.author-info {
 margin-top: auto;
 padding-top: 1rem;
 border-top: 1px solid #f3f4f6;
}

.author_name { font-size: 0.875rem; color: #6b7280; }

/* .modal { z-index:100; display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; overflow-y: auto; /* Enable vertical scrolling } */
/* .modal-content { margin: 2rem auto; padding: 2rem; background: white; border-radius: 12px; max-width: 500px; width: 90%; position: relative; } */

.modal-content h2 { text-transform: capitalize; }
.modal-content .close {
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  width: 100%;
  display: block;
  text-align: right;
  position:sticky;
  top:0;
}
.doc-links a { display: block; margin-top: 0.5rem; color: #007bff; }
#modalNotice {
  background: #f1f1f1;
  border-radius: 10px;
  color: #434343;
  padding: 1rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

p.vendor_notice {
  font-size: 12px;
}

/* --- MOBILE STYLES --- */
@media (max-width: 992px) {
  .page-layout {
      flex-direction: column;
  }

  .filters-sidebar {
      position: static;
      width: 100%;
      height: auto;
      overflow-y: visible;
      margin-bottom: 2rem;
  }

  .mobile-filter-toggle {
      display: block;
      width: 100%;
      padding: 0.75rem 1rem;
      font-size: 1rem;
      font-weight: 600;
      color: #fff;
      background-color: #007bff;
      border: none;
      border-radius: 0.5rem;
      cursor: pointer;
      margin-bottom: 1rem;
  }

  .mobile-filter-panel {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s ease-in-out;
  }

  .mobile-filter-toggle.active + .mobile-filter-panel {
      max-height: 1000px;
  }
}


hr {
  margin: 4% auto 5%;
  width: 100%;
  border: 1px solid #f5f5f5;
}

.spryker_tp_partner {
  font-size: 0.875rem;
  border: 2px solid var(--custom-primary-color);
  font-weight: bold;
  text-align: center;
  color: var(--custom-primary-color);
  border-radius: 30px;
  margin-top: 10px;
}

img#modalLogo {
  max-height: 100px;
}

a.cat_article_link, a.cat_docs_link
 {
    background: var(--custom-primary-color);
    color: white;
    padding: 1.5% 3%;
    border-radius: 10px;
    display: block;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    text-transform:capitalize;
}

a.cat_docs_link:after, .cat_article_link:after {
  display: none;
}