﻿/* ===== Home: Featured reading (tabs + image cards) ===== */

.home-featured { padding: 24px 0 10px; }

.featured-card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
  overflow: hidden;
}

.tabs{
  display:flex;
  gap:8px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.6);
}

.tab{
  appearance:none;
  border:1px solid var(--border);
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  cursor:pointer;
}

.tab.is-active{
  background: rgba(15,98,254,.10);
  border-color: rgba(15,98,254,.25);
}

.tabpanes{ padding: 14px; }

.tabpane{ display:none; }
.tabpane.is-active{ display:block; }

.featured-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.featured-item{
  display:flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  text-decoration:none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.featured-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
  border-color: rgba(15,98,254,.25);
}

.featured-thumb{
  width: 78px;
  height: 56px;
  border-radius: 12px;
  overflow:hidden;
  background: rgba(0,0,0,.04);
  flex: 0 0 auto;
}

.featured-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.featured-meta{ min-width: 0; }
.featured-tag{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-title{
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 980px){
  .featured-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .featured-grid{ grid-template-columns: 1fr; }
  .featured-thumb{ width: 88px; height: 62px; }
}

.ai-career-adaptation {
    background-image: url('/Images/CatIcons/150px/ai-career-adaptation.jpg');
    background-repeat: no-repeat;
    width: 150px;
    height: 150px;
}

.ai-for-real-work {
    background-image: url('/Images/CatIcons/150px/ai-for-real-work.jpg');
    background-repeat: no-repeat;
    width: 150px;
    height: 150px;
}

.ai-in-everyday-systems {
    background-image: url('/Images/CatIcons/150px/ai-in-everyday-systems.jpg');
    background-repeat: no-repeat;
    width: 150px;
    height: 150px;
}
.ai-limits-and-risks {
    background-image: url('/Images/CatIcons/150px/ai-limits-and-risks.jpg');
    background-repeat: no-repeat;
    width: 150px;
    height: 150px;
}
.ai-productivity {
    background-image: url('/Images/CatIcons/150px/ai-productivity.jpg');
    background-repeat: no-repeat;
    width: 150px;
    height: 150px;
}
.ai-tools-in-practice {
    background-image: url('/Images/CatIcons/150px/ai-tools-in-practice.jpg');
    background-repeat: no-repeat;
    width: 150px;
    height: 150px;
}