.article-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
}

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

.article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 30px;
}

.article-main {
    background: linear-gradient(180deg, rgba(255 255 255), rgb(255 255 255 / 0%), rgb(255 255 255 / 0%), rgb(255 255 255));
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-header {
    padding: 30px 40px 20px 40px;
}

.article-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.5px;
}

.article-gallery {
    padding: 20px 40px;
}

.article-gallery-main {
    background: #f5f5f5;
    overflow: hidden;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.article-no-image {
    background: #f0f0f0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3em;
}

.article-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0;
}

.article-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.article-thumbnail:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.article-thumbnail.active {
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.article-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.article-lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.article-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.article-lightbox-close:hover {
    color: #bbb;
}

.article-lightbox-prev,
.article-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
    z-index: 1001;
}

.article-lightbox-prev:hover,
.article-lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.article-lightbox-prev {
    left: 0;
}

.article-lightbox-next {
    right: 0;
}

.article-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f1f1;
    font-size: 18px;
    text-align: center;
    width: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
}

.article-content {
    padding: 0 40px 50px 40px;
    line-height: 1.8;
    color: #222222;
}

.article-content h2 {
    color: #3d3d3d;
    font-size: 1.6em;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid #b9b9b9;
    padding-bottom: 10px;
}

.article-content h3 {
    color: #2c2c2c;
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 12px;
}

.article-content p {
    margin: 15px 0;
    font-size: 1.05em;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 30px;
    font-size: 1.05em;
}

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

.article-content strong {
    color: #3d3d3d;
    font-weight: 600;
}

.article-content em {
    font-style: italic;
    color: #2c2c2c;
}

.article-highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.article-highlight-box p {
    margin: 0;
    color: #555;
}

.article-see-also {
    margin: 30px 20px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.article-see-also-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #3d3d3d;
    margin-bottom: 25px;
}

.article-see-also-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.article-see-also-item {
    background: white;

    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.article-see-also-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.article-see-also-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.article-see-also-content {
    padding: 15px;
}

.article-see-also-link {
    display: block;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-see-also-link:hover {
    color: #667eea;
}

.article-see-also-link h3 {
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
    color: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-popular {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.article-popular-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #3d3d3d;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.article-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-popular-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

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

.article-popular-item-number {
    font-weight: 700;
    color: #333333;
    min-width: 20px;
}

.article-popular-item-link {
    color: #555;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.article-meta {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.article-meta-item {
    padding: 10px 0;
    color: #666;
    font-size: 0.95em;
}

.article-meta-label {
    font-weight: 400;
    color: #3d3d3d;
}

.article-tags {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.article-tags-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #3d3d3d;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.article-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tag {
    display: grid;
    grid-template-columns: 19px auto;
    text-decoration: none;
    margin-right: 5px;
    transition: all 0.3s ease-in-out;
}
.article-tag .tag_el2{
    background: linear-gradient(135deg, rgb(192, 68, 45) 0%, rgb(192, 68, 45) 30%, rgb(245, 158, 11)  100%);
    color: white;
    height: 32px;
    line-height: 31px;
    font-size: 0.9em;
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    padding: 0 8px 0px 2px;
    z-index: 10;
}
.article-tag .tag_el1{
    position: relative;

}
.article-tag .tag_el1::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 23px;
    background-color: #ffffff;
    box-shadow: 0 0 1px rgba(65, 65, 65, 0.7);
    z-index: 11;
}
.article-tag .tag_el1::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 30px;
    height: 30px;
    border-radius: 13px 3px 13px 3px;
    background: linear-gradient(15deg, rgb(192, 68, 45)  0%, rgb(192, 68, 45) 100%);
    transform: translateY(-50%) rotate(45deg);
    z-index: 9;
}
.article-tag:hover .tag_el1::after{
    background: linear-gradient(15deg, rgb(114, 114, 114) 0%, rgb(114, 114, 114) 100%);
    color: #ffffff;
}
.article-tag:hover .tag_el2{
    background: linear-gradient(135deg, rgb(114, 114, 114) 0%, rgb(114, 114, 114) 30%, rgb(201, 201, 201)  100%);
    color: #ffffff;
}
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }

    .article-see-also-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .article-header {
        padding: 20px 20px 15px 20px;
    }

    .article-header h1 {
        font-size: 1.8em;
    }

    .article-gallery {
        padding: 15px 20px;
    }

    .article-content {
        padding: 0 20px 30px 20px;
    }

    .article-content h2 {
        font-size: 1.3em;
    }

    .article-content h3 {
        font-size: 1.1em;
    }

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

    .article-sidebar {
        gap: 15px;
    }

    .article-popular {
        padding: 15px;
    }

    .article-popular-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .article-thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .article-section {
        padding: 30px 0;
    }

    .article-container {
        padding: 0 15px;
    }

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

    .article-header h1 {
        font-size: 1.4em;
    }

    .article-gallery {
        padding: 10px 15px;
    }

    .article-content {
        padding: 0 15px 20px 15px;
    }

    .article-see-also-grid {
        grid-template-columns: 1fr;
    }

    .article-gallery-main {
        max-height: 300px;
    }

    .article-lightbox-prev,
    .article-lightbox-next {
        padding: 12px;
    }

    .article-lightbox-close {
        font-size: 28px;
    }
}

.articles-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
}

.articles-header {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.articles-header h1 {
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 700;
    color: #000000;
}

.articles-count {
    margin: 0;
    color: #666;
    font-size: 1em;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.article-list-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.article-list-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.article-list-image-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-list-image-item {
    transform: scale(1.05);
}

.article-list-title {
    margin: 0;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.article-card a {
    color: inherit;
    text-decoration: none;
}
.articles-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.articles-loading p {
    margin: 0;
    color: #666;
    font-size: 1em;
}

.articles-end {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 1em;
}

.articles-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.articles-empty p {
    margin: 0;
    font-size: 1.2em;
}

@media (max-width: 1024px) {
    .articles-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .articles-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .articles-header {
        padding: 20px;
        margin-bottom: 30px;
    }

    .articles-header h1 {
        font-size: 1.5em;
    }

    .article-list-title {
        font-size: 0.95em;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .articles-list {
        grid-template-columns: 1fr;
    }

    .article-list-image {
        height: 150px;
    }

    .articles-header h1 {
        font-size: 1.2em;
    }
}
