/* PAGE WRAPPER TWEAKS */
.page-template-template-knowledge-hub #page-content { overflow: hidden; }

/* Hero */
.kh_hero{max-width:calc(1240px + 200px);margin:0 auto;display:flex;flex-direction:column;width:100%;padding:0 100px;padding-top:63px;margin-bottom:0}
.kh_hero_inner{display:flex;flex-direction:column;gap:0 20px}
.kh_hero_heading{grid-column:span 12;color:#4B08A1;font-family:Poppins;font-size:48px;font-weight:700;line-height:150%;letter-spacing:-.528px;margin-bottom:0}
.kh_hero_hyperlinks{grid-column:span 12;display:flex;padding:19px 0 27px;align-items:center;align-content:center;gap:10px;flex-wrap:wrap;margin-top:36px;border-top:1px solid #00AFFE}
.kh_hero_hyperlink{display:flex;padding:6px 14px;justify-content:center;align-items:center;gap:10px;border-radius:50px;border:1px solid #4B08A1;color:#4B08A1;text-align:center;font-family:Poppins;font-size:14px;font-weight:500;line-height:150%;letter-spacing:-.154px;text-decoration:none;transition:background .3s ease,color .3s ease}
.kh_hero_hyperlink:hover,.kh_hero_hyperlink.active{background:#4B08A1;color:#fff}
.kh_hero_hyperlink_close{display:none;opacity:0;transition:opacity .45s ease}
.kh_hero_hyperlink.active .kh_hero_hyperlink_close{display:block;opacity:1}
@media (max-width:767px){
  .kh_hero{padding:0 25px;padding-top:40px;margin-bottom:23px}
  .kh_hero_hyperlinks{display:none}
  .kh_hero_heading{font-size:28px}
}

/* Grid / Technical Insights styles kept as-is */
.kh_technical-insights{display:flex;flex-direction:column;width:100%;padding:0}
.kh_technical-insights_top{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;max-width:calc(1240px + 200px);margin:0 auto;width:100%;padding:0 100px;position:relative;margin-bottom:20px}
.kh_technical-insights_top_inner{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;width:100%;border-top:1px solid #00AFFE;padding-top:13px}
.kh_technical-insights_heading_wrapper{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px}
.kh_technical-insights_heading_line{width:4px;height:20px;background:#00AFFE}
.kh_technical-insights_heading{color:#4B08A1;font-family:Poppins;font-size:24px;font-weight:700;line-height:150%;letter-spacing:-.264px;margin-bottom:0}
.kh_technical-insights_link{color:#00AFFE;text-align:right;font-family:Poppins;font-size:14px;font-weight:500;line-height:150%;letter-spacing:-.154px;text-underline-offset:5px;text-decoration-thickness:2px;margin-bottom:5px;display:block}
.kh_technical-insights .swiper{width:100%;position:relative}
.kh_technical-insights .swiper-wrapper{display:flex}
.kh_technical-insights .swiper-slide{display:flex;width:295px;justify-content:flex-start;align-items:flex-start;flex-shrink:0;aspect-ratio:295/166.26;flex-direction:column;height:fit-content;text-decoration:none;opacity:1;transition:opacity .3s}
.kh_technical-insights_slide:hover .kh_technical-insights_slide_img{transform:scale(1.05)}
.kh_technical-insights_slide:hover .kh_technical-insights_slide_title{color:#00AFFE}
.kh_technical-insights_slide_img-wrapper{overflow:hidden}
.kh_technical-insights_slide_img{display:flex;width:100%;aspect-ratio: 210 / 297;height:auto;background:#EAF9FF;object-fit:cover;transition:.45s;cursor:pointer}
.kh_technical-insights_slide_content{padding-right:20px}
.kh_technical-insights_slide_date{color:#4B08A1;font-family:Poppins;font-size:12px;font-weight:500;line-height:160%;margin-top:14px}
.kh_technical-insights_slide_title{color:#4B08A1;font-family:Poppins;font-size:16px;font-weight:600;line-height:130%;letter-spacing:-.176px;margin-top: 13px;transition:color .45s;margin-bottom:0}
.kh_technical-insights_slide_tags{display:flex;gap:5px;margin-top:19px;text-decoration:none}
.kh_technical-insights_slide_tag{display:inline-flex;height:21px;padding:3px 10px;justify-content:center;align-items:center;gap:5px;flex-shrink:0;border-radius:4px;border:1px solid #F0FAFF;background:#F0FAFF;color:#4B08A1;text-align:center;font-family:Poppins;font-size:10px;font-weight:500;line-height:150%;letter-spacing:-.11px;text-decoration:none}
.kh_technical-insights_swiper-button{display:flex;width:60px;height:60px;padding:18px 17px;align-items:center;gap:10px;flex-shrink:0;border-radius:30px;border:1px solid #00AFFE;background:#fff;cursor:pointer;transition:background .3s;transform:translateZ(0);will-change:transform}
.kh_technical-insights_swiper-button:hover{background:#00AFFE}
.kh_technical-insights_swiper-button:hover svg path{fill:#fff}
.kh_technical-insights_swiper-button-next{position:absolute;right:70px;top:126px;z-index:2}
.mobile-filter-wrapper{display:none}
@media (max-width:767px){
  .kh_technical-insights_top{padding:0 25px 0 0;margin-left:25px;border-top:1px solid #00AFFE}
  .kh_technical-insights_top_inner{border-top:none;padding-top:9px}
  .kh_technical-insights_heading{font-size:18px}
  .kh_technical-insights_link_wrapper-desktop{display:none}
  .kh_technical-insights_link_wrapper-mobile{display:flex;flex-direction:row;padding:0 25px;margin-top:30px}
  .kh_technical-insights_swiper-button{display:none}
  .kh_technical-insights_slide_date{font-size:10px}
  .kh_technical-insights_slide_title{font-size:16px}
  .kh_technical-insights_slide_tags{margin-top:12px}
  .kh_technical-insights_slide_tag{margin:0}
  .mobile-filter-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:13px;margin-top:29px}
  .mobile-filter-wrapper label{color:#4B08A1;text-align:center;font-family:Poppins;font-size:14px;font-weight:500;line-height:150%;letter-spacing:-.154px;min-width:fit-content}
  .mobile-filter-wrapper select{color:#4B08A1;text-align:center;font-family:Poppins;font-size:14px;font-weight:500;line-height:150%;letter-spacing:-.154px;border-radius:50px;padding:10px 20px;border:1px solid #4B08A1;background:#fff;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url('/wp-content/themes/sabre/assets/images/select-arrow.svg') no-repeat;background-position:right 20px center;background-size:auto;padding-right:2.5em;position:relative;text-align:left}
}

/* Grid layout for this page */
.kh_technical-insights_grid{display:grid;grid-template-columns:repeat(12,1fr);gap:40px 20px;max-width:calc(1240px + 200px);margin:0 auto;width:100%;padding:0 100px}
.kh_technical-insights_grid_item_link{text-decoration:none}
.kh_technical-insights_grid_item{grid-column:span 3;text-decoration:none;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;height:fit-content;position:inherit;opacity:1;visibility:visible;transition:opacity .45s,visibility .45s}
.kh_technical-insights_grid_item.hidden{opacity:0;visibility:hidden;pointer-events:none;height:0;overflow:hidden;position:absolute}
@media (max-width:767px){
  .kh_technical-insights_grid{padding:0 25px;gap:25px}
  .kh_technical-insights_grid_item{grid-column:span 12}
  .kh_technical-insights_grid_item_link{width:100%}
  .kh_technical-insights_slide_img-wrapper{overflow:hidden;width:100%}
  .kh_technical-insights_slide_content{padding-right:38px}
  .kh_technical-insights_grid_item:hover .kh_technical-insights_slide_img{transform:unset}
  .kh_technical-insights_grid_item:hover .kh_technical-insights_slide_title{color:#4B08A1}
}

/* simple fade on append */
@keyframes fadeInUp{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}
.fade-in-up{animation:fadeInUp .4s ease both}

/* hide native pagination (we drive via InfiniteScroll) */
.pagination{display:none}

/* content section wrapper helpers */
.kh_content-section{opacity:1;visibility:visible;transition:opacity .45s,visibility .45s;margin-bottom:49px}
.kh_content-section.hidden{opacity:0;visibility:hidden;pointer-events:none;height:0;overflow:hidden;margin-bottom:0}
.kh_content-section_grid-section{opacity:1;visibility:visible;transition:opacity .45s,visibility .45s;margin-bottom:49px}
.kh_content-section_grid-section.hidden{opacity:0;visibility:hidden;pointer-events:none;height:0;overflow:hidden;margin-bottom:0}

/* Ask an Expert + Newsletter (unchanged styles) */
.kh_ask-an-expert{display:flex;flex-direction:column;width:100%;padding:0 100px;max-width:calc(1240px + 200px);margin:0 auto;margin-top:49px}
.kh_ask-an-expert_inner{display:flex;gap:25px;width:100%;justify-content:space-between;align-items:center;border-top:1px solid #4B08A1;padding-top:30px;padding-bottom:42px;flex-wrap:wrap}
.kh_ask-an-expert_heading{color:#4B08A1;font-family:Poppins;font-size:42px;font-weight:700;line-height:150%;letter-spacing:-.462px;min-width:fit-content;margin-bottom:0}
.kh_ask-an-expert_links{display:flex;flex-direction:row;align-items:center;gap:78px;justify-content:flex-end}
.kh_ask-an-expert_link{color:#4B08A1;font-family:Poppins;font-size:20px;font-weight:500;line-height:150%;letter-spacing:-.22px;text-decoration:none;min-width:fit-content;transition:.2s}
.kh_ask-an-expert_link:hover{color:#00AFFE}
.kh_ask-an-expert_link span{color:#00AFFE;font-family:Poppins;font-size:20px;font-weight:600;line-height:150%;letter-spacing:-.22px}
.kh_ask-an-expert_btn{display:inline-flex;padding:12px 20px;justify-content:center;align-items:center;gap:10px;background:#00AFFE;color:#fff;font-family:Poppins;font-size:16px;font-weight:600;line-height:150%;letter-spacing:-.176px;text-decoration:none;transition:.5s;min-width:fit-content}
.kh_ask-an-expert_btn:hover{opacity:.5}
@media (max-width:767px){
  .kh_ask-an-expert{padding:0 25px}
  .kh_ask-an-expert_inner{padding-top:17px;padding-bottom:30px;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:1px}
  .kh_ask-an-expert_heading{font-size:24px;letter-spacing:-.264px}
  .kh_ask-an-expert_links{gap:15px;justify-content:space-between;width:100%}
  .kh_ask-an-expert_link{font-size:16px}
}
.kh_newsletter{background:#F0FAFF;display:flex;flex-direction:column;width:100%;padding:46px 0 50px}
.kh_newsletter_inner{display:flex;gap:46px;margin:0 auto;width:100%;padding:0 100px;max-width:calc(1240px + 200px)}
.kh_newsletter_heading-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px}
.kh_newsletter_heading_line{width:4px;height:20px;background:#00AFFE}
.kh_newsletter_heading{color:#4B08A1;font-family:Poppins;font-size:24px;font-weight:700;line-height:150%;letter-spacing:-.264px;min-width:fit-content;margin-bottom:0}
@media (max-width:767px){
  .kh_newsletter{padding-top:30px;padding-bottom:40px}
  .kh_newsletter_inner{padding:0 25px}
  .kh_newsletter_heading{font-size:18px}
}
