
:root {
  --primary: #0b1b3d;
  --secondary: #1e3a8a;
  --gold: #d4af37;
  --accent: #0066cc;
  --bg: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; }

/* HEADER */
header { background: var(--primary); color: #fff; padding: 1.25rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.logo-container { display: flex; align-items: center; gap: 14px; text-decoration: none; color: white; }
.logo-container svg { width: 40px; height: 40px; }
.logo-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; color: #ffffff; }
.logo-title span { color: var(--gold); }
.logo-subtitle { font-size: 0.78rem; color: #94a3b8; display: block; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; }

nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: var(--gold); }

/* HERO SECTION ON INDEX */
.hero { background: linear-gradient(135deg, #0b1b3d 0%, #1e3a8a 100%); color: white; text-align: center; padding: 5rem 1.5rem; border-bottom: 4px solid var(--gold); }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 2rem auto; color: #cbd5e1; line-height: 1.5; }

.search-box { display: flex; max-width: 600px; margin: 0 auto; background: white; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.search-box input { border: none; padding: 1rem 1.25rem; width: 100%; font-size: 1.05rem; outline: none; }
.search-box button { background: var(--gold); color: var(--primary); border: none; padding: 0 1.75rem; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.search-box button:hover { background: #e5be48; }

/* MAIN CONTENT CONTAINER */
.container { max-width: 1100px; margin: 3rem auto; padding: 0 1.5rem; }

/* FEATURE GRID FOR HOME PAGE */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 1rem; }
.feature-card { background: white; border-radius: 10px; padding: 2rem; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.feature-card h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted); font-size: 0.98rem; }

/* ARTICLE DETAIL STYLES */
.post-container { max-width: 820px; margin: 2rem auto; background: white; padding: 3rem; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.post-header { border-bottom: 2px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.post-header h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 0.75rem; line-height: 1.3; }
.post-meta { display: flex; gap: 1rem; align-items: center; color: var(--muted); font-size: 0.9rem; }
.tag { display: inline-block; background: #e0f2fe; color: #0369a1; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 4px; margin-bottom: 0.75rem; width: fit-content; }
.post-content p { margin-bottom: 1.25rem; font-size: 1.05rem; color: var(--text); }
.post-content h2 { margin: 2rem 0 1rem 0; color: var(--primary); font-size: 1.45rem; border-left: 4px solid var(--gold); padding-left: 12px; }
.post-content ul { margin: 1rem 0 1.5rem 1.5rem; color: var(--text); }
.post-content li { margin-bottom: 0.5rem; }
.back-btn { display: inline-block; margin-bottom: 1.5rem; color: var(--accent); font-weight: 700; text-decoration: none; }
.back-btn:hover { text-decoration: underline; }

/* FOOTER */
footer { background: var(--primary); color: #cbd5e1; text-align: center; padding: 3rem 1.5rem; margin-top: 5rem; font-size: 0.9rem; border-top: 4px solid var(--gold); }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }
