/* ===== WRAPPER ===== */
.ati-category-wrapper{
  width:100%;
  overflow:hidden;
  background:linear-gradient(180deg,#071426,#0b1f3a);
}

/* ===== HERO ===== */
.ati-category-hero{
  padding:50px 16px;
  text-align:center;
}

.ati-category-hero h1{
  font-size:clamp(26px,4vw,38px);
  font-weight:800;
  color:#eaf6ff;
}

/* ===== TRENDING ===== */
.ati-trending-strip{
  padding:20px 16px;
}

.ati-trending-strip h2,
.ati-trending-strip .section-title{
  color: #eaf6ff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 18px;
}

.ati-trending-strip h2 span{
  color: #2fe6ff;
}

.ati-trending-row{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
}

.ati-trending-card{
  min-width:260px;
  border-radius:18px;
  overflow:hidden;
  background:#0b1324;
  position:relative;
  scroll-snap-align:start;
  box-shadow:0 20px 40px rgba(0,0,0,0.6),inset 0 -80px 120px rgba(0,0,0,0.85);
}

.ati-trending-img img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  opacity:.9;
}

.ati-trending-card span{
  position:absolute;
  bottom:12px;
  left:12px;
  right:12px;
  color:#eaf6ff;
  font-weight:800;
}

.ati-trending-card:hover span{
  color:#19e0ff;
}

/* ===== MAIN GRID ===== */
.ati-main-feed{
  padding:20px 16px;
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}

.ati-post-card{
  background:#0b1324;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
  display:flex;
  flex-direction:column;
}

.ati-thumb img{
  width:100%;
  aspect-ratio:5/3;
  object-fit:cover;
  display:block;
}

.ati-content{padding:20px;}

.ati-tag{
  font-size:13px;
  color:#19e0ff;
  font-weight:800;
}

.ati-content h2{
  font-size:20px;
  margin:8px 0;
}

.ati-content h2 a{
  color:#eaf6ff;
  text-decoration:none;
  transition:all .3s ease;
}

/* Hover Effect */
.ati-content h2 a:hover{
  color:#19e0ff;
}

.ati-content p{
  font-size:14px;
  color:#b9d4e8;
  line-height:1.6;
}

.ati-meta{
  font-size:13px;
  color:#8fb6d6;
  margin-bottom:10px;
}

.ati-read{
  font-size:16px;
  color:#19e0ff;
  font-weight:800;
  display:inline-block;
  margin-top:8px;
}

/* ===== PAGINATION ===== */
.ati-pagination{
  text-align:center;
  padding:20px 0 40px;
}

.ati-pagination a,
.ati-pagination span{
  padding:10px 15px;
  margin:4px;
  border-radius:10px;
  background:#0b1324;
  color:#b9d4e8;
  border:1px solid rgba(25,224,255,.2);
}

.ati-pagination .current{
  background:#19e0ff;
  color:#041018;
  font-weight:900;
}

/* ===== TOP POSTS ===== */
.ati-top-posts{
  padding:20px 16px;
}

.ati-top-grid{
  display:grid;gap:18px;
}

.ati-top-posts h2,
.ati-top-posts .section-title{
  color: #eaf6ff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 22px;
}

.ati-top-posts h2 span{
  color: #2fe6ff;
}

.ati-top-card{
  border-radius:22px;
  overflow:hidden;
  position:relative;
  box-shadow:0 20px 40px rgba(0,0,0,0.6),inset 0 -80px 120px rgba(0,0,0,0.85);
}

.ati-top-img img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
}

.ati-top-card span{
  position:absolute;
  bottom:14px;
  left:14px;
  right:14px;
  color:#eaf6ff;
  font-size:18px;
  font-weight:800;
}

.ati-top-card span a:hover{
  color:#19e0ff;
}

.ati-top-card span a{
  color:#eaf6ff;
  text-decoration:none;
  transition:all .3s ease;
}

.ati-top-card span a:hover{
  color:#19e0ff;
}

/* ===============================
   600px – Large Mobile
================================= */
@media (min-width:600px){

.ati-main-feed{
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ati-top-grid{
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

}

/* ===============================
   768px – Proper Tablet
================================= */
@media (min-width:768px){

.ati-main-feed{
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ati-top-grid{
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

}

/* ===============================
   992px – Small Laptop
================================= */
@media (min-width:992px){

.ati-main-feed{
  grid-template-columns: repeat(3, 1fr);
  max-width: 1050px;
  margin: 0 auto;
  gap: 28px;
}

.ati-top-grid{
  grid-template-columns: repeat(3, 1fr);
  max-width: 1050px;
  margin: 0 auto;
  gap: 28px;
}

}

/* ===============================
   1024px – Large Tablet / iPad Landscape
================================= */
@media (min-width:1024px){

.ati-main-feed{
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  gap: 28px;
}

.ati-top-grid{
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  gap: 28px;
}

}

/* ===============================
   1200px – Real Desktop
================================= */
@media (min-width:1200px){

.ati-main-feed{
  grid-template-columns: repeat(3, 1fr);
  max-width: 1240px;
  margin: 0 auto;
  gap: 32px;
}

.ati-top-grid{
  grid-template-columns: repeat(3, 1fr);
  max-width: 1240px;
  margin: 0 auto;
  gap: 32px;
}

}

/* =========================================
   UNIVERSAL RESPONSIVE IMAGE + GRID FIX
========================================= */

.ati-trending-strip img,
.ati-main-feed img,
.ati-top-grid img{
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}

@media (max-width:1024px){
.ati-trending-strip img,
.ati-main-feed img,
.ati-top-grid img{
  height:auto !important;
  aspect-ratio:4/3;
  object-fit:cover;
}

}

@media (min-width:1200px){
.ok-home .ok-latest-card:first-child img{
  aspect-ratio:16/9;
}

.ok-home .ok-latest-card:not(:first-child) img{
  aspect-ratio:16/9;
}

}


.post-container{
  max-width:900px;
  margin:auto;
  padding:20px;
}

.post-title{
  font-size:25px;
  font-weight:700;
  line-height:1.3;
  margin:10px 0 15px;
}

.post-category a{
  display:inline-block;
  background:#19e0ff;
  color:#fff;
  padding:4px 10px;
  font-size:12px;
  border-radius:4px;
  margin-right:5px;
  font-weight:600;
  text-decoration:none;
}

.post-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  font-size:14px;
  color:#666;
  margin-bottom:10px;
}

.ai-author-wrapper{
  margin:20px 0 25px;
}

.ai-author-card{
  display:flex;
  align-items:center;
  gap:16px;
  background:#f7f8fa;
  padding:18px 20px;
  border-radius:14px;
  border:1px solid #e6e8ec;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
  transition:all .25s ease;
}

.ai-author-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,0.08);
}

.ai-author-avatar img{
  width:64px;
  height:64px;
  border-radius:50%;
  border:3px solid #fff;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.ai-author-info{
  display:flex;
  flex-direction:column;
}

.ai-author-name{
  font-size:20px;
  font-weight:600;
  color:#111;
  line-height:1.2;
}

.ai-author-role{
  font-size:13px;
  color:#8a8f98;
  margin-top:3px;
}

.ai-author-social{
  display:flex;
  gap:18px;
  margin-top:10px;
  font-size:14px;
}

.ai-author-social a{
  color:#19e0ff;
  text-decoration:none;
  font-weight:500;
  transition:all .2s ease;
}

.ai-author-social a:hover{
  color:#007e93;
  text-decoration:underline;
}

@media (max-width:600px){

.ai-author-card{
  padding:16px;
}

}

.last-updated{
  color:#888;
}

.fact-checked{
  background:#e8f5e9;
  color:#2e7d32;
  padding:3px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:600;
}

.single-post img{
  border-radius:16px;
  overflow:hidden;
}

.post-content{
  font-size:16px;
  line-height:1.8;
  color:#222;
}

.post-content h2{
  font-size:26px;
  font-weight:700;
  margin:35px 0 15px;
}

.post-content h3{
  font-size:22px;
  font-weight:600;
  margin:25px 0 10px;
}

.post-content p{
  margin-bottom:18px;
}

.post-content a{
  color:#19e0ff;
  font-weight:600;
  border-bottom:1px dashed #19e0ff;
  text-decoration:none;
}

.post-content a:hover{
  color:#0097a7;
}

.inline-related{
  display: flex;
  flex-direction: column;
  background: #071a2c;
  padding: 15px;
  border-radius: 12px;
  margin: 25px 0;
  display:inline-block;
}

.rec-label{
  display: block;
  margin-bottom: 10px;
  color: #19e0ff;
  font-size: 15px;
  border: none;
}

.rec-content{
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}

.inline-thumb{
  flex: 0 0 90px;
}

.inline-thumb img{
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.inline-text{
  flex: 1;
}

.inline-text strong{
  font-size: 14px;
  color: #e2e8f0;
  text-decoration: none;
  line-height: 1.5;
  display: block;
  flex-shrink: 0;
}

.inline-text strong:hover{
  color: #19e0ff;
}

.share-section{
  margin:40px 0;
}

.share-buttons h3{
  font-size:24px;
  margin-bottom:20px;
}

.share-buttons a{
  display:inline-block;
  background:#f5f7fb;
  padding:8px 12px;
  margin-right:8px;
  margin-bottom:10px;
  border-radius:6px;
  font-size:14px;
  text-decoration:none;
  color:#333;
  font-weight:500;
  transition:0.3s;
}

.share-buttons a:hover{
  background:#19e0ff;
  color:#fff;
}

.related-posts{
  margin-top:60px;
}

.related-posts h3{
  font-size:24px;
  margin-bottom:20px;
}

.related-item{
  display:flex;
  gap:18px;
  background:#071a2c;
  padding:14px;
  border-radius:12px;
  margin-bottom:15px;
  text-decoration:none;
}

.related-thumb{
  width:120px;
  height:80px;
  overflow:hidden;
  flex-shrink:0;
}

.related-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
}

.related-info h4{
  font-size:16px;
  color: #e2e8f0;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.related-info h4:hover{
  color: #19e0ff;
  transform: translateX(3px);
}

.related-meta{
  font-size:12px;
  color:#9fb3c8;
  display:flex;
  gap:10px;
}

.trending-posts{
  margin-top:60px;
}

.trending-posts h3{
  font-size:24px;
  margin-bottom:20px;
}

.trending-item{
  display:flex;
  gap:14px;
  background:#071a2c;
  padding:12px;
  border-radius:10px;
  margin-bottom:12px;
  text-decoration:none;
}

.trending-thumb{
  width:120px;
  height:80px;
  overflow:hidden;
  flex-shrink:0;
}

.trending-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:6px;
}

.trending-info h4{
  font-size:16px;
  color: #e2e8f0;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.trending-info h4:hover{
  color: #19e0ff;
  transform: translateX(3px);
}

.trending-info span{
  font-size:12px;
  color:#9fb3c8;
}

.reading-progress-bar{
  position:fixed;
  top:0;
  left:0;
  height:4px;
  width:0%;
  background:linear-gradient(90deg,#19e0ff,#0097a7);
  z-index:9999;
}
