/* Single Article Styles */
.article.single-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 2rem 2rem 2rem;
}

.article-featured-image img {
    width: 350px;
    height: auto;
    border-radius: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.header-image-art {
    padding: 2rem;
}

header.article-header {
    background: #f1f1f1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
}

.article-breadcrumbs {
    margin-bottom: 10px;
}

header.article-header .header-content {
    width: 50%;
    padding: 2rem;
}

.article-sidebar {
    width: 100%;
    border-left: 1px solid #f1f1f1;
    padding-left: 2rem;
}


.article-content-wrapper {
    padding: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
}

.article-categories a {
    color: #0073aa;
    text-decoration: none;
}

.article-categories a:hover {
    text-decoration: underline;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

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

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.prev-article,
.next-article {
    flex: 0 0 45%;
}

.next-article {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.article-navigation a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.article-navigation a:hover {
    text-decoration: underline;
}

.article-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}


.article-main-content {
    width: 100%;
}

.article-sidebar {
    width: 100%;
}

.sidebar-article-image img {
    width: 65px;
    height: 65px !important;
    border-radius: 100%;
    margin-right: 15px;
}

.sidebar-article {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}


.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Search Section */
.articles-search-container {
    background: #f1f1f1;
    padding: 4rem 2rem;
    margin: -2rem -2rem 3rem -2rem;
    text-align: center;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.modern-search-form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #666;
}

.search-field {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: none;
    font-size: 1.1rem;
    background: transparent;
}

.search-field:focus {
    outline: none;
}

.search-submit {
    background: #212121;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input.search-field {
    padding-left: 50px !important;
}

.search-submit:hover {
    background: #005c88;
}

input.search-field {
    margin-bottom: 0px !important;
    border-radius: 40px!important;
}

/* Category Section */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #212121;
}

.category-title {
    font-size: 1.75rem;
    margin: 0;
    color: #333;
}

.article-count {
    color: #666;
    font-size: 0.9rem;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Article Cards */
.article-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.article-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 1.5rem;
}

.article-title {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #0073aa;
}

.article-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.8rem;
    color: #888;
}

/* Breadcrumbs */
.article-breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.article-breadcrumbs a {
    color: #000;
    text-decoration: none;
}

.article-breadcrumbs a:hover {
    text-decoration: underline;
}

.article-breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #999;
}

.article-breadcrumbs .current {
    color: #666;
}

/* Parent Category Styles */
.category-section.parent-category {
    margin-bottom: 4rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-section.parent-category > .category-header {
    border-bottom: 2px solid #212121;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.category-section.parent-category > .category-header .category-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212121;
}


h3.category-title {
    font-size: 1.35rem;
}

.subcategory-header {
    border-bottom: 1px solid #e0e0e0 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
}

.subcategory-title {
    font-size: 1.25rem !important;
    color: #424242 !important;
    font-weight: 500 !important;
}

.subcategory-grid {
    gap: 1.5rem !important;
}

.category-section.subcategory-section {
    margin: 2rem 0 2rem 0 !important;
    margin-left: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Responsive adjustments for subcategories */
@media (max-width: 768px) {
    .category-section.subcategory-section {
        margin-left: 1rem;
        padding: 1rem;
    }
    
    .subcategory-title {
        font-size: 1.1rem !important;
    }
    
    .category-section.parent-category {
        padding: 1rem;
    }
}

/* Visual hierarchy improvements */
.category-section.parent-category + .category-section.parent-category {
    margin-top: 4rem;
}

.subcategory-section + .subcategory-section {
    margin-top: 2rem;
}

/* Article count styling */
.subcategory-header .article-count {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Grid adjustments for subcategories */
.subcategory-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.type-article ul li {
    list-style: disc !important;
}

.type-article ol li {
    list-style: decimal !important;
}
.type-article li {
    margin-left: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-container {
        padding: 1rem;
    }

    .articles-search-container {
        padding: 2rem 1rem;
        margin: -1rem -1rem 2rem -1rem;
    }

    .modern-search-form {
        flex-direction: column;
        border-radius: 12px;
        gap: 0.5rem;
    }

    .search-submit {
        width: 100%;
        border-radius: 6px;
    }

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

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* No Categories Message */
.no-categories {
    text-align: center;
    padding: 3rem;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 1.1rem;
    margin-top: 2rem;
}
.sidebar-article-image {
    width: 65px;
    margin-right: 10px;
}

.sidebar-article-content {
    width: calc(100% - 75px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-single-container {
        padding: 1rem;
    }

    .article-content-wrapper {
        padding: 1.5rem;
    }

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

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

    .next-article {
        text-align: left;
    }

    header.article-header {
        background: #f1f1f1;
        display: flex;
        flex-direction: column-reverse;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: space-between;
        align-items: center;
    }

    .article-container {
        max-width: 90%;
        margin: 0 auto;
        padding: 2rem 0px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .article.single-article {
        max-width: 100%;
        margin: 0 auto;
        padding: 0px;
    }

    .article-content {
        padding: 0px;
    }

    header.article-header .header-content {
        width: 100%;
        padding: 2rem;
    }

}
