/* =========================
   TechPoint MASTER CSS
   ========================= */

:root{
  --primary: white;
  --dark: #222;
  --light: mediumpurple;
  --bg: white;
  --text: #333;
  --radius: 12px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
}

/* ===== HEADER ===== */

.header{
  background: var(--dark);
  color: mediumpurple;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 20px;
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.logo{
  font-weight:700;
  font-size:1.3rem;
}

.menu-btn{
  color: white;
  font-size:1.7rem;
  cursor:pointer;
  display:none;
}

.nav{
  display: flex;
  gap:18px;
}

.nav a{
  color: mediumpurple;
  text-decoration:none;
  font-size:.95rem;
  transition:.25s;
}

.nav a:hover{
  color:var(--primary);
}

/* ===== HERO ===== */

.hero{
  background: linear-gradient(135deg, var(--primary), white);
  color: mediumpurple;
  text-align:center;
  padding:60px 15px;
}

.hero h1{
  font-size:2.4rem;
  margin-bottom:10px;
}

.hero p{
  font-size:1.05rem;
  opacity:.95;
}

/* ===== MAIN ===== */

.container{
  max-width:1200px;
  margin:auto;
  padding:40px 20px;
}

/* ===== POST GRID ===== */

.posts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.post-card{
  background: mediumpurple;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
  transition:.3s;
}

.post-card:hover{
  transform:translateY(-6px);
}

.post-card img{
  width:100%;
  height:180px;
  object-fit:cover;
}

.post-content{
  padding:16px;
}

.post-content h3{
  margin-bottom:8px;
  color:var(--primary);
}

.post-content p{
  font-size:.9rem;
}

/* ===== SINGLE POST ===== */

.post-wrapper{
  max-width:900px;
  margin:auto;
  background: mediumpurple;
  padding:35px 25px;
  border-radius:var(--radius);
  box-shadow:0 10px 22px rgba(0,0,0,.07);
}

.post-wrapper img{
  width:100%;
  border-radius:10px;
  margin-bottom:20px;
}

.post-meta{
  font-size:.85rem;
  color:#777;
  margin-bottom:15px;
}

.post-wrapper h1{
  color:var(--primary);
  margin-bottom:10px;
}

.post-wrapper p{
  margin-bottom:16px;
  font-size:1rem;
}

.post-wrapper ul{
  padding-left:20px;
  margin-bottom:20px;
}

.post-wrapper li{
  margin-bottom:8px;
}

/* ===== FOOTER ===== */

.footer_div{
  background: var(--dark);
  color: mediumpurple;
  text-align:center;
  padding:25px 15px;
  margin-top:60px;
  font-size:.9rem;
}

/* ===== RESPONSIVE ===== */

@media(max-width:768px){

  .menu-btn{
    display:block;
  }

  .nav{
    display:none;
    flex-direction:column;
    background:var(--dark);
    padding:12px;
    width:100%;
  }

  .nav.show{
    display:flex;
  }

  .hero h1{
    font-size:1.9rem;
  }

  .post-wrapper{
    padding:25px 18px;
  }

}

#searchInput{
  width: 350px;
  height: 30px;
  padding: 20px;
  background-color: transparent;
  color: mediumpurple;
  border-color: white;
  border-radius: 50px;
}

#searchInput placeholder{
  color: white;
}

.article-container{
  max-width:900px;
  margin:40px auto;
  padding:0 20px;
  line-height:1.8
}

.article-header img{
  width:100%;
  border-radius:12px;
  margin-bottom:20px
}

h2{
  color:mediumpurple;
  margin-top:40px
}

.article-container{
  max-width:900px;
  margin:40px auto;
  padding:0 20px;
  line-height:1.8
}

.article-header img{
  width:100%;
  border-radius:12px;
  margin-bottom:20px
}

.meta{
  color:#777;
  font-size:.9rem;
  margin-bottom:30px;
}

h2{
  color:mediumpurple;
  margin-top:40px
}

pre{
  background:#111;
  color:#fff;
  padding:15px;
  border-radius:8px;
  overflow-x:auto;
}