
/* =========================
   Blog / Article Styles
   File: /assets/css/blog.css
   Clean, readable, professional
   ========================= */

:root{
  --bg: #ffffff;
  --text: #0f1724;
  --muted: #6b7280;
  --accent: #0e36a3; /* brand accent */
  --card: #f8fafc;
  --border: #e6e9ef;
  --radius: 12px;
  --max-width: 1180px;
  --shadow: 0 6px 30px rgba(12, 18, 29, 0.06);
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Utility */
.container{
  width:92%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:32px 0;
}

/* HEADER */
 /* ===== PRO HEADER ===== */
.pro-header {
  position: sticky;
  top: 0;
  background: #0D0D0D;
  border-bottom: 0.25px solid #4e4848;
  z-index: 999;
  width: 100%;
  backdrop-filter: blur(10px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
}

/* Header layout */
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 0.5px;
  transition: 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

/* Desktop Navigation */
.nav a {
  margin-left: 28px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  transition: 0.25s;
}

.nav a:hover {
  color: #F1B423;
  transform: translateY(-1px);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Search */
.search-box {
  padding: 9px 14px;
  border: 1px solid #333;
  border-radius: 8px;
  width: 240px;
  background: #353433;
  color: #fff;
  transition: 0.25s;
}

.search-box:focus {
  border-color: #F1B423;
  outline: none;
}

/* Account Icon */
.account-btn {
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  transition: 0.25s;
}

.account-btn:hover {
  color: #F1B423;
}

/* ===== MOBILE MENU ICON ===== */
.mobile-menu-icon {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #0d0d0d;
  border-bottom: 1px solid #222;
  animation: dropdown 0.3s ease forwards;
}

.mobile-nav a {
  padding: 14px 20px;
  border-top: 1px solid #1c1c1c;
  text-decoration: none;
  color: #e6e6e6;
  transition: 0.2s;
  font-size: 16px;
}

.mobile-nav a:hover {
  color: #D64228;
}

/* Show when opened */
.mobile-nav.open {
  display: flex;
}

/* ===== DROPDOWN ANIMATION ===== */
@keyframes dropdown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .search-box { display: none; }
  .mobile-menu-icon { display: block; }
}

/* Phones < 480px */
@media (max-width: 480px) {
  .logo { font-size: 20px; }
  .account-btn { font-size: 20px; }
}
/* Layout grid */
.page-grid{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:40px;
  align-items:start;
  padding-top:28px;
}

/* ARTICLE */
.post{ background:transparent; }
.post-header .kicker{
  display:inline-block;
  font-size:13px;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-weight:600;
  margin-bottom:8px;
}
.post-title{
  font-size:34px;
  margin:6px 0 8px;
  line-height:1.15;
  color:var(--text);
}
.post-meta{
  color:var(--muted);
  font-size:14px;
  margin-bottom:18px;
}

/* Hero image */
.post-hero{
  margin:18px 0 26px;
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.post-hero img{ width:100%; height:auto; display:block; }

/* BODY TEXT */
.blog-content p{ font-size:17px; color:var(--text); margin:16px 0; }
.blog-content h2{ font-size:22px; margin-top:28px; color:var(--text); }
.blog-content h3{ font-size:18px; margin-top:20px; color:var(--text); }
.blog-content ul, .blog-content ol{ margin:10px 0 20px 22px; color:var(--text); }
.blog-content li{ margin:8px 0; font-size:16px; color:var(--text); }

/* Blockquote */
.blog-content blockquote{
  margin:20px 0;
  padding:16px;
  background:linear-gradient(180deg, rgba(6,182,212,0.04), rgba(6,182,212,0.02));
  border-left:4px solid rgba(6,182,212,0.18);
  color:var(--text);
  border-radius:8px;
}

/* CTA buttons in post */
.post-cta{
  margin:28px 0 8px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.btn-primary, .btn-outline{
  display:inline-block;
  text-decoration:none;
  padding:12px 18px;
  border-radius:10px;
  font-weight:600;
  font-size:15px;
}
.btn-primary{ background:var(--accent); color:#fff; border:1px solid rgba(0,0,0,0.04); box-shadow:0 6px 18px rgba(6,182,212,0.08); }
.btn-primary:hover{ opacity:0.95; transform:translateY(-1px); transition:all .12s ease; }
.btn-outline{ border:1px solid var(--border); color:var(--text); background:#fff; }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent) }

/* Post footer */
.post-footer{ margin-top:30px; padding-top:20px; border-top:1px solid var(--border); }
.post-tags a{ color:var(--accent); text-decoration:none; margin-right:8px; font-size:14px; }
.post-tags a:hover{ text-decoration:underline; }

/* SIDEBAR */
.sidebar{ padding-left:18px; border-left:1px solid var(--border); }
.widget{ background:#fff; padding:16px; border-radius:10px; margin-bottom:18px; box-shadow:var(--shadow); }
.widget-title{ font-size:16px; margin-bottom:8px; color:var(--text); }
.widget ul{ list-style:none; padding-left:0; margin:0; }
.widget ul li{ padding:8px 0; border-bottom:1px dashed #f0f3f6; }
.widget a{ color:var(--text); text-decoration:none; font-size:15px; }
.widget a:hover{ color:var(--accent) }

/* Subscribe form (compact) */
.subscribe-form{ display:flex; gap:8px; }
.subscribe-form input[type="email"]{
  padding:10px 12px; border-radius:8px; border:1px solid var(--border); flex:1;
}
.subscribe-form button{ padding:10px 12px; border-radius:8px; border:none; background:var(--accent); color:#fff; cursor:pointer; }

/* Footer */
.pro-footer {
  background: #0d0d0d;
  color: #bfbfbf;
  padding: 60px 0;
  margin-top: 60px;
  border-top: 1px solid #222;
  font-family: "Inter", sans-serif;
}

/* Grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Branding */
.footer-logo {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Column headings */
.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

/* Links */
.footer-col a {
  display: block;
  margin: 6px 0;
  color: #bfbfbf;
  font-size: 15px;
  transition: 0.25s ease;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Newsletter input */
.footer-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  margin-top: 10px;
  font-size: 15px;
}

.footer-input:focus {
  outline: none;
  border-color: #F1B423;
}

/* Button */
.footer-btn {
  margin-top: 10px;
  padding: 12px 16px;
  background: #EC8B23;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: 0.25s;
  width: 100%;
}

.footer-btn:hover {
  background: #000000;
}

/* Copyright */
.footer-copy {
  text-align: center;
  margin-top: 40px;
  color: #777;
  font-size: 14px;
}

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

/* Tablets */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col a:hover {
    transform: none;
  }

  .footer-btn {
    width: 100%;
  }

  .footer-logo {
    margin-bottom: 20px;
  }
}

/* Accessibility: screen-reader-only */
.sr-only{
  position:absolute !important;
  width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Responsive */
@media (max-width: 1000px) {
  .page-grid{ grid-template-columns: 1fr; padding-bottom:18px; }
  .sidebar{ padding-left:0; border-left:none; margin-top:26px; }
  .container{ padding:20px 6%; }
  .post-title{ font-size:28px; }
}

@media (max-width: 520px){
  .post-title{ font-size:22px; }
  .brand{ font-size:18px; }
  .main-nav{ display:none; }
}

