.breadcrumb
{
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 14px;
    padding: 0;
    font-family: Cairo;
    font-size: 17px;
    line-height: normal;
    color: #6a777f;
    margin-bottom: 25px;
    background: transparent;
}
.breadcrumb-item a {
    text-decoration: none;
}
.breadcrumb-item + .breadcrumb-item {
  padding-left: .0rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

/* Latest Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    font-family: Cairo;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 10px;
}

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

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--font-color) 0%, var(--main-color) 100%);
}

.article-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-category {
    background: var(--font-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.article-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}
.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--font-color);
    margin-top: 10px;
}

.article-category-badge {
    background: var(--font-color);
    color: white;
    padding: 4px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--main-color);
}

.article-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--font-color);
}

.article-stats i {
    margin-right: 4px;
}

.read-more {
    color: var(--font-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}


/* No articles message */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--font-color);
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.no-articles .btn-primary i {
    font-size: 1rem;
    margin-bottom: 0;
}
.no-articles i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
    color: var(--primary-color);
}

.no-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.no-articles p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}


/* Featured Categories Section */
.featured-categories-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 60px -15px 0px -15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

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


/* Category Header */
.category-section {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: Cairo;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: Cairo;
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    color: white;
}

.category-info p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

.view-category-link, .view-category-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.view-category-link:hover {
    gap: 12px;
}

/* Loading Skeleton (optional) */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 80%);
    }

    100% {
        background-color: hsl(200, 20%, 95%);
    }
}

/* Categories Section */
.categories-section {
    margin: 60px 0;
}

.category-card {
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.category-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color);
        color: var(--main-color);
}

.category-button-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.category-button-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.category-button-text {
    flex: 1;
}

.category-button-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
}

.category-button-count {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin: 3px 0 0 0;
}

.category-button-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-button:hover .category-button-arrow {
    transform: translateX(5px);
}

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

/* Newsletter Subscribe Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--font-color) 0%, var(--main-color) 100%);
    padding: 60px 0;
    margin: 0px -15px 0px -15px;
    font-family: Cairo;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.newsletter-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.newsletter-submit {
    padding: 15px 40px;
    background: white;
    color: var(--main-color);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    display: none;
}

.newsletter-message.success {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.newsletter-message.error {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: 2px solid rgba(220, 53, 69, 1);
}

.newsletter-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.newsletter-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.newsletter-feature i {
    font-size: 1.2rem;
}


.blog-search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.blog-search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
    z-index: 1;
}

.blog-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.blog-search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    border-color: var(--main-color-rgba);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    font-family: Cairo;
}

.blog-search-button {
    padding: 15px 40px;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: Cairo;
}

.blog-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}


/* Search Dropdown Autocomplete */
.blog-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.blog-search-dropdown-item {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.blog-search-dropdown-item:last-child {
    border-bottom: none;
}

.blog-search-dropdown-item:hover,
.blog-search-dropdown-item.active {
    background-color: #f8f9fa;
}

.blog-search-dropdown-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
}

.blog-search-dropdown-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--main-color-rgba) 0%, var(--main-color) 100%);
}

.blog-search-dropdown-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-search-dropdown-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.blog-search-dropdown-content {
    flex: 1;
    min-width: 0;
}

.blog-search-dropdown-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-search-dropdown-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-search-dropdown-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-search-dropdown-excerpt {
    font-size: 0.8rem;
    color: var(--secondary-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-search-dropdown-loading,
.blog-search-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.blog-search-dropdown-loading i,
.blog-search-dropdown-empty i {
    margin-right: 8px;
    font-size: 1.1rem;
}


.related-articles-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.category-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color:var(--font-color);
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.category-description {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 800px;
}

.category-stats {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.category-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.category-stat i {
    font-size: 1.2rem;
}

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


/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.category-list-item {
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .newsletter-title {
        font-size: 2rem;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-submit {
        width: 100%;
    }

    .newsletter-features {
        flex-direction: column;
        gap: 15px;
    }
}


/* Responsive */
@media (max-width: 1199px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

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

    .page-subtitle {
        font-size: 1rem;
    }

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

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

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

    .sidebar {
        position: static;
        margin-top: 40px;
    }
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
    transform: translateY(-2px);
}

.pagination .active span {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .disabled a {
    pointer-events: none;
    opacity: 0.5;
}


/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 0 40px 0;
    margin-bottom: 50px;
}
.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    font-family: Cairo;
    color: var(--font-color);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.page-stats {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.page-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}


/* Table of Contents */
.toc-wrapper {
    position: sticky;
    top: 120px;
    background: var(--toc-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.toc-list a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateX(5px);
}

.toc-list a.active {
    background: var(--font-color);
    color: white;
    font-weight: 600;
}

.toc-list .toc-h3 {
    padding-left: 24px;
    font-size: 0.9rem;
}

/* Article Layout */
.article-container {
    margin-top: -30px;
    margin-bottom: 60px;
    font-family: Cairo;
}

.article-content-wrapper {
    overflow: hidden;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    border-top: 3px solid var(--border-color);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

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

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

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

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--secondary-color);
}

.search-query {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.no-results i {
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-results p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.no-results ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    display: inline-block;
}

.no-results li {
    padding: 8px 0;
    color: var(--secondary-color);
}

.no-results li i {
    font-size: 1rem;
    margin-right: 10px;
    color: var(--primary-color);
    opacity: 1;
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--font-color);
    font-family: Cairo;
}

.results-count strong {
    color: var(--primary-color);
}

.clear-filters {
    padding: 8px 20px;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clear-filters:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* FAQ Section */

.faq-section {
    margin-top: 50px;
    padding: 40px 0;
    border-top: 2px solid var(--main-color);
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 20px;
    max-height: 500px;
}

/* Related Articles */
.related-section {
    margin-top: 50px;
}

.related-section h3, .faq-title{
    color: var(--font-color);
    font-size: 24px;
    font-weight: bold;
    font-family: Cairo;
}

.related-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.related-article-content {
    padding: 20px;
}

.related-article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-article-excerpt {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .toc-wrapper {
        position: static;
        margin-bottom: 30px;
    }

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

    .article-body {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }

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

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

    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .results-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}