/* style.css - unified professional styles for Titanium Tribune */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Body */
body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
  line-height: 1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Container */
.container { width: 92%; max-width: 1100px; margin: 0 auto; }

/* Header */
.site-header {
  background: #0b2545; color: #fff; padding: 18px 0;
  box-shadow: 0 2px 6px rgba(11,37,69,0.06);
}
.site-header .container { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.logo { font-weight:700; font-size:20px; letter-spacing:0.4px; color:#fff; text-decoration:none; }
.site-nav ul { list-style:none; display:flex; gap:18px; align-items:center; margin:0; padding:0; }
.site-nav ul li { list-style:none; }
.site-nav a { color:#e6eefc; text-decoration:none; padding:6px 8px; font-weight:600; border-radius:6px; display:inline-block; }
.site-nav a.active, .site-nav a:hover { background: rgba(230,238,252,0.12); color:#fff; }

/* Hero */
.hero {
  margin: 26px auto; background: linear-gradient(130deg,#0b6bff 0%, #5b21b6 100%);
  color:#fff; padding:48px 20px; border-radius:12px; text-align:center;
  box-shadow: 0 8px 24px rgba(11,43,92,0.12);
}
.hero h1 { font-size:34px; margin-bottom:12px; font-weight:700; }
.hero p { font-size:16px; max-width:880px; margin: 0 auto 18px; color: rgba(255,255,255,0.95); }
.hero .cta { display:inline-block; padding:12px 20px; background:#fff; color:#0b2545; border-radius:8px; font-weight:700; text-decoration:none; }

/* Latest posts (grid) */
.posts { margin-top:28px; margin-bottom:28px; }
.post-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
}

/* Post Card */
.post-card {
  background:#fff; padding:18px; border-radius:10px; box-shadow:0 6px 20px rgba(12,33,71,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow:0 12px 30px rgba(12,33,71,0.10); }
.post-card h3 { font-size:18px; color:#0b2545; margin-bottom:8px; }
.post-card p { color:#4b5563; font-size:14px; margin-bottom:12px; }
.read-more { display:inline-block; padding:8px 14px; background:#0b6bff; color:#fff; border-radius:8px; text-decoration:none; font-weight:700; }
.read-more:hover { background:#084fd6; }

/* Article / single post */
.article-wrap { max-width:900px; margin:30px auto 60px; }
.article-content { background:#fff; padding:26px; border-radius:10px; box-shadow: 0 8px 28px rgba(12,33,71,0.06); }
.article-content h1 { font-size:28px; margin-bottom:8px; color:#0b2545; }
.meta { color:#6b7280; font-size:13px; margin-bottom:18px; }
.article-content p { color:#374151; font-size:16px; margin-bottom:16px; line-height:1.8; }

/* Blog index list (blog.html) */
.blog-list { display:flex; flex-direction:column; gap:14px; margin-top:14px; }
.blog-list .post-card { display:flex; flex-direction:column; }

/* Contact form (kept as before) */
.contact-wrap { max-width:700px; margin:30px auto 50px; }
.contact-box { background:#fff; padding:22px; border-radius:10px; box-shadow:0 8px 24px rgba(12,33,71,0.06); }
.form-row { margin-bottom:14px; }
label { display:block; font-weight:600; margin-bottom:8px; color:#111827; font-size:14px; }
input[type="text"], input[type="email"], textarea {
  width:100%; padding:12px 14px; border:1px solid #e6eefc; border-radius:8px; font-size:15px; color:#111827;
}
textarea { min-height:140px; resize:vertical; }
button[type="submit"] {
  background:#0b6bff; color:#fff; padding:12px 16px; border:none; border-radius:8px; font-weight:700; cursor:pointer;
}
button[type="submit"]:hover { background:#084fd6; }

/* Footer */
.site-footer { background:#0b2545; color:#e6eefc; padding:18px 0; text-align:center; border-top:4px solid rgba(255,255,255,0.03); }
.site-footer a { color:#cfe4ff; text-decoration:underline; }

/* Responsive tweaks */
@media (max-width: 880px) {
  .hero h1 { font-size:28px; } .hero p { font-size:15px; padding:0 12px; }
  .site-header .container { flex-direction:column; gap:12px; align-items:flex-start; }
  .site-nav { width:100%; }
}
