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

:root {

    --primary-color: #eb9725;
    --primary-dark: #d8811d;
    --primary-light: #fab260;
    --secondary-color: #e9b10e;
    --accent-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
li {
    list-style: none;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-text {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.5rem 0;
}

.btn-text:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 3rem;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-lighter);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-primary {
    background-color: var(--primary-light);
    color: var(--bg-color);
}

.tag-secondary {
    background-color: #e0e7ff;
    color: var(--accent-color);
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo span {
    color: var(--primary-color);
}

.logo svg {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
    fill: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.nav-cta {
    margin-left: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}


.footer {
    background-color: var(--bg-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subscribe-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.subscribe-form button {
    width: 100%;
}

.footer-bottom {
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--bg-lighter);
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-3px);
}


.main-content {
    margin-top: var(--header-height);
}


.featured-section {
    padding-top: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.featured-card.large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.featured-img {
    height: 220px;
    overflow: hidden;
}

.featured-card.large .featured-img {
    height: 100%;
}

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

.featured-card:hover .featured-img img {
    transform: scale(1.05);
}

.featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-card.large .featured-content {
    padding: 2.5rem;
}

.news-block_one-lower {
    position: relative;
    margin-left: -6px;
    z-index: 1;
    background-color: var(--primary-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.news-block_one-lower:before {
    position: absolute;
    content: '';
    left: 1px;
    top: -7px;
    border-bottom: 8px solid #564630;
    border-left: 6px solid transparent;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--bg-light);
    justify-content: space-between;
    padding: 5px 0;
}

.featured-meta .tag {
    margin-right: 0;
    margin-bottom: 0;
}

.news-block_one-more {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: var(--bg-light);
    padding: 8px 20px 12px 20px;
}

.news-block_one-more:before {
    position: absolute;
    content: '';
    left: -20px;
    top: -15px;
    right: 0px;
    bottom: 0px;
    transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    background-color: var(--primary-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}

.news-block_one-more:after {
    position: absolute;
    content: '';
    left: -30px;
    top: -4px;
    right: 50px;
    bottom: 0px;
    z-index: -1;
    transform: skew(15deg);
    transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    background-color: var(--primary-dark);
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-card.large .featured-title {
    font-size: 1.5rem;
}

.featured-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}


.categories-section {
    background-color: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background-color: var(--bg-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-light);
}


.latest-section .section-title {
    text-align: center;
}

.latest-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.latest-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.latest-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.latest-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.category-item {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--primary-dark);
    color: var(--title);
    font-weight: 500;
    border-radius: 50px 0 0 0;
    padding: 4px 12px 4px 22px;
    z-index: 1;
}

.category-item:hover {
    color: var(--bg-light);
}

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

.latest-card:hover .latest-img img {
    transform: scale(1.05);
}

.latest-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.latest-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.latest-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.highlight-section {
    background-color: var(--bg-light);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.highlight-card {
    background-color: white;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.highlight-img {
    height: 240px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

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

.highlight-card:hover .highlight-img img {
    transform: scale(1.05);
}

.highlight-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.highlight-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}


.list-header {
    padding: 3rem 0 2rem;
    background-color: var(--bg-light);
    margin-top: var(--header-height);
}

.list-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.list-description {
    color: var(--text-secondary);
    max-width: 700px;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-select {
    appearance: none;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: white;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 180px;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-img {
    height: 200px;
    overflow: hidden;
}

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

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.article--card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background-color: white;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.pagination-link:hover,
.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}


.article-header {
    padding: 0rem 0 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-meta-detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.article-featured-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    height: 400px;
}

.article-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 2rem 0 4rem;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}



.article-body p {
    margin-bottom: 1.5rem;
}

.article-body blockquote {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-lighter);
    font-style: italic;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body ul,
.article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body img {
    border-radius: var(--radius-md);
    margin: 1rem auto;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    align-self: start;
}

.share-widget {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.share-widget h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: white;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.share-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.related-articles {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.related-articles h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.related-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: var(--text-primary);
    font-weight: 500;
}

.related-list a:hover {
    color: var(--primary-color);
}

.comments-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.comments-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.comment-form {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.comment-form h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.comment-list {
    margin-bottom: 3rem;
}

.comment-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.6;
}


.breadcrumb-section {
    padding: 1.5rem 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}


.category-header {
    padding: 1rem 0;
    background-color: var(--bg-lighter);
}

.category-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.category-icon-large {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--text-primary);
}

.category-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.category-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.stat-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}


.filters-section {
    padding: 2rem 0;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.filters-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    background-color: var(--bg-lighter);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.remove-filter {
    background: none;
    border: none;
    margin-left: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1;
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.remove-filter:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.clear-all-filters {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-left: auto;
}

.clear-all-filters:hover {
    text-decoration: underline;
}


.category-content-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 3rem;
}


.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.article-card.style-1 {
    display: grid;
    grid-template-columns: 300px 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: auto;
}

.article-card.style-1:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-card.style-1 .article-img {
    height: 100%;
    min-height: 200px;
}


.article-card.style-2 {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.article-card.style-2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-card.style-2 .article-img {
    width: 250px;
    flex-shrink: 0;
    height: auto;
}


.article-card.style-3 {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.article-card.style-3.featured {
    border: 2px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.article-card.style-3:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-card.style-3 .article-img {
    height: 200px;
}


.article-card.style-4 {
    border-radius: var(--radius-lg);
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1.5rem;
}

.article-card.style-4:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}


.article-card.style-5 {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border-radius: var(--radius-lg);
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1.5rem;
}

.article-card.style-5:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-card.style-5 .article-img-small {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-card.style-5 .article-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card.style-5:hover .article-img-small img {
    transform: scale(1.05);
}


.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card.style-4 .article-content,
.article-card.style-5 .article-content {
    padding: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.difficulty {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.difficulty.beginner {
    background-color: #d1fae5;
    color: #065f46;
}

.difficulty.intermediate {
    background-color: #fef3c7;
    color: #92400e;
}

.difficulty.advanced {
    background-color: #fee2e2;
    color: #991b1b;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card.style-3 .article-title {
    font-size: 1.375rem;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.author-avatar-small {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    align-self: start;
}

.sidebar-widget {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-item {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
    border-bottom: none;
}

.related-title {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.related-item:hover .related-title {
    color: var(--primary-color);
}

.related-meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: white;
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tag-cloud-item:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.subscribe-widget p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    text-align: center;
}

.authors-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-sidebar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resources-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.resources-list li:last-child {
    border-bottom: none;
}

.resources-list a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.resources-list a:hover {
    color: var(--primary-color);
}


.pagination-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}



.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    background-color: white;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.pagination-link:hover,
.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-link.prev,
.pagination-link.next {
    gap: 0.5rem;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-light);
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}




.article-meta-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.updated-date {
    color: var(--text-secondary);
    font-weight: 500;
}

.article-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
}

.article-author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.author-avatar-large {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.author-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.article-featured-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    position: relative;
}

.article-featured-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 0.75rem 1rem;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}


.article-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    padding-top: 1rem;
    color: var(--text-primary);
    border-top: 2px solid var(--border-color);
}

.article-body h2:first-of-type {
    border-top: none;
    padding-top: 0;
}



.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body li::marker {
    color: var(--primary-color);
}


.table-of-contents {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--primary-color);
}

.table-of-contents h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.table-of-contents ol {
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.table-of-contents li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.table-of-contents a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.table-of-contents a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}


.article-note {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.note-info {
    background-color: #e0f2fe;
    border-left-color: #0ea5e9;
}

.note-important {
    background-color: #fef3c7;
    border-left-color: #f59e0b;
}

.note-tip {
    background-color: #d1fae5;
    border-left-color: #10b981;
}

.article-note h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.article-note p {
    margin-bottom: 0;
    color: var(--text-primary);
}


.code-block {
    background-color: #1e293b;
    color: #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-caption {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}


.article-image {
    margin: 2.5rem 0;
}

.article-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
}


.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.application-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--primary-light);
}

.application-icon {
    width: 3rem;
    height: 3rem;
    background-color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.application-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.application-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}


.article-conclusion {
    background-color: var(--bg-lighter);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 3rem 0;
    border-left: 4px solid var(--primary-color);
}

.article-conclusion h3 {
    margin-top: 0;
    color: var(--text-primary);
}


.article-tags {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.article-tags h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags-list .tag {
    text-decoration: none;
}


.article-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.meta-value {
    font-weight: 600;
    color: var(--text-primary);
}


.article-share {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.article-share h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-button[data-platform="twitter"]:hover {
    background-color: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-button[data-platform="linkedin"]:hover {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

.share-button[data-platform="facebook"]:hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-button[data-platform="reddit"]:hover {
    background-color: #ff4500;
    color: white;
    border-color: #ff4500;
}

.share-button.copy-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}


.author-card {
    display: flex;
    gap: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 3rem 0;
}

.author-content {
    flex: 1;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.author-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.author-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.author-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.author-link:hover {
    text-decoration: underline;
}


.related-articles-section {
    margin: 4rem 0 3rem;
}

.related-articles-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.related-articles-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-img {
    height: 160px;
    overflow: hidden;
}

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

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.related-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.comments-section {
    margin: 4rem 0 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.comments-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
}


.comment-form {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.comment-form h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.checkbox-label input {
    width: auto;
}


.comment-list {
    margin-bottom: 3rem;
}

.comment-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-reply {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
}

.comment-reply:hover {
    text-decoration: underline;
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
}

.comment-action:hover {
    color: var(--primary-color);
}

.comment-author-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}


.comment-reply-item {
    margin-left: 3.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-lighter);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.comment-reply-item .comment-header {
    margin-bottom: 0.75rem;
}

.comment-reply-item .comment-avatar {
    width: 2rem;
    height: 2rem;
}


.author-widget {
    text-align: center;
    padding: 2rem;
}

.author-avatar-sidebar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.author-avatar-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name-sidebar {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.author-title-sidebar {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.author-bio-sidebar {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}


.toc-widget {
    position: sticky;
    top: 6rem;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    display: block;
}

.toc-link:hover {
    background-color: var(--bg-lighter);
    color: var(--primary-color);
    padding-left: 1.25rem;
}


.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    border: none;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}


@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card.large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-grid,
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .article-content-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-card.style-1,
    .article-card.style-2 {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .article-card.style-1 .article-img,
    .article-card.style-2 .article-img {
        width: 100%;
        height: 200px;
    }

    .category-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .category-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .article-title {
        font-size: 2.25rem;
    }

    .article-stats {
        justify-content: flex-start;
        width: 100%;
    }

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

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        position: absolute;
    }

    .header .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        position: fixed;
        top: 37px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: block;
    }

    .nav-link.active::after {
        display: none;
    }

    .main-content {
        margin-top: 36px;
    }


    .content-wrapper {
        display: block;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section {
        padding: 1.5rem 0;
    }

    .featured-card.large .featured-content {
        padding: 1.5rem;
    }

    .latest-grid,
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
    .pagination-wrapper{
        margin-bottom: 30px;
    }
    .pagination {
        display: block;
    }

    .pagination li {
        margin-top: 10px;
        position: relative;
        display: inline-block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .breadcrumb-section {
        padding: 1rem 0;
    }

    .article-header {
        padding: 0 0 10px;
    }

    .article-header h1 {
        font-size: 1.4rem;
        margin: 0;
    }

    .article-featured-img {
        height: 250px;
    }

    .related-articles-section{
        margin: 2rem 0;
    }

    .comments-section{
        margin: 1rem 0;
        padding: 10px 0;
    }

    .comment-form{
        margin: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 1.45rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .article-card.style-5 {
        flex-direction: column;
    }

    .article-card.style-5 .article-img-small {
        width: 100%;
        height: 180px;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        order: 3;
        margin-top: 1rem;
    }

    .article-title {
        font-size: 1.875rem;
    }

    .article-subtitle {
        font-size: 1.125rem;
    }

    .article-author-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-featured-img img {
        height: 300px;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-header {
        justify-content: center;
    }

    .author-links {
        justify-content: center;
    }

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

    .share-button span {
        display: none;
    }

    .share-button {
        padding: 0.75rem;
    }

    .article-meta-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filters {
        flex-direction: column;
    }

    .filter-select {
        min-width: 100%;
    }

    .category-icon-large {
        width: 4rem;
        height: 4rem;
    }

    .article-card.style-1 .article-content,
    .article-card.style-2 .article-content,
    .article-card.style-3 .article-content {
        padding: 1rem;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .article-footer .btn {
        align-self: flex-end;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }

    .article-meta-info {
        grid-template-columns: 1fr;
    }

    .comment-reply-item {
        margin-left: 0;
    }
}