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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1e1e1e;
    background: #fafafa;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

ul,
ol {
    list-style: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    z-index: 100;
    border-bottom: 1px solid #eaeaea;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    border-bottom-color: transparent;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #111;
}

.logo span {
    font-weight: 300;
    color: #4a6fa5;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 450;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: #4a6fa5;
    border-bottom: 2px solid #4a6fa5;
    padding-bottom: 4px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: #f0f3f8;
    padding: 12px 0;
    border-bottom: 1px solid #d9e0e9;
}

.announcement-bar p {
    font-size: 0.95rem;
}

.announcement-bar a {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: underline;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin: 24px 0 16px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 12px 18px;
    background: #f5f7fa;
    border-radius: 50px;
    font-size: 0.95rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 12px;
    color: #888;
    font-size: 1.2rem;
    line-height: 1;
}

.breadcrumb a {
    text-decoration: none;
    color: #4a6fa5;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .active {
    color: #333;
    font-weight: 500;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin: 2rem 0;
    letter-spacing: -0.5px;
    border-left: 6px solid #4a6fa5;
    padding-left: 1.2rem;
}

.accent-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4a6fa5;
    border-radius: 50%;
    margin-left: 8px;
}

/* ===== CARD BASE ===== */
.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.card__img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.card:hover .card__img img {
    transform: scale(1.03);
}

.card__content {
    padding: 16px;
}

.card__tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a6fa5;
    background: #edf2f9;
    padding: 4px 10px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 10px;
}

.card__title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 8px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__title a {
    text-decoration: none;
    color: inherit;
}

.card__excerpt {
    color: #5f5f5f;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.card__meta {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ===== HOME PAGE LAYOUTS ===== */
.featured-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.card--featured {
    display: flex;
    flex-direction: column;
}

.card--horizontal {
    display: flex;
    gap: 16px;
    background: white;
    border-radius: 18px;
    padding: 0;
}

.card--horizontal .card__img {
    flex: 0 0 100px;
    aspect-ratio: 1/1;
}

.card--horizontal .card__content {
    padding: 12px 12px 12px 0;
    flex: 1;
}

.featured-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.special-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card--special {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 0;
    background: white;
}

.card--special .card__img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 100%;
}

.card--special .card__content {
    padding: 30px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 24px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.category-card:hover {
    background: #f7faff;
    border-color: #cbd5e0;
}

.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.category-card p {
    font-size: 0.8rem;
    color: #777;
    margin: 8px 0;
}

.cat-count {
    font-size: 0.75rem;
    background: #edf2f9;
    padding: 4px 12px;
    border-radius: 30px;
    color: #2c3e50;
}

/* ===== LIST / CATEGORY PAGE ===== */
.category-header {
    background: #f5f7fa;
    padding: 40px 0 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-bar {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-select {
    padding: 8px 24px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 40px;
    background: white;
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.list-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.content-main {
    /* main column */
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.list-item {
    border-radius: 18px;
}

.list-item .card__img {
    flex: 0 0 200px;
    aspect-ratio: 4/3;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    justify-content: center;
}

.page-link {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
}

.page-link.active {
    background: #1e2a36;
    color: white;
    border-color: #1e2a36;
}

.page-link.prev,
.page-link.next {
    background: #f0f4fa;
    border: 1px solid #d0dbe8;
}

.page-link:hover:not(.active) {
    background: #e2e8f0;
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
    background: white;
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.sidebar-widget h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 500;
}

.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 60px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 12px 18px;
    font-size: 0.95rem;
}

.search-form button {
    background: none;
    border: none;
    padding: 0 18px;
    font-size: 1.2rem;
    cursor: pointer;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: #f0f4fa;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    color: #1e2a36;
    font-size: 0.85rem;
}

/* author widget (sidebar) */
.author-widget {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid #edf2f9;
}

.author-widget h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.author-bio {
    font-size: 0.95rem;
    color: #5f5f5f;
    line-height: 1.6;
}

/* recommended, latest lists */
.category-title {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    border-left: 6px solid #4a6fa5;
    padding-left: 1.2rem;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recommended-list,
.latest-list,
.category-list {
    list-style: none;
}

.recommended-list li,
.latest-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recommended-list li:last-child,
.latest-list li:last-child {
    border-bottom: none;
}

.recommended-list a,
.latest-list a {
    text-decoration: none;
    color: #1e1e1e;
    font-weight: 500;
    flex: 1;
}

.recommended-list a:hover,
.latest-list a:hover {
    color: #4a6fa5;
}

.recommended-list .date,
.latest-list .date {
    font-size: 0.8rem;
    color: #777;
    white-space: nowrap;
    margin-left: 12px;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eaeaea;
}

.category-list a {
    text-decoration: none;
    color: #333;
}

.category-list a:hover {
    color: #4a6fa5;
}

.category-list .count {
    background: #edf2f9;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #2c3e50;
}

/* ===== ARTICLE DETAIL PAGE ===== */
.article-header-detail {
    margin-bottom: 2rem;
}

.article-header-detail h1 {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 1rem 0 0.5rem;
}

@media (max-width: 768px) {
    .article-header-detail h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

.article-subhead {
    font-size: 1.3rem;
    font-weight: 300;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4a6fa5;
    padding-left: 1rem;
}

.byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin: 1.5rem 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-mini img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-mini span {
    font-weight: 600;
    color: #1e1e1e;
}

.meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.8rem;
    color: #5f5f5f;
    font-size: 0.95rem;
}

.meta-items time,
.views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.views::before {
    content: "👁️";
    font-size: 1rem;
    opacity: 0.7;
}

.article-body {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.article-body img {
    margin: 0 auto;
}

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

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 2.5rem 0 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.article-body figure {
    margin: 2rem 0;
}


.article-body figcaption {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
    text-align: right;
}

.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0 2.5rem;
}

.content-tags a {
    background: #edf2f9;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    color: #1e2a36;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
}

.content-tags a:hover {
    background: #d0ddeb;
}

.author-bio-card {
    background: #f9fafc;
    border-radius: 28px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
    border: 1px solid #edf2f9;
}

.author-bio-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}

.author-bio-card h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.author-bio-card p {
    color: #3f3f3f;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
}

.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0 2.5rem;
    padding: 1.2rem 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.share-bar span {
    font-weight: 500;
    margin-right: 0.5rem;
}

.share-btn {
    background: #edf2f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.2s;
    color: #1e2a36;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: #1e2a36;
    color: white;
}

.comments-section {
    margin: 2.5rem 0;
}

.comments-section h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.8rem;
}

.comment {
    background: #f9fafc;
    padding: 1.5rem;
    border-radius: 24px;
    margin-bottom: 1.2rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.comment-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.85rem;
    color: #777;
}

.comment-text {
    line-height: 1.6;
    color: #2d2d2d;
}

.view-more-comments {
    display: inline-block;
    margin-top: 1rem;
    color: #4a6fa5;
    font-weight: 500;
    text-decoration: none;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 2rem 0 3rem;
}

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: 0.25s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.related-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.related-card .card__content {
    padding: 14px;
}

.related-card .card__title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
}

.related-card .card__meta {
    font-size: 0.8rem;
}

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

/* ===== AUTHOR PAGE ===== */
.author-profile {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.author-header {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    background: white;
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

.author-header img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #edf2f9;
    flex-shrink: 0;
}

.author-header-info {
    flex: 1;
}

.author-header-info h1 {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.author-header-info .author-title {
    font-size: 1.3rem;
    color: #4a6fa5;
    font-weight: 450;
    margin-bottom: 1.2rem;
    border-left: 4px solid #4a6fa5;
    padding-left: 1rem;
}

.author-header-info .author-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d2d2d;
    margin-bottom: 1.5rem;
}

.author-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #edf2f9;
    border-radius: 50%;
    text-decoration: none;
    color: #1e2a36;
    font-size: 1.4rem;
    transition: all 0.2s;
}

.author-social a:hover {
    background: #1e2a36;
    color: white;
    transform: translateY(-3px);
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 2.5rem 0;
}

.stat-card {
    background: white;
    border-radius: 28px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: #4a6fa5;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 1rem;
    color: #5f5f5f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-bio-detailed {
    background: #f9fafc;
    border-radius: 32px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid #edf2f9;
}

.author-bio-detailed h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.8rem;
    border-left: 6px solid #4a6fa5;
    padding-left: 1rem;
}

.author-bio-detailed p {
    font-size: 1rem;
    line-height: 1.75;
    color: #2a2a2a;
    margin-bottom: 1.5rem;
}

.author-bio-detailed .bio-highlight {
    font-weight: 500;
    color: #1e2a36;
}

.author-works {
    margin: 4rem 0 2rem;
}

.author-works h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    border-left: 6px solid #4a6fa5;
    padding-left: 1rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.work-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: 0.25s;
}

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

.work-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.work-card .card__content {
    padding: 18px;
}

.work-card .card__title {
    font-size: 1.2rem;
    -webkit-line-clamp: 2;
    margin: 8px 0 10px;
}

.work-card .card__meta {
    font-size: 0.85rem;
}

.work-card .card__tag {
    font-size: 0.7rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1e2a36;
    color: #dfe6ed;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.site-footer p {
    text-align: center;
    margin: 0;
}

.site-footer a {
    color: #dfe6ed;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 16px;
}

.footer-logo span {
    color: #8aa9cc;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-weight: 450;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #b5c9e0;
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e2a36;
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

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

    .featured-grid-layout {
        grid-template-columns: 1fr;
    }

    .card--special {
        grid-template-columns: 1fr;
    }

    .list-with-sidebar {
        grid-template-columns: 100%;
    }

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

@media (max-width: 768px) {

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

    .byline,
    .meta-items {
        gap: 0.5rem;
    }

    .author-mini {
        gap: 0.5rem;
    }

    .author-mini span,
    .meta-items {
        font-size: 0.75rem;
    }

    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 54px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
    }

    .nav-list.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

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

    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .author-header-info h1 {
        font-size: 2rem;
    }

    .author-header-info .author-title {
        border-left: none;
        border-top: 2px solid #4a6fa5;
        padding-top: 0.8rem;
        padding-left: 0;
    }

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

    .author-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .list-item {
        flex-direction: column;
    }

    .list-item .card__img {
        flex: auto;
        width: 100%;
    }

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

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

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

@media (max-width: 480px) {
    .author-header img {
        width: 140px;
        height: 140px;
    }
}