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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    margin-top: 80px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f3ea;
    color: #0b1957;
    line-height: 1.8;
    overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
    background-color: rgba(11, 25, 87, 0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.navbar-brand {
    font-weight: 650;
    color: #f8f3ea;
    text-decoration: none;
    font-size: 1.2rem;
}

.navbar-nav {
    display: flex;
    list-style-type: none;
}

.navbar-nav > li > a {
    color: #f8f3ea;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
}

.navbar-nav > li > a:hover {
    color: #9eccfa;
    background-color: rgba(158, 204, 250, 0.1);
}

.navbar-social a {
    color: #f8f3ea;
    font-size: 1.2rem;
    margin-left: 15px;
}

/* === ARTICLE === */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-header {
    margin-bottom: 40px;
}

.category-badge {
    display: inline-block;
    background: #0b1957;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
}

.article-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #0b1957;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    border-top: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #9eccfa;
    color: #0b1957;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
}

.article-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin: 40px 0;
}

/* === ARTICLE CONTENT === */
.article-content {
    font-size: 18px;
    line-height: 1.9;
    margin: 40px 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 700;
    margin: 40px 0 20px;
    line-height: 1.3;
    color: #0b1957;
}

.article-content h1 { font-size: 36px; }
.article-content h2 { font-size: 32px; }
.article-content h3 { font-size: 28px; }
.article-content h4 { font-size: 24px; }

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 40px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: #9eccfa;
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

.article-content blockquote {
    border-left: 4px solid #9eccfa;
    padding-left: 30px;
    margin: 30px 0;
    font-style: italic;
    color: #6b7280;
    font-size: 20px;
}

.article-content code {
    background: rgba(11, 25, 87, 0.05);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background: #0b1957;
    color: #f8f3ea;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-content pre code {
    background: none;
    color: inherit;
}

/* === LIKE SECTION === */
.like-section {
    text-align: center;
    padding: 60px 0;
    border-top: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    border: 3px solid #0b1957;
    border-radius: 50px;
    color: #0b1957;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: #0b1957;
    color: white;
    transform: scale(1.05);
}

.like-btn.liked {
    background: #0b1957;
    color: white;
}

/* === RELATED POSTS === */
.related-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e5e7eb;
}

.related-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #0b1957;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-10px);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-card-title a {
    color: #0b1957;
    text-decoration: none;
}

.related-card-title a:hover {
    color: #9eccfa;
}

/* === FOOTER === */
footer {
    background-color: #0b1957;
    color: #f8f3ea;
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin-right: 40px;
    margin-bottom: 30px;
    min-width: 200px;
}

.footer-section h2 {
    color: #9eccfa;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-section a {
    color: #e6d8c7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #9eccfa;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(230, 216, 199, 0.1);
}

.footer-social a {
    color: #e6d8c7;
    font-size: 1.5rem;
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 980px) {
    .navbar-nav,
    .navbar-social {
        display: none;
    }

    .article-title {
        font-size: 32px;
    }

    .article-content {
        font-size: 16px;
    }

    .featured-image {
        height: 300px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 640px) {
    body {
        margin-top: 60px;
    }

    .container {
        padding: 20px;
    }

    .article-title {
        font-size: 28px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
