body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    flex: 1;
}

.site-footer {
    margin-top: auto;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #6b7280;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    padding: 14px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    color: #6b7280;
}

.main-article {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    position: relative;
}

.main-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.main-article:hover::before {
    opacity: 1;
}

.article-header {
    padding: 50px 50px 40px 50px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.8) 100%);
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.article-category {
    background: linear-gradient(135deg, #9ca3af 0%, #e1e2e4 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(95, 95, 96, 0.3);
}

.article-date, .article-updated {
    color: #6b7280;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.article-date i, .article-updated i {
    color: #9ca3af;
}

.article-title {
    font-size: 2.8rem;
    margin: 0 0 25px 0;
    line-height: 1.2;
    color: #1f2937;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-excerpt {
    font-size: 1.3rem;
    color: #4b5563;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
}

.article-subtitle {
    color: #6b7280;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 20px 0;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.9;
}

.article-cover {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.main-article:hover .article-cover img {
    transform: scale(1.02);
}

.article-content {
    padding: 50px;
    font-size: 1.15rem;
    color: #1f2937;
    position: relative;
    z-index: 2;
    background: transparent;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #1f2937;
    margin: 1.5em 0 0.8em 0;
    font-weight: 600;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 0.3em;
}

.article-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    padding-bottom: 0.2em;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content h4 {
    font-size: 1.25rem;
}

.article-content h5,
.article-content h6 {
    font-size: 1.1rem;
}

.article-content p {
    margin: 1.5em 0;
    line-height: 1.8;
    color: #374151;
    text-align: justify;
}

.article-content p:first-child {
    margin-top: 0;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 2.5em;
    line-height: 1.7;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin: 0.5em 0;
}

.article-content li {
    margin: 0.5em 0;
    color: #374151;
}

.article-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 197, 253, 0.05) 100%);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4b5563;
    position: relative;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.article-content blockquote:first-child {
    margin-top: 0;
}

.article-content blockquote p {
    margin: 0;
}



.article-content strong {
    font-weight: 600;
    color: #1f2937;
}

.article-content em {
    font-style: italic;
    color: #4b5563;
}

.article-content a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.article-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    padding: 0.1em 0.2em;
    border-radius: 4px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.article-content hr {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    margin: 2em 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-content th,
.article-content td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-content th {
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
    color: #1f2937;
}

.article-content tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 50px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    cursor: pointer;
    min-height: 120px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.nav-link.disabled {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: rgba(156, 163, 175, 0.3);
}

.nav-link.disabled:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-content {
    flex: 1;
    pointer-events: none;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.nav-title {
    font-weight: 700;
    line-height: 1.4;
    color: #1f2937;
    font-size: 1.2rem;
}

.nav-link.disabled .nav-title {
    color: #9ca3af;
}

.nav-link i {
    font-size: 1.5rem;
    color: #6b7280;
    opacity: 0.8;
}

.nav-link.disabled i {
    color: #9ca3af;
    opacity: 0.5;
}

.nav-link:hover i {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.similar-articles {
    margin: 50px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.similar-articles h2 {
    font-size: 2.2rem;
    margin: 0 0 40px 0;
    color: #1f2937;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.similar-articles h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #6b7280 0%, #1d4ed8 100%);
    border-radius: 2px;
}

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

.similar-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.similar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.similar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.similar-card:hover::before {
    opacity: 1;
}

.similar-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similar-card:hover .similar-image img {
    transform: scale(1.08);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
    font-size: 3rem;
}

.similar-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.similar-content h3 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 700;
}

.similar-content h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.similar-content h3 a:hover {
    color: #6b7280;
}

.similar-content p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.comments-section {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    color: #1f2937;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.comments-section h2 i {
    margin-right: 12px;
    color: #6b7280;
}

.comments-list {
    margin-bottom: 40px;
}

.comment {
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.95rem;
}

.comment-date {
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.comment-date i {
    margin-right: 6px;
}

.comment-content {
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
}

.comment-form {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
}

.comment-form h3 {
    color: #1f2937;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 600;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #6b7280;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-comment {
    background: linear-gradient(135deg, #6b7280, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.comment-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.comment-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.comment-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

@media (max-width: 1024px) {
    .article-container {
        max-width: 800px;
    }
    
    .article-header {
        padding: 40px 40px 30px 40px;
    }
    
    .article-content {
        padding: 40px;
    }
    
    .similar-articles {
        padding: 40px;
    }
    
    .similar-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 15px;
    }
    
    .article-header {
        padding: 35px 25px 25px 25px;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-content {
        padding: 30px 25px;
        font-size: 1.1rem;
    }
    
    .article-cover {
        height: 300px;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
    
    .nav-link {
        padding: 25px;
        min-height: 100px;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .similar-articles {
        padding: 30px 25px;
        margin: 40px 0;
    }
    
    .similar-articles h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .similar-image {
        height: 180px;
    }

    .comments-section {
        padding: 25px;
        margin-top: 40px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment {
        padding: 15px;
    }
    
    .btn-comment {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 30px 20px 20px 20px;
    }
    
    .article-title {
        font-size: 1.9rem;
    }
    
    .article-content {
        padding: 25px 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .article-cover {
        height: 250px;
    }
    
    .nav-link {
        padding: 20px;
        min-height: 90px;
    }
    
    .nav-title {
        font-size: 1.1rem;
    }
    
    .similar-articles {
        padding: 25px 20px;
    }
    
    .similar-articles h2 {
        font-size: 1.6rem;
    }
    
    .similar-content {
        padding: 25px;
    }
    
    .similar-image {
        height: 160px;
    }
}
