/* =========================================================
   newsmoba V2
   PURPLE BLACK CYBER DESIGN
   ONLY UI CHANGED - SYSTEM SAFE
========================================================= */

/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#050507;
  color:#ffffff;
  overflow-x:hidden;
}

/* ================= GLOBAL ================= */
a{
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

section{
  position:relative;
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar{
  width:8px;
}

::-webkit-scrollbar-track{
  background:#0a0a11;
}

::-webkit-scrollbar-thumb{
  background:linear-gradient(#7c3aed,#4c1d95);
  border-radius:50px;
}

/* ================= TOPBAR ================= */
.topbar{
  background:linear-gradient(90deg,#14071d,#0a0914);
  color:#d8b4fe;
  text-align:center;
  padding:9px;
  font-size:12px;
  letter-spacing:.5px;
  border-bottom:1px solid rgba(168,85,247,.15);
}

/* ================= HEADER ================= */
.header-main{
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px;
  background:rgba(10,10,18,.95);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(168,85,247,.08);
  position:sticky;
  top:0;
  z-index:999;
}

/* LOGO */
.logo{
  font-size:18px;
  font-weight:800;
  color:#ffffff;
  letter-spacing:1px;
  white-space:nowrap;
  position:relative;
}

.logo::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:45%;
  height:3px;
  border-radius:50px;
  background:#9333ea;
}

/* SEARCH */
.search-box{
  flex:1;
}

.search-box input{
  width:100%;
  height:46px;
  border:none;
  outline:none;
  border-radius:14px;
  padding:0 16px;
  background:#11111b;
  color:#fff;
  border:1px solid rgba(255,255,255,.05);
  transition:.3s;
}

.search-box input::placeholder{
  color:#8a8a96;
}

.search-box input:focus{
  border-color:#9333ea;
  box-shadow:0 0 0 4px rgba(147,51,234,.12);
}

/* ICON */
.header-right{
  width:46px;
  height:46px;
  border-radius:14px;
  background:#11111b;
  border:1px solid rgba(255,255,255,.05);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#c084fc;
  font-size:18px;
}

/* ================= NAVBAR ================= */
.navbar{
  display:flex;
  align-items:center;
  gap:22px;
  overflow-x:auto;
  padding:14px 15px;
  background:#0b0b12;
  border-bottom:1px solid rgba(255,255,255,.04);
}

.navbar::-webkit-scrollbar{
  display:none;
}

.navbar a{
  color:#9ca3af;
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
  position:relative;
  transition:.3s;
}

.navbar a:hover{
  color:#c084fc;
}

.navbar a.active{
  color:#ffffff;
}

.navbar a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:0%;
  height:3px;
  border-radius:50px;
  background:#9333ea;
  transition:.3s;
}

.navbar a:hover::after,
.navbar a.active::after{
  width:100%;
}

/* ================= HERO ================= */
.hero{
  padding:18px;
}

.hero-main{
  border-radius:28px;
  overflow:hidden;
}

.hero-link{
  display:block;
}

.hero-image{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  border:1px solid rgba(168,85,247,.12);
}

.hero-image img{
  width:100%;
  height:260px;
  object-fit:cover;
  transition:transform .6s ease;
}

.hero-image:hover img{
  transform:scale(1.08);
}

.hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:26px;
  background:
  linear-gradient(to top,
  rgba(0,0,0,.96),
  rgba(0,0,0,.55),
  transparent);
}

.hero-overlay .category{
  width:max-content;
  padding:7px 14px;
  border-radius:100px;
  background:rgba(147,51,234,.18);
  border:1px solid rgba(168,85,247,.2);
  color:#e9d5ff;
  font-size:11px;
  font-weight:600;
  margin-bottom:12px;
}

.hero-overlay h1{
  font-size:24px;
  line-height:1.4;
  margin-bottom:10px;
  color:#fff;
}

.hero-overlay p{
  color:#d1d5db;
  line-height:1.7;
  font-size:13px;
}

/* ================= NEWS ================= */
.news{
  padding:0 18px 18px;
}

.news-container{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

/* CARD */
.news-card{
  display:flex;
  gap:14px;
  background:linear-gradient(145deg,#0f0f18,#161625);
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.05);
  transition:.35s;
  position:relative;
}

.news-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,
  rgba(147,51,234,.12),
  transparent);
  opacity:0;
  transition:.3s;
}

.news-card:hover::before{
  opacity:1;
}

.news-card:hover{
  transform:translateY(-5px);
  border-color:rgba(168,85,247,.25);
  box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.news-card img{
  width:135px;
  object-fit:cover;
}

.news-content{
  padding:15px 14px 15px 0;
}

.news-content .category{
  color:#c084fc;
  font-size:11px;
  font-weight:700;
}

.news-content h3{
  color:#ffffff;
  font-size:15px;
  line-height:1.5;
  margin:7px 0;
}

.news-content p{
  color:#9ca3af;
  font-size:12px;
  line-height:1.7;
}

/* ================= TRENDING ================= */
.trending{
  padding:25px 18px;
  max-width:1200px;
  margin:auto;
}

.trending h3{
  font-size:19px;
  margin-bottom:18px;
  color:#fff;
  position:relative;
  padding-left:14px;
}

.trending h3::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  border-radius:50px;
  background:#9333ea;
}

.trending-list{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding-bottom:6px;
}

.trending-list::-webkit-scrollbar{
  display:none;
}

.trending-item{
  min-width:220px;
  background:#11111a;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.05);
  transition:.35s;
}

.trending-item:hover{
  transform:translateY(-4px);
  border-color:rgba(168,85,247,.22);
}

.trending-item img{
  width:100%;
  height:135px;
  object-fit:cover;
}

.trending-content{
  padding:14px;
}

.trending-content h4{
  color:#fff;
  font-size:14px;
  line-height:1.5;
  margin-bottom:7px;
}

.trending-content span{
  color:#c084fc;
  font-size:11px;
}

/* ================= SOCIAL ================= */
.social{
  max-width:1200px;
  margin:auto;
  padding:10px 18px 35px;
}

.social h3{
  font-size:19px;
  margin-bottom:18px;
  position:relative;
  padding-left:14px;
}

.social h3::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  border-radius:50px;
  background:#9333ea;
}

.social-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.social-item{
  background:#101019;
  border:1px solid rgba(255,255,255,.05);
  border-radius:18px;
  padding:15px;
  display:flex;
  align-items:center;
  gap:12px;
  transition:.3s;
}

.social-item:hover{
  transform:translateY(-4px);
  border-color:rgba(168,85,247,.22);
  background:#141420;
}

.social-item img{
  width:24px;
  height:24px;
  filter:brightness(0) invert(1);
}

.social-item h4{
  color:#fff;
  font-size:14px;
}

.social-item p{
  color:#9ca3af;
  font-size:12px;
  margin-top:2px;
}

/* ================= ABOUT ================= */
.about{
  padding:20px 18px 45px;
}

.about-container{
  max-width:950px;
  margin:auto;
  background:linear-gradient(145deg,#101019,#181826);
  border-radius:30px;
  padding:22px;
  border:1px solid rgba(255,255,255,.05);
}

.about-image img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:20px;
  margin-bottom:18px;
}

.about h3{
  font-size:20px;
  margin-bottom:14px;
  color:#fff;
}

.about p{
  color:#b3b3bd;
  line-height:1.9;
  font-size:14px;
  margin-bottom:12px;
}

/* ================= FOOTER ================= */
.footer{
  margin-top:30px;
  background:#08080d;
  border-top:1px solid rgba(255,255,255,.05);
}

.footer-container{
  max-width:1200px;
  margin:auto;
  padding:40px 18px;
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
}

.footer-col h4{
  color:#c084fc;
  margin-bottom:12px;
}

.footer-col p,
.footer-col li{
  color:#9ca3af;
  font-size:13px;
  line-height:1.8;
}

.footer-col ul{
  list-style:none;
}

.footer-bottom{
  text-align:center;
  padding:15px;
  border-top:1px solid rgba(255,255,255,.05);
  color:#7c7c89;
  font-size:12px;
}

/* ================= NAV GRID ================= */
.navbar-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.nav-item{
  padding:14px;
  border-radius:16px;
  text-align:center;
  color:#fff;
  font-size:13px;
  font-weight:500;
  background:linear-gradient(135deg,#581c87,#312e81);
  transition:.3s;
}

.nav-item:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 25px rgba(76,29,149,.35);
}

/* ================= DETAIL PAGE ================= */
.detail-container{
  max-width:850px;
  margin:40px auto;
  padding:25px;
  background:#11111a;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.05);
}

.detail-container img{
  width:100%;
  border-radius:20px;
  margin:20px 0;
}

.detail-title{
  color:#fff;
  font-size:32px;
  line-height:1.4;
  margin:14px 0;
}

.detail-category{
  display:inline-block;
  background:#581c87;
  color:#fff;
  padding:7px 14px;
  border-radius:100px;
  font-size:12px;
}

.detail-meta{
  color:#8f8f99;
  margin-bottom:18px;
  font-size:13px;
}

.detail-content{
  color:#d1d5db;
  line-height:2;
  font-size:16px;
}

.detail-content h2{
  margin:28px 0 12px;
  color:#fff;
}

.detail-content blockquote{
  border-left:4px solid #9333ea;
  padding-left:16px;
  margin:22px 0;
  color:#c4b5fd;
  font-style:italic;
}

/* ================= POPULAR ================= */
.popular{
  max-width:850px;
  margin:35px auto;
  padding:10px;
}

.popular h3{
  margin-bottom:18px;
  color:#fff;
}

.popular-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.popular-item{
  display:flex;
  gap:12px;
  background:#11111a;
  border-radius:18px;
  padding:10px;
  border:1px solid rgba(255,255,255,.05);
  transition:.3s;
}

.popular-item:hover{
  border-color:rgba(168,85,247,.2);
}

.popular-item img{
  width:100px;
  height:75px;
  object-fit:cover;
  border-radius:12px;
}

.popular-item h4{
  color:#fff;
  font-size:14px;
  line-height:1.5;
}

.popular-item span{
  color:#c084fc;
  font-size:11px;
}

/* ================= RESPONSIVE ================= */
@media(min-width:768px){

  .header-main{
    padding:18px 25px;
  }

  .hero-image img{
    height:430px;
  }

  .hero-overlay h1{
    font-size:38px;
    max-width:70%;
  }

  .news-container{
    grid-template-columns:repeat(2,1fr);
  }

  .social-list{
    grid-template-columns:repeat(4,1fr);
  }

  .footer-container{
    grid-template-columns:repeat(3,1fr);
  }

  .navbar-grid{
    grid-template-columns:repeat(4,1fr);
  }
}

@media(min-width:1100px){

  .news-container{
    grid-template-columns:repeat(3,1fr);
  }

  .news-card{
    flex-direction:column;
  }

  .news-card img{
    width:100%;
    height:190px;
  }

  .news-content{
    padding:16px;
  }
}