:root {
    --primary: #001f3f;
    --accent: #ff6600;
    --light: #f8f9fa;
    --text: #333;
    --muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: white; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--accent);
    font-weight: 800; font-size: 1rem;
}

.logo-text { font-size: 1.5rem; font-weight: bold; }
.logo-subtext { color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; }

nav { display: flex; gap: 20px; align-items: center; }
nav a { color: white; text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--accent); }

.auth-buttons { display: flex; gap: 10px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 8px; text-decoration: none;
    font-weight: 600; border: none; cursor: pointer; transition: 0.2s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #e65c00; }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-read { margin-top: 8px; }

.hamburger {
    display: none; background: none; border: none; color: white;
    font-size: 26px; cursor: pointer;
}

.mobile-menu {
    display: none; flex-direction: column; background: var(--primary);
    padding: 16px 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.mobile-menu a {
    color: white; text-decoration: none; padding: 12px 0; font-weight: 500;
}
.mobile-auth { margin-top: 12px; }
.mobile-auth .btn { display: block; text-align: center; margin-bottom: 8px; }

.hero {
    background: linear-gradient(rgba(0,31,63,0.9), rgba(0,31,63,0.9)),
                url('https://images.unsplash.com/photo-1456513080800-b6bbe9059811?w=1600&h=600&fit=crop') center/cover;
    color: white; text-align: center; padding: 110px 20px 80px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 12px; color: white; }
.hero p { font-size: 1.2rem; opacity: 0.95; max-width: 640px; margin: 0 auto; }

.blog-section { padding: 70px 0 90px; background: var(--light); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.blog-image { height: 200px; overflow: hidden; background: #e2e8f0; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-image-placeholder {
    height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-weight: 600; background: #e8eef5;
}

.blog-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }

.blog-meta {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.dot { opacity: 0.6; }

.blog-body h2 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--primary);
}
.blog-body h2 a { color: inherit; text-decoration: none; }
.blog-body h2 a:hover { color: var(--accent); }

.excerpt {
    color: #555;
    font-size: 0.98rem;
    margin-bottom: 16px;
    flex: 1;
}

.empty-state {
    text-align: center;
    background: white;
    padding: 60px 24px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.empty-state h1, .empty-state h2 { color: var(--primary); margin-bottom: 10px; }

.post-page { padding: 40px 0 80px; background: var(--light); }
.post-container { max-width: 820px; }

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.back-link:hover { color: var(--accent); }

.post-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.post-hero-image { height: 360px; overflow: hidden; }
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-header { padding: 28px 32px 10px; }
.post-header h1 {
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.3;
    margin: 8px 0 12px;
}
.post-excerpt {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.post-content {
    padding: 10px 32px 36px;
    font-size: 1.08rem;
    color: #374151;
    line-height: 1.85;
}

.post-cta {
    margin-top: 28px;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 36px 24px;
    border-radius: 16px;
}
.post-cta h3 { margin-bottom: 8px; color: white; }
.post-cta p { margin-bottom: 18px; opacity: 0.9; }

footer {
    background: #001233;
    color: #ccc;
    padding: 28px 0;
}
.footer-inner {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer a { color: #ccc; text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 768px) {
    nav, .auth-buttons { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.1rem; }
    .hero { padding: 90px 16px 60px; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-hero-image { height: 220px; }
    .post-header, .post-content { padding-left: 20px; padding-right: 20px; }
    .post-header h1 { font-size: 1.55rem; }
}