:root{
  --or:#FE7029;
  --or-2:#FF8A3D;
  --cream:#FFE9B5;
  --ink:#2e2e2e;
  --r-wrap:20px;
  --r-card:20px;
  --r-tab:28px;
  --tab-h:43px;
  --gap:14px;
  --shadow-wrap:0 10px 26px rgba(0,0,0,.05);
  --shadow-card:0 6px 14px rgba(0,0,0,.08);
}

.tabbed-posts-wrapper{
  position:relative;
  background:var(--cream);
  border:none;
  border-radius:var(--r-wrap);
  box-shadow:var(--shadow-wrap);
  padding:20px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  font-family:Arial, sans-serif;
  height:auto;
}

.tab-buttons{
  display:flex;
  /*gap:12px;*/
  margin:0 0 16px;
  padding:0;
  list-style:none;
  background:transparent;
  border-radius:999px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  margin-left: -10px;
}
.tab-buttons::-webkit-scrollbar{display:none;}

.tab-buttons li{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:var(--tab-h);
  padding:0 22px;
  border-radius:var(--r-tab);
  border:2px solid var(--or);
  background:var(--or);
  color:#fff;
  font-weight:800;
  font-size:13.5px;
  letter-spacing:.01em;
  white-space:nowrap;
  cursor:pointer;
  transition:background .15s, color .15s, box-shadow .15s, transform .15s, filter .15s;
}

.tab-buttons li::after{
  content:"›";
  display:inline-block;
  margin-left:10px;
  font-weight:900;
  line-height:1;
  transform:translateY(-.5px);
  color:inherit;
}

.tab-buttons li:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
  box-shadow:0 6px 12px rgba(0,0,0,.12);
}

.tab-buttons li.active{
  background:#fff;
  color:var(--or);
}
.tab-buttons li.active::after{display:none;}

.tab-buttons li span,
.tab-buttons li a{
  pointer-events:none;
  text-decoration:none;
  color:inherit;
}

.tab-loading{
  position:absolute;
  inset:66px 20px 20px 20px;
  display:none;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-radius:12px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);
  z-index:5;
}
.spinner{
  width:28px;
  height:28px;
  border-radius:50%;
  border:3px solid rgba(0,0,0,.12);
  border-top-color:var(--or);
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg);}}
.tabbed-posts-wrapper.is-loading .tab-loading{display:flex;}
.tabbed-posts-wrapper.is-loading .tab-content.active{filter:blur(1px);}

.tab-content{
  display:none;
  opacity:0;
  min-height:0;
  transform:translateY(5px);
}
.tab-content.is-visible{display:block;}
.tab-content.active{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding-right:6px;
  transition:opacity .24s ease, transform .24s ease;
  opacity:1;
  transform:translateY(0);
}
.tab-content.active::-webkit-scrollbar{width:4px;}
.tab-content.active::-webkit-scrollbar-track{background:#f8eacb;border-radius:8px;}
.tab-content.active::-webkit-scrollbar-thumb{background:#c97c33;border-radius:8px;}

.article-card{
  display:flex;
  align-items:center;
  gap:14px;
  background:#fff;
  border-radius:var(--r-card);
  padding:14px;
  margin-bottom:14px;
  box-shadow:var(--shadow-card);
}
.article-card img{
  width:112px;
  height:74px;
  object-fit:cover;
  border-radius:14px;
  flex-shrink:0;
  outline:4px solid #fff;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.article-card .text{flex:1 1 auto;min-width:0;}
.article-card .text h4{
  font-size:17px !important;
  font-weight:700;
  margin:0;
  color:var(--ink);
  line-height:1.5;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
}
.article-card .text h4 a{color:inherit;text-decoration:none;}

.tab-more{margin-top:8px;display:flex;justify-content:center;}
.btn-see-more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 18px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  letter-spacing:.02em;
  color:#fff;
  text-decoration:none;
  background:linear-gradient(180deg, var(--or), var(--or-2));
  box-shadow:0 6px 12px rgba(0,0,0,.16);
  transition:transform .15s, filter .15s, box-shadow .15s;
}
.btn-see-more .chev{font-weight:900;line-height:1;transform:translateY(-.5px);}
.btn-see-more:hover{transform:translateY(-1px);filter:brightness(1.03);box-shadow:0 8px 16px rgba(0,0,0,.2);}

@media (min-width:1024px){
  .tabbed-posts-wrapper{overflow:visible;}
  .tab-buttons{
    overflow:visible;
    flex-wrap:nowrap;
    padding:0;
    justify-content:flex-start;
  }
  .tab-buttons li{
    height:38px;
    padding:0 18px;
    font-size:10px;
    border-width:2px;
  }
}

@media (max-width:1023.98px){
  .tab-buttons{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width:991px){
  .tabbed-posts-wrapper{padding:16px;}
}

@media (max-width:767px){
  .tab-buttons{gap:10px;}
  .tab-buttons li{padding:0 18px;font-size:12.5px;}
  .article-card{flex-direction:column;align-items:flex-start;gap:10px;}
  .article-card img{width:100%;height:auto;border-radius:16px;}
}

@media (prefers-reduced-motion:reduce){
  .tab-buttons li,.btn-see-more,.tab-content{transition:none;}
}
