/* =========================
   ROOT VARIABLES
========================= */
:root{
  --bg:#ffffff;
  --card:#0b1220;
  --muted:#6b7280;
  --accent:#06b6d4;
  --glass:rgba(255,255,255,.06);
  --radius:14px;
  --maxwidth:1200px;
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

/* =========================
   PAGE BACKGROUND (WHITE)
========================= */
body{
  margin:0;
  background:#ffffff;             /* ✅ پس‌زمینه سفید */
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color:#0b1220;
  /* display:flex;
  justify-content:center; */
}

/* =========================
   LAYOUT
========================= */
.container{
  width:100%;
  max-width:var(--maxwidth);
  margin:0 auto;
}

/* =========================
   HEADER
========================= */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px;
}

.controls{
  display:flex;
  gap:10px;
}

select.filter{
  padding:8px 12px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#374151;
}

/* =========================
   GRID
========================= */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom: 20px;
}

/* =========================
   CARD (DARK DESIGN)
========================= */
.card{
  background:linear-gradient(
    180deg,
    rgba(11,18,32,.96),
    rgba(11,18,32,.92)
  );
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 10px 30px rgba(2,6,23,.35);
  transition:.3s ease;
  border:1px solid rgba(255,255,255,.05);
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 18px 45px rgba(2,6,23,.45);
}

.card .media{
  height:180px;
  background-size:cover;
  background-position:center;
}

.card .content{
  padding:16px;
}

.meta{
  display:flex;
  gap:8px;
  align-items:center;
  font-size:12px;
  color:#9aa4b2;
  margin-bottom:8px;
}

.tag{
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:var(--accent);
  font-weight:600;
}

.title{
  font-size:16px;
  margin:0 0 8px;
  color:#eaf6ff;
}

.excerpt{
  font-size:13px;
  line-height:1.5;
  color:#cfd9e5;
  margin-bottom:14px;
}

.actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.readmore{
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  color:#e6faff;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
}

.stats{
  font-size:12px;
  color:#9aa4b2;
}

/* =========================
   FEATURED
========================= */
.featured{
  grid-column:span 2;
  display:flex;
  gap:16px;
}

.featured .media{
  flex:0 0 48%;
  min-height:220px;
}

.featured .content{
  flex:1;
}

/* =========================
   SINGLE ARTICLE
========================= */
.single-article{
  background:linear-gradient(
    180deg,
    rgba(11,18,32,.96),
    rgba(11,18,32,.92)
  );
  border-radius:var(--radius);
  padding:22px;
  box-shadow:0 10px 30px rgba(2,6,23,.35);
  border:1px solid rgba(255,255,255,.05);
}

.single-cover{
  width:100%;
  height:420px;
  background-size:cover;
  background-position:center;
  border-radius:12px;
  margin-bottom:18px;
}

.single-title{
  font-size:28px;
  color:#eaf6ff;
  margin:8px 0 14px;
}

.single-text{
  font-size:16px;
  line-height:1.9;
  color:#cfd9e5;
}

.single-text h3{
  margin-top:24px;
  color:#eaf6ff;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  background:linear-gradient(90deg,#06b6d4,#7c3aed);
  color:#021018;
  font-weight:700;
  border:none;
  cursor:pointer;
  text-decoration:none;
}
.footer{
  width:100%;
}


/* =========================
   RESPONSIVE
========================= */
@media(max-width:1024px){
  .grid{
    grid-template-columns:repeat(2,1fr);
  }
  .featured{
    grid-column:span 2;
  }
}

@media(max-width:700px){
 
  header{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .grid{
    grid-template-columns:1fr;
  }
  .featured{
    grid-column:auto;
    flex-direction:column;
  }
}
