/* Fast, responsive styles inspired by the original template vibe */
:root{
  --bg:#f7f7ff;
  --card:#ffffff;
  --text:#656565;
  --heading:#1f2024;
  --muted:#8a8a8a;
  --brand:#1967D2;
  --shadow:0 1px 4px rgba(0,0,0,0.08);
  --radius:10px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Poppins","Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  line-height:1.7;
  color:var(--text);
  background:var(--bg);
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block;background:rgba(155,155,155,0.07)}

/* Header */
.site-header{
  position:sticky;top:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  height:70px;padding:0 20px;background:#fff;
  border-bottom:1px solid #eee;box-shadow:var(--shadow);
}
.header-inner{
  max-width:1140px;margin:0 auto;width:100%;
  display:flex;justify-content:space-between;align-items:center;
}
.brand{font-weight:700;font-size:24px;color:var(--heading);text-transform:uppercase;letter-spacing:-0.5px}
.site-nav a{margin-left:20px;color:#202124;font-weight:600;font-size:14px}
.site-nav a:hover{color:var(--brand)}

/* Layout Grid */
.container{
  max-width:1140px;margin:30px auto;padding:0 20px;
  display:grid;grid-template-columns:1fr;gap:30px;
}
@media (min-width: 900px) {
  .container {
    grid-template-columns: 1fr 340px; /* Main content + Sidebar */
  }
}

/* Main Content Area */
.main-content {
  min-width: 0; /* Prevent grid blowout */
}

/* Typography */
h1,h2,h3{color:var(--heading);font-family:"Poppins","Open Sans",Arial,sans-serif;font-weight:700}
h1{font-size:28px;margin:0 0 15px}
h2{font-size:22px;margin:25px 0 12px}
h3{font-size:18px;margin:20px 0 10px}
p{margin:0 0 16px}
ul,ol{padding-left:20px;margin:0 0 16px}
li{margin:8px 0}

/* Label/Category Tag */
.label-head{
  display:inline-block;
  background:var(--brand);
  color:#fff;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:3px;
  margin-bottom:10px;
}
.label-head a{color:#fff!important;text-decoration:none}

/* Post Card (Grid View) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.post-card:hover { transform: translateY(-3px); }
.post-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.post-card-title {
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.4;
}
.post-card-title a { color: var(--heading); }
.post-card-title a:hover { color: var(--brand); }

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 900px) {
  .sidebar {
    position: sticky;
    top: 90px; /* 70px header + 20px gap */
    align-self: start;
    height: fit-content;
  }
}
.widget {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}
.widget-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--brand);
}

/* Newsletter Widget */
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: inherit;
}
.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: var(--heading);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--brand); }
.newsletter-message {
  display: none;
  color: green;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* AdSense Placeholders */
.ads-placeholder {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  margin: 20px 0;
  min-height: 250px; /* Square ad height */
  width: 100%;
}
.ads-placeholder.horizontal {
  min-height: 90px; /* Leaderboard height */
}

/* Footer */
.site-footer{
  background:#fff;
  border-top:1px solid #eee;
  padding:30px 0;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  margin-top:40px;
}
