/* Typography System - 2025 Best Practices for Cyrillic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #212529;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
    margin-top: 0;
    letter-spacing: -0.02em;
}

/* Links */
a {
    color: #212529;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/*DIVS*/
.container-fluid {
    padding: 0px;
}

/* Navbar */
#header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #fff;
}

.navbar {
    padding: 0;
    margin-bottom: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 0;
    padding: 0;
}

.navbar-brand img {
    display: block;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    margin: 0;
}

@media (max-width: 991.98px) {
    .navbar .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar-brand {
        flex-shrink: 0;
        order: 1;
    }
    
    .navbar-toggler {
        order: 2;
        margin-left: auto;
    }
    
    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.5rem;
        order: 3;
        padding-left: 0;
    }
    
    .navbar-collapse:not(.show) {
        display: none;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .navbar-nav.mx-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0;
    }
    
.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: left;
    width: 100%;
    display: block;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #212529;
    transition: opacity 0.2s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 0.7;
}
    
    .navbar-nav .nav-link.search-nav-button {
        text-align: left;
        background: none;
        border: none;
        width: 100%;
    }
    
    .navbar-nav.sm-icons {
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .navbar-nav.sm-icons .nav-item {
        width: auto;
    }
    
    .navbar-nav.sm-icons .nav-link {
        text-align: center;
        width: auto;
        padding: 0.5rem;
    }
}

/*Fonts*/
.card-title{
    color: #212529
}

/* Post card title hover effect */
.row .card .card-body a:hover .card-title,
.row .card .card-body a:hover h5.card-title {
    text-decoration: underline;
}

/*Article card*/
.tag{
    border: 0;
    font: inherit;
    vertical-align: baseline;
    box-sizing: inherit;
    user-select: auto;
    cursor: pointer;
    display: inline-block;
    padding: .4em .5em;
    margin: 2px 2px 2px 0;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    color: #2c5777;
    background-color: #d1e5f1;
    border-color: #00000000;
    font-size: 12px;
}

/*Buttons*/
a.btn.btn-light.shadow-sm{
    border-color: #e2e6e9;
}

.btn-custom {
    min-width: 50px;
}

/*Social icons (top)*/
.sm-icons {
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
@media only screen and (max-width: 960px) {
  .sm-icons {
    justify-content: center;
    align-items: center;
  }
  .sm-icons .nav-item {
    padding-right: 1em;
  }
}

/*About page*/
.info_block {
  color: #343a40;  /*#212529;*/
}

.accordion-button:not(.collapsed) {
    color: #0c63e4;
    background-color: transparent;
}

/* Blog Post Detail Page - Optimal Reading Width */
.post-detail-wrapper {
    width: 100%;
}

.post-content-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.postinfo {
    font-size: 0.875rem;
    line-height: 1.6;
}

.postinfo p {
    margin-bottom: 0;
}

/* Post Title */
.post-title-section {
    margin-bottom: 2.5rem;
}

.post-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0;
    color: #212529;
    letter-spacing: -0.03em;
    margin-top: 0.5rem;
}

/* Post Cover Image - Same Width as Text Area */
.post-cover-image-wrapper {
    width: 100%;
    margin: 3.5rem 0;
    padding: 0;
}

.post-cover-image-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.post-cover-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    /* Color grade filter for cohesive look */
    filter: brightness(1.02) contrast(1.08) saturate(0.88);
    transition: filter 0.3s ease;
}

.post-cover-image:hover {
    filter: brightness(1.05) contrast(1.1) saturate(0.92);
}

.post-cover-description {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #6c757d;
}

.post-cover-credits {
    margin-top: 0.5rem;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Post Body Content - Enhanced Typography */
.post-body-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #212529;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Ensure all images in post body fit content width - 98% of text area */
.post-body-content img {
    max-width: 98% !important;
    width: 98% !important;
    height: auto !important;
    display: block;
    margin: 2rem auto;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.post-body-content img:hover {
    opacity: 0.9;
}

.post-body-content figure {
    margin: 2rem 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Override inline styles and alignment classes for image figures */
.post-body-content figure.image {
    width: 98% !important;
    max-width: 98% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    float: none !important;
}

.post-body-content figure.image-style-align-left,
.post-body-content figure.image-style-align-right,
.post-body-content figure.image-style-align-center {
    width: 98% !important;
    max-width: 98% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    float: none !important;
}

.post-body-content figure.image_resized {
    width: 98% !important;
    max-width: 98% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    float: none !important;
}

.post-body-content figure img {
    max-width: 98% !important;
    width: 98% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
    box-sizing: border-box;
}

/* Override inline styles on images inside figures */
.post-body-content figure img[style] {
    width: 98% !important;
    max-width: 98% !important;
    aspect-ratio: auto !important;
}

.post-body-content figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

/* Typography improvements for readability */
.post-body-content p {
    margin-bottom: 1.75rem;
    line-height: 1.85;
}

.post-body-content h1,
.post-body-content h2,
.post-body-content h3,
.post-body-content h4,
.post-body-content h5,
.post-body-content h6 {
    margin-top: 2.75rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.post-body-content h3 {
    font-size: 1.75rem;
}

.post-body-content h4 {
    font-size: 1.5rem;
}

.post-body-content blockquote {
    border-left: 4px solid #e2e6e9;
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #495057;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.post-body-content ul,
.post-body-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
    line-height: 1.85;
}

.post-body-content li {
    margin-bottom: 0.75rem;
    line-height: 1.85;
}

/* Share Section */
.post-share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e6e9;
}

/* Recommendations Section */
.post-recommendations-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.similar-posts {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.similar-posts h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    margin-top: 0;
    color: #212529;
    letter-spacing: -0.02em;
}

/* Search Results Page */
.search-results-header {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.search-results-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #212529;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.search-results {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.search-results .no-results {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 2rem;
}

.search-again-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e6e9;
}

.search-again-section h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

/* Post List Cards - Responsive Image Sizing */
.row .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Base: Mobile (< 576px) - 1 column, full width */
.row .card > a {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f8f9fa;
}

.row .card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem;
}

.row .card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #212529;
    letter-spacing: -0.01em;
}

.row .card .card-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1rem;
}

.row .card .card-img-top {
    width: 100%;
    max-width: 100%;
    height: 180px;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Color grade filter for cohesive look - matches detail page */
    filter: brightness(1.02) contrast(1.08) saturate(0.88);
    transition: filter 0.3s ease;
}

.row .card:hover .card-img-top {
    filter: brightness(1.05) contrast(1.1) saturate(0.92);
}

/* Small screens (≥ 576px) - 2 columns (col-sm-6) */
@media (min-width: 576px) {
    .row .card > a {
        height: 200px;
    }
    
    .row .card .card-img-top {
        height: 200px;
        max-height: 200px;
    }
}

/* Large screens (≥ 992px) - 3 columns (col-lg-4) */
@media (min-width: 992px) {
    .row .card > a {
        height: 220px;
    }
    
    .row .card .card-img-top {
        height: 220px;
        max-height: 220px;
    }
}

/* Extra large screens (≥ 1200px) - 3 columns, larger images */
@media (min-width: 1200px) {
    .row .card > a {
        height: 240px;
    }
    
    .row .card .card-img-top {
        height: 240px;
        max-height: 240px;
    }
}

.card-body blockquote {
    border-left: 4px solid #e2e6e9;
    padding-left: 1.25rem;
    margin: 1rem 0;
    font-style: italic;
    color: #495057;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .post-content-container {
        padding: 0 16px;
    }

    .post-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .post-body-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .post-body-content h3 {
        font-size: 1.5rem;
        margin-top: 2.25rem;
    }

    .post-body-content h4 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }
    
    .row .card .card-title {
        font-size: 1.125rem;
    }
    
    .row .card .card-text {
        font-size: 0.875rem;
        line-height: 1.65;
    }

    .post-cover-image-wrapper {
        margin: 2rem 0;
    }

    .post-cover-image-container {
        padding: 0 16px;
    }

    .post-body-content {
        margin-bottom: 2rem;
    }

    .post-share-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .post-content-container {
        padding: 0 12px;
    }

    .post-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .post-body-content {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    .post-body-content p {
        margin-bottom: 1.5rem;
    }
    
    .row .card .card-body {
        padding: 1rem;
    }

    .post-body-content img {
        margin: 1.5rem auto;
    }

    .post-cover-image-container {
        padding: 0 12px;
    }
}

/* Image Lightbox Modal */
.image-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.image-lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox-content img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.image-lightbox-close:hover,
.image-lightbox-close:focus {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .image-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
    
    .image-lightbox-content {
        max-width: 98%;
        max-height: 90vh;
    }
    
    .image-lightbox-content img {
        max-height: 90vh;
    }
}

/* Variables for easy theming */
:root {
    --bookmark-border-color: rgba(0, 0, 0, 0.1);
    --bookmark-title-color: #212529;
    --bookmark-desc-color: #6c757d;
    --bookmark-meta-color: #6c757d;
    --bookmark-radius: 4px;
    --bookmark-padding: 20px;
}

/* Card container */
.shb-card.shb-bookmark-card {
    margin: 1.5rem 0;  /* Spacing between cards */
}

.shb-bookmark-container {
    display: flex;
    flex-direction: row;  /* Left-to-right; image left due to HTML order */
    align-items: stretch;
    min-height: 160px;
    border: 1px solid var(--bookmark-border-color);
    border-radius: var(--bookmark-radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;  /* Prevent image overflow */
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background-color: #fff;
}

.shb-bookmark-container:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

/* Thumbnail (image on left) */
.shb-bookmark-thumbnail {
    min-width: 200px;
    width: 200px;
    flex-shrink: 0;
    position: relative;
    background-color: #f8f9fa;
}

.shb-bookmark-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--bookmark-radius) 0 0 var(--bookmark-radius);  /* Rounded left corners */
    /* Color grade filter for cohesive look */
    filter: brightness(1.02) contrast(1.08) saturate(0.88);
    transition: filter 0.3s ease;
}

.shb-bookmark-container:hover .shb-bookmark-thumbnail img {
    filter: brightness(1.05) contrast(1.1) saturate(0.92);
}

/* Content (right side) */
.shb-bookmark-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--bookmark-padding);
}

.shb-bookmark-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bookmark-title-color);
    margin-bottom: 0.875rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.shb-bookmark-description {
    font-size: 0.9375rem;
    color: var(--bookmark-desc-color);
    margin-bottom: 0.875rem;
    line-height: 1.7;
    flex: 1;
}

.shb-bookmark-description p {
    margin-bottom: 1rem;
}

.shb-bookmark-description p:first-child {
    margin-top: 0;
}

.shb-bookmark-description p:last-child {
    margin-bottom: 0;
}

.shb-bookmark-metadata {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--bookmark-meta-color);
    margin-top: auto;
}

.shb-bookmark-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 50%;  /* For author avatars */
}

.shb-bookmark-author,
.shb-bookmark-publisher {
    margin-right: 12px;
}

/* Responsive: Stack vertically on small screens */
@media (max-width: 768px) {
    .shb-bookmark-container {
        flex-direction: column;
        min-height: auto;
    }
    .shb-bookmark-thumbnail {
        min-width: 100%;
        width: 100%;
        height: 200px;  /* Fixed height for mobile */
    }
    .shb-bookmark-thumbnail img {
        border-radius: var(--bookmark-radius) var(--bookmark-radius) 0 0;
    }
    .shb-bookmark-content {
        padding: 16px;
    }
    .shb-bookmark-title {
        font-size: 1.125rem;
    }
}

/* Search Modal */
#searchModal .modal-dialog {
    max-width: 600px;
    margin: 0 auto;
}

#searchModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

#searchModal .modal-body {
    padding: 2rem 1rem;
}

#searchModal .form-control {
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#searchModal .form-control:focus {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
    outline: 0;
}

#searchModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Search button in navbar */
.nav-item .search-nav-button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: inherit;
    line-height: inherit;
}

.nav-item .search-nav-button:hover {
    color: inherit;
    opacity: 0.8;
}

.nav-item .search-nav-button:focus {
    box-shadow: none;
    outline: none;
}

.nav-item .search-nav-button:active {
    background: none;
    border: none;
}

/* Pagination - Yandex style */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem 0;
}

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

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-link,
.pagination-current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    text-decoration: none;
    color: #212529;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.pagination-link:hover {
    background-color: #f5f5f5;
    color: #212529;
}

.pagination-current {
    background-color: #212529;
    color: #fff;
    font-weight: 500;
    cursor: default;
}

.pagination-prev,
.pagination-next {
    font-size: 18px;
    font-weight: 300;
    color: #212529;
}

.pagination-prev:hover,
.pagination-next:hover {
    background-color: #f5f5f5;
    color: #212529;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
}

.pagination-ellipsis-text {
    color: #999;
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 576px) {
    .pagination-list {
        gap: 0.125rem;
    }
    
    .pagination-link,
    .pagination-current {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 13px;
    }
    
    .pagination-prev,
    .pagination-next {
        font-size: 16px;
    }
}

/* Series Navigation Cards */
.series-navigation-wrapper {
    margin: 2rem 0;
}

.series-navigation-top {
    margin-top: 0;
    margin-bottom: 2rem;
}

.series-navigation-bottom {
    margin-top: 2rem;
    margin-bottom: 0;
}

.series-navigation-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.series-navigation-card:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.series-nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.series-nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.series-nav-previous .series-nav-label {
    justify-content: flex-start;
}

.series-nav-next .series-nav-label {
    justify-content: flex-end;
}

.series-nav-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.series-nav-link:hover {
    text-decoration: none;
}

.series-nav-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.series-nav-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #dee2e6;
}

.series-nav-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.series-nav-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.series-nav-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #212529;
    margin: 0;
}

.series-nav-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6c757d;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .series-navigation-wrapper {
        margin: 1.5rem 0;
    }
    
    .series-navigation-top {
        margin-bottom: 1.5rem;
    }
    
    .series-navigation-bottom {
        margin-top: 1.5rem;
    }
    
    .series-navigation-card {
        padding: 0.875rem;
    }
    
    .series-nav-card {
        gap: 0.75rem;
    }
    
    .series-nav-image {
        width: 100px;
        height: 70px;
    }
    
    .series-nav-title {
        font-size: 0.9375rem;
    }
    
    .series-nav-description {
        font-size: 0.8125rem;
    }
}

@media (max-width: 576px) {
    .series-nav-card {
        flex-direction: column;
    }
    
    .series-nav-image {
        width: 100%;
        height: 150px;
    }
    
    .series-nav-label {
        font-size: 0.8125rem;
    }
}