/*File for styles of each blog/article*/

:root{
  --primary:#0077b5;
  --accent:#0062a8;
  --muted:#6b7280;
  --bg:#f4f4f4;
  --card:#fff;
  --max-width:1100px;
  --radius:12px;
  --shadow:0 10px 30px rgba(0,0,0,0.06);
  --post-padding:22px;
  --gap:18px;
  --text:#222;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg);color:var(--text)}
a{color:inherit;text-decoration:none}
.container{width:92%;max-width:var(--max-width);margin:0 auto;padding:0 12px}

/* Header */
header{
  background:var(--card);padding:.9rem 0;border-bottom:1px solid #eee;text-align:center;
  position:sticky;top:0;z-index:20}
header .container{display:flex;flex-direction:column;align-items:center;gap:8px}
header h1{margin:0;font-size:1.5rem;color:var(--accent);font-weight:700;letter-spacing:.2px}
header nav{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;align-items:center;margin-top:6px}
header nav a{color:#555;font-weight:600;padding:6px 10px;border-radius:8px;display:inline-flex;gap:8px;align-items:center;transition:color .18s ease,background .18s ease,transform .12s ease}
header nav a i{width:18px;text-align:center}
header nav a:hover{color:var(--primary);background:rgba(0,119,181,0.06);transform:translateY(-2px)}
header nav a.youtube-link{color:#d93025;font-weight:700}
header nav a.youtube-link:hover{color:#b1271a}
/*social-icons*/
nav a.youtube-link { color: #d93025; font-weight: 700; } 
nav a.youtube-link:hover { color: #b1271a; } nav a[href*="instagram.com"], 
nav a.instagram-link { color: #e1306c; font-weight: 700; } nav a[href*="instagram.com"]:hover, 
nav a.instagram-link:hover { color: #c21a5a; } 
nav a.github-link, nav a[href*="github.com"] { color: #0f1720; font-weight: 700; } 
nav a.github-link:hover, nav a[href*="github.com"]:hover { color: #000000; }
/* Blog link (blogs-link) */
nav a.blogs-link,
nav a[href*="blogs"] {
  color: #0062a8;
  font-weight: 700;
}
nav a.blogs-link:hover,
nav a[href*="blogs"]:hover {
  color: #05478a;
}
/* Certifications link */
nav a.certifications-link {
  color: #0f9d58;
  font-weight: 700;
}
nav a.certifications-link:hover {
  color: #0b7d46;
}

/* Articles hero card */
.articles{margin:1.5rem 0;display:flex;justify-content:center;align-items:center;padding:0 8px}
.techpana-card{width:100%;max-width:var(--max-width);background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:var(--post-padding);text-align:center;display:flex;flex-direction:column;align-items:center;gap:18px;margin:0 auto;transition:transform .18s ease,box-shadow .18s ease}
.techpana-card img{max-width:50%;height:auto;display:block}
.techpana-card .btn{max-width:50%;display:block}

/* Footer */
.site-footer{margin-top:28px;padding:18px 0;text-align:center;color:var(--muted)}

/* Focus outlines */
.post-card:focus,.post-card a:focus,.btn:focus,header nav a:focus{outline:3px solid rgba(11,116,218,0.18);outline-offset:3px;border-radius:8px}

/* Small screens */
@media (max-width:480px){
  .container{width:94%}
  header h1{font-size:1.25rem}
  .post-cover{width:96px;height:96px;flex:0 0 96px;font-size:24px}
  .post-card{padding:16px;min-height:auto}
  .post-title{font-size:1rem}
  .post-excerpt{font-size:.95rem}
  .posts-grid{gap:14px}
}
