*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --color-text: #262626;
    --color-text-secondary: #5a5a5a;
    --color-text-tertiary: #6b6b6b;
    /* Darkened for accessibility (WCAG AA) */
    --color-bg: #ffffff;
    --color-bg-subtle: #f9f9f4;
    --color-bg-accent: #f2f2f2;
    --color-border: #dfdfdf;
    --color-border-light: #e8e8e9;
    --color-primary: #2a6ec1;
    --color-primary-hover: #1f5aa8;
    --color-red: #e53e3e;
    --container-max: 1220px;
    --header-height: 70px;
    --slider-height: 52px;

    /* Z-Index Registry */
    --z-loader: 9999;
    --z-overlay: 200;
    --z-header: 100;
    --z-mobile-nav: 95;
    --z-slider: 90;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

/* Accessibility: Focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Improve accessibility for text links */
a:hover {
    color: var(--color-primary);
}

.author-link {
    color: var(--color-text);
    text-decoration: none;
}

.author-link:hover {
    color: var(--color-primary);
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 720px;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: var(--z-loader);
    pointer-events: none;
}

.page-loader__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    border-radius: 0 2px 2px 0;
    animation: pageLoad 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.page-loader.done .page-loader__bar {
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

@keyframes pageLoad {
    0% {
        width: 0;
    }

    20% {
        width: 30%;
    }

    50% {
        width: 60%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 92%;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 36px;
    min-width: 0;
}

.logo {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-text);
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-tertiary);
}

.nav-link--live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.nav-link__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-red);
    display: inline-block;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-icon-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    border-radius: 50%;
    transition: color 0.2s ease;
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
}

.header-icon-btn:hover {
    color: var(--color-text-tertiary);
}

/* Shared Button Styles */
.btn,
.header-signup-btn,
.header-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-sans);
}

/* Kaydol butonu - Mavi pill shape */
.header-signup-btn {
    padding: 8px 20px;
    font-size: 14px;
    color: #fff;
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    transition: all 0.25s ease;
}

.header-signup-btn:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Giriş Yap linki */
.header-login-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.header-login-link:hover {
    color: var(--color-text-tertiary);
}

/* Hesabım / Admin Panel butonu - giriş yapıldığında */
.header-account-btn {
    padding: 10px 20px;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.header-account-btn:hover {
    background: var(--color-bg-accent);
    border-color: #ccc;
}

.header-user-menu {
    position: relative;
}

.header-user-menu__toggle {
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 999px;
    min-height: 42px;
    padding: 4px 5px 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-user-menu__toggle:hover {
    border-color: #cfcfcf;
    background: #fcfcfc;
}

.header-user-menu__hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-user-menu__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3a25b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    font-weight: 500;
    font-family: var(--font-serif);
}

.header-user-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 320px;
    max-width: calc(100vw - 24px);
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(24, 24, 24, 0.1);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 130;
}

.header-user-menu.active .header-user-menu__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-user-menu__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 8px;
}

.header-user-menu__profile--link {
    text-decoration: none;
    border-radius: 10px;
    padding: 8px 10px;
    transition: background .15s;
    cursor: pointer;
}

.header-user-menu__profile--link:hover {
    background: #f5f5f5;
}

.header-user-menu__profile-arrow {
    margin-left: auto;
    color: #a3a3a3;
    flex-shrink: 0;
}

.header-user-menu__profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3a25b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    font-family: var(--font-serif);
}

.header-user-menu__profile-name {
    font-size: 17px;
    line-height: 1.2;
    font-family: var(--font-sans);
    color: #1e1e1e;
    letter-spacing: 0;
    font-weight: 600;
}

.header-user-menu__divider {
    height: 1px;
    background: #dfdfdf;
    margin: 8px 0;
}

.header-user-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 6px;
    font-size: 15px;
    line-height: 1.3;
    color: #1f1f1f;
    border-radius: 8px;
    font-weight: 600;
}

.header-user-menu__item svg {
    flex-shrink: 0;
}

.header-user-menu__item:hover {
    background: #efefef;
    color: #1f1f1f;
}

.header-user-menu__item--muted {
    font-size: 14px;
    font-weight: 600;
    color: #707070;
}

@media (max-width: 768px) {

    .header-signup-btn,
    .header-login-link {
        display: none;
    }

    .header-account-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .header-user-menu__panel {
        width: 300px;
    }

    .header-user-menu__profile-avatar {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .header-user-menu__profile-name {
        font-size: 16px;
    }

    .header-user-menu__item {
        font-size: 15px;
    }

    .header-user-menu__item--muted {
        font-size: 14px;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.category-slider {
    position: sticky;
    top: var(--header-height);
    z-index: var(--z-slider);
    background: var(--color-bg);
    border-bottom: none;
    height: var(--slider-height);
}

.category-slider__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.category-slider__arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    flex-shrink: 0;
    transition: all 0.2s ease;
    z-index: 2;
}

.category-slider__arrow:hover {
    background: var(--color-bg-accent);
    border-color: #ccc;
}

.category-slider__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.category-slider__arrow:disabled:hover {
    background: var(--color-bg);
    border-color: var(--color-border);
}

.category-slider__track {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    padding: 4px 0;
}

.category-slider__track::-webkit-scrollbar {
    display: none;
}

.category-slider__item {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.category-slider__item:hover {
    color: var(--color-text);
    background: var(--color-bg-accent);
}

.category-slider__item--active {
    color: var(--color-text);
    font-weight: 600;
}

.category-slider__item--active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: var(--z-overlay);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-input {
    flex: 1;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    background: none;
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    padding: 16px 0;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg);
    z-index: var(--z-mobile-nav);
    padding: 8px 24px;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.site-main {
    min-height: calc(100vh - var(--header-height) - var(--slider-height) - 300px);
    padding-top: 48px;
    padding-bottom: 80px;
}

.section-divider {
    height: 1px;
    background: var(--color-border);
    margin: 48px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 32px;
    line-height: 1.2;
}

.featured-section {
    margin-bottom: 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.featured-main {
    display: flex;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.featured-card--large .featured-card__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-card--large .featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.featured-card--large:hover .featured-card__image img {
    filter: brightness(1.03);
}

.featured-card--large .featured-card__title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--color-text);
}

.featured-card--large .featured-card__excerpt {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card--small {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.featured-card--small .featured-card__image {
    width: 200px;
    min-width: 200px;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    overflow: hidden;
}

.featured-card--small .featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.featured-card--small:hover .featured-card__image img {
    filter: brightness(1.03);
}

.featured-card--small .featured-card__title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--color-text);
}

.featured-card__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.featured-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.featured-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-text-tertiary);
}

.posts-header {
    margin-bottom: 0;
}

.posts-list {
    display: flex;
    flex-direction: column;
}

.post-card {
    border-bottom: 1px solid var(--color-border-light);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card__link {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    align-items: flex-start;
    transition: opacity 0.2s ease;
}

.post-card__link:hover {
    opacity: 0.85;
}

.post-card__image {
    display: block;
    width: 208px;
    min-width: 208px;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    overflow: hidden;
    order: 2;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.post-card__link:hover .post-card__image img {
    filter: brightness(1.03);
}

.post-card__body {
    flex: 1;
    order: 1;
    min-width: 0;
}

.post-card__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.post-card__title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 8px;
}

.post-card__title-link {
    display: inline-block;
}

.post-card__title-link:hover .post-card__title {
    color: var(--color-primary);
}

.post-card__excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.post-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-text-tertiary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.pagination__numbers {
    display: flex;
    gap: 4px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pagination__link:hover {
    background: var(--color-bg-accent);
}

.pagination__link--active {
    background: var(--color-text);
    color: #fff;
}

.pagination__link--active:hover {
    background: var(--color-text);
}

.category-header-section {
    margin-bottom: 0;
}

.category-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 12px;
}

.category-description {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

.article-header {
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 16px;
    transition: opacity 0.2s ease;
}

.article-category:hover {
    opacity: 0.7;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.article-excerpt {
    font-size: 19px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

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

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.article-author__name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.article-author__date {
    display: block;
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.article-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.article-share__btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #2b2b2b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.article-share__btn:hover {
    background: #efefef;
    color: #121212;
}

.article-share__btn svg {
    width: 24px;
    height: 24px;
}

.article-share__btn--react {
    width: auto;
    min-width: 36px;
    padding: 0 10px;
    border: 1px solid #dde1e8;
    background: #fff;
    gap: 6px;
}

.article-share__btn--react svg {
    width: 19px;
    height: 19px;
}

.article-share__btn--react:hover {
    background: #f8fafd;
    border-color: #d3d8e1;
}

.article-share__btn--react.is-active {
    border-color: #2a6ec1;
    color: #2a6ec1;
    background: #eef5ff;
}

.article-share__count {
    font-size: 12px;
    font-weight: 600;
    color: #3f4f64;
    line-height: 1;
}

.article-share__btn--speech {
    width: auto;
    min-width: 36px;
    padding: 0 11px;
    border: 1px solid #d9dde4;
    background: #fff;
    gap: 6px;
}

.article-share__btn--speech .article-share__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
}

.article-share__btn--speech svg {
    width: 18px;
    height: 18px;
}

.article-share__btn--speech:hover {
    background: #f7f9fb;
    border-color: #ced4dd;
}

.article-share__btn--speech.is-speaking {
    background: #2a6ec1;
    border-color: #2a6ec1;
    color: #fff;
}

.article-share__btn--speech.is-speaking:hover {
    background: #245fa8;
    border-color: #245fa8;
    color: #fff;
}

.article-share__btn--speech.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.article-comments-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 28, 37, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: calc(var(--z-header) + 9);
}

.article-comments-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.article-comments-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid #e6eaf0;
    box-shadow: -22px 0 42px rgba(18, 24, 34, 0.18);
    transform: translateX(102%);
    transition: transform 0.24s ease;
    z-index: calc(var(--z-header) + 10);
    display: flex;
    flex-direction: column;
}

.article-comments-drawer.is-open {
    transform: translateX(0);
}

.article-comments-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid #eceef3;
}

.article-comments-drawer__header h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-family: var(--font-serif);
    color: #21252d;
}

.article-comments-drawer__close {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe0e8;
    border-radius: 999px;
    background: #fff;
    color: #3b4453;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.article-comments-drawer__close:hover {
    background: #f7f8fb;
    border-color: #ced5e0;
}

.article-comments-form {
    padding: 16px 18px 14px;
    border-bottom: 1px solid #eceef3;
    display: grid;
    gap: 8px;
}

.article-comments-form label {
    font-size: 13px;
    font-weight: 600;
    color: #3b4758;
}

.article-comments-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 104px;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    padding: 11px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.52;
    color: #1f2734;
    background: #fff;
}

.article-comments-form textarea:focus {
    outline: none;
    border-color: rgba(42, 110, 193, 0.45);
    box-shadow: 0 0 0 3px rgba(42, 110, 193, 0.13);
}

.article-comments-form__submit {
    min-height: 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #2f7ad9 0%, #2a6ec1 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.article-comments-form__submit:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.article-comments-form__submit:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    transform: none;
}

.article-comments-login {
    padding: 18px;
    border-bottom: 1px solid #eceef3;
}

.article-comments-login p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.52;
    color: #4a5565;
}

.article-comments-login__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #2a6ec1;
    color: #2a6ec1;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.article-comments-login__btn:hover {
    background: #2a6ec1;
    color: #fff;
}

.article-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 18px 18px;
}

.article-comments-empty {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6a7586;
}

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

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

.article-comment-item__avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #edf3ff;
    color: #2a6ec1;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.article-comment-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.article-comment-item__meta strong {
    font-size: 13px;
    font-weight: 700;
    color: #273344;
}

.article-comment-item__meta time {
    font-size: 12px;
    color: #7b8798;
}

.article-comment-item__content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #384657;
}

body.comments-drawer-open {
    overflow: hidden;
}

.article-comments-inline {
    padding: 8px 0 10px;
}

.article-comments-inline .container--narrow {
    border-top: 1px solid var(--color-border-light);
    padding-top: 22px;
}

.article-comments-inline__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.article-comments-inline__head h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #232a35;
}

.article-comments-inline__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #dce2ec;
    border-radius: 999px;
    color: #54647b;
    font-size: 12px;
    font-weight: 600;
}

.article-comments-inline__badge svg {
    width: 16px;
    height: 16px;
}

.article-comments-form--inline {
    padding: 16px;
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    background: #fdfefe;
    margin-bottom: 14px;
}

.article-comments-form--inline textarea {
    min-height: 88px;
}

.article-comments-login--inline {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    background: #fbfcfe;
}

.article-comments-list--inline {
    padding: 0;
    overflow: visible;
    max-height: none;
}

.article-share-toast {
    position: fixed;
    left: 50%;
    top: 88px;
    transform: translate(-50%, -18px);
    background: #67c987;
    color: #fff;
    border-radius: 14px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    z-index: calc(var(--z-header) + 8);
    transition: opacity 0.22s ease, transform 0.22s ease;
    box-shadow: 0 16px 35px rgba(33, 93, 54, 0.22);
}

.article-share-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.article-share-toast__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.article-share-toast__icon svg {
    width: 14px;
    height: 14px;
}

.article-image {
    margin-bottom: 48px;
}

.article-image img {
    width: 100%;
    border-radius: 8px;
    max-height: 560px;
    object-fit: cover;
}

.article-content {
    margin-bottom: 40px;
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 24px;
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.article-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px;
    line-height: 1.3;
}

.article-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

.article-content ul,
.article-content ol {
    margin: 16px 0 24px 24px;
    font-size: 18px;
    line-height: 1.8;
}

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

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content img {
    border-radius: 6px;
    margin: 24px 0;
}

.article-content pre {
    background: var(--color-bg-accent);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
}

.article-tags {
    margin-bottom: 48px;
}

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

.tag {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    background: var(--color-bg-accent);
    color: var(--color-text-secondary);
    border-radius: 20px;
}

/* ═══════════════════════════════════════════
   Article Engagement Bar (Save / Bookmark / Share)
   ═══════════════════════════════════════════ */

.article-engagement {
    padding: 0 0 12px;
}

.article-engagement__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--color-border-light);
}

.article-engagement__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.article-engagement__btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.article-engagement__btn:hover {
    background: var(--color-bg-accent);
    border-color: #ccc;
    color: var(--color-text);
}

.article-engagement__btn.is-active {
    background: #eef5ff;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.article-engagement__btn.is-active svg {
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════
   Article Newsletter Card
   ═══════════════════════════════════════════ */

.article-newsletter {
    padding: 12px 0 0;
    margin-bottom: 0;
}

.article-newsletter__card {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 10px;
}

.article-newsletter__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.article-newsletter__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #ffe97a;
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: #262626;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-newsletter__kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.article-newsletter__title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0 0 12px;
}

.article-newsletter__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto 24px;
}

.article-newsletter__form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

.article-newsletter__input {
    flex: 1;
    height: 50px;
    padding: 0 160px 0 20px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.article-newsletter__input::placeholder {
    color: #b0b0b0;
}

.article-newsletter__input:focus {
    border-color: #aaa;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.article-newsletter__submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 42px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: #5b5fc7;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.article-newsletter__submit:hover {
    background: #4e52b0;
}

.article-newsletter__submit:active {
    transform: translateY(-50%) scale(0.97);
}

/* Responsive */
@media (max-width: 600px) {
    .article-engagement__actions {
        gap: 6px;
    }

    .article-engagement__btn {
        padding: 8px 14px;
        font-size: 13px;
        gap: 5px;
    }

    .article-engagement__btn svg {
        width: 15px;
        height: 15px;
    }

    .article-newsletter__card {
        padding: 32px 20px;
    }

    .article-newsletter__title {
        font-size: 24px;
    }

    .article-newsletter__desc {
        font-size: 14px;
    }

    .article-newsletter__input {
        height: 46px;
        padding: 0 140px 0 16px;
        font-size: 14px;
    }

    .article-newsletter__submit {
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }
}

.related-section {
    padding-bottom: 0;
}

.related-section .section-title {
    margin-top: 0;
}

.notfound-page {
    padding: 42px 0 24px;
}

.notfound-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 38px;
    align-items: center;
}

.notfound-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1b1b1b;
    background: #ececec;
    margin-bottom: 16px;
}

.notfound-title {
    font-family: var(--font-serif);
    font-size: 54px;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.02em;
    color: #242424;
    margin-bottom: 16px;
    max-width: 13ch;
}

.notfound-description {
    font-size: 17px;
    line-height: 1.55;
    color: #5b5b5b;
    max-width: 34ch;
    margin-bottom: 24px;
}

.notfound-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.notfound-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid #e6cf49;
    background: linear-gradient(180deg, #f5de5a 0%, #f0d649 100%);
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 16px rgba(104, 84, 18, 0.12);
}

.notfound-btn:hover {
    color: #1f1f1f;
    filter: brightness(1.01);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(104, 84, 18, 0.16);
}

.notfound-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #d9d9d9;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #3e4656;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.notfound-link:hover {
    color: #232a38;
    border-color: #c9ccd2;
    background: #f9f9fa;
}

.notfound-visual {
    display: flex;
    justify-content: center;
}

.notfound-image,
.notfound-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 1px solid #d5d8d4;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(31, 37, 45, 0.08);
}

.notfound-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #5f5f5f;
    background: linear-gradient(145deg, #f4f4f4 0%, #ececec 100%);
}

.static-page {
    padding: 38px 0 22px;
}

.static-page__kicker {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f1f2;
    color: #4a4a4a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.static-page__title {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #232323;
    margin-bottom: 16px;
}

.static-page__lead {
    font-size: 18px;
    line-height: 1.65;
    color: #4f4f4f;
    margin-bottom: 24px;
}

.static-page__section {
    border-top: 1px solid var(--color-border-light);
    padding-top: 20px;
    margin-top: 20px;
}

.static-page__section h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #252525;
}

.static-page__section p {
    font-size: 17px;
    line-height: 1.7;
    color: #4d4d4d;
    margin-bottom: 10px;
}

.static-page__section ul {
    margin: 8px 0 0 18px;
}

.static-page__section li {
    font-size: 16px;
    line-height: 1.7;
    color: #4e4e4e;
    margin-bottom: 6px;
}

.static-page__section a {
    color: #2d5ece;
    font-weight: 600;
}

.static-page__section a:hover {
    color: #1f4cb5;
}

.contact-page {
    padding: 40px 0 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.contact-info {
    padding-top: 4px;
}

.contact-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f668e;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #232323;
    margin-bottom: 14px;
    max-width: 18ch;
}

.contact-description {
    font-size: 17px;
    line-height: 1.65;
    color: #4f4f4f;
    margin-bottom: 16px;
    max-width: 42ch;
}

.contact-points {
    margin: 0 0 14px;
    padding-left: 20px;
}

.contact-points li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #525252;
}

.contact-email-line {
    font-size: 15px;
    color: #505050;
}

.contact-email-line a {
    color: #2d5ece;
    font-weight: 600;
}

.contact-email-line a:hover {
    color: #1f4cb5;
}

.contact-form-card {
    border: 1px solid var(--color-border-light);
    border-radius: 14px;
    background: #fff;
    padding: 22px;
}

.contact-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.contact-alert--success {
    background: #e9f8ef;
    border: 1px solid #cdeedb;
    color: #2f7654;
}

.contact-alert--error {
    background: #fff1f1;
    border: 1px solid #f3d4d4;
    color: #a14a4a;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2f3746;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    font-size: 15px;
    color: #252a34;
    font-family: var(--font-sans);
    padding: 11px 12px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
    resize: vertical;
    min-height: 128px;
    line-height: 1.6;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: rgba(42, 110, 193, 0.46);
    box-shadow: 0 0 0 3px rgba(42, 110, 193, 0.14);
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, #2f7ad9 0%, #2a6ec1 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 18px rgba(42, 110, 193, 0.20);
}

.contact-submit:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(42, 110, 193, 0.24);
}

.btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-primary-hover);
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    font-size: 16px;
    color: var(--color-text-secondary);
}

.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 40px;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    display: inline-block;
    margin-bottom: 12px;
}

.footer-about {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-text);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

@media (max-width: 900px) {
    :root {
        --header-height: 56px;
        --slider-height: 48px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .category-slider__arrow {
        width: 30px;
        height: 30px;
    }

    .category-slider__arrow svg {
        width: 14px;
        height: 14px;
    }

    .category-slider__item {
        font-size: 14px;
        padding: 6px 12px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .featured-card--small {
        flex-direction: row;
    }

    .featured-card--small .featured-card__image {
        width: 140px;
        min-width: 140px;
    }

    .featured-card--large .featured-card__title {
        font-size: 24px;
    }

    .post-card__link {
        padding: 20px 0;
    }

    .post-card__image {
        width: 120px;
        min-width: 120px;
    }

    .post-card__title {
        font-size: 17px;
    }

    .post-card__excerpt {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .category-title {
        font-size: 32px;
    }

    .article-title {
        font-size: 30px;
    }

    .article-excerpt {
        font-size: 16px;
    }

    .article-content p {
        font-size: 16px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .article-share {
        justify-content: flex-start;
    }

    .article-share__btn {
        width: 34px;
        height: 34px;
    }

    .article-share__btn svg {
        width: 22px;
        height: 22px;
    }

    .article-share__btn--speech {
        min-width: 34px;
        padding: 0 10px;
    }

    .article-share__btn--speech svg {
        width: 17px;
        height: 17px;
    }

    .article-share__btn--react {
        min-width: 34px;
        padding: 0 9px;
    }

    .article-share__btn--react svg {
        width: 18px;
        height: 18px;
    }

    .article-share-toast {
        top: 84px;
        font-size: 13px;
        padding: 10px 14px;
    }

    .article-comments-inline__head h2 {
        font-size: 27px;
    }

    .notfound-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .notfound-title {
        font-size: 44px;
        max-width: 14ch;
    }

    .notfound-description {
        font-size: 17px;
        max-width: 36ch;
    }

    .notfound-visual {
        justify-content: flex-start;
    }

    .notfound-image,
    .notfound-placeholder {
        max-width: 520px;
    }

    .static-page__title {
        font-size: 34px;
    }

    .static-page__lead {
        font-size: 17px;
    }

    .static-page__section h2 {
        font-size: 24px;
    }

    .static-page__section p,
    .static-page__section li {
        font-size: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-title {
        font-size: 34px;
    }

    .contact-description {
        font-size: 16px;
    }

    .contact-form-card {
        padding: 18px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .site-main {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .category-slider__inner {
        padding: 0 12px;
    }

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

    .featured-card--small .featured-card__image {
        width: 100%;
    }

    .post-card__link {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .post-card__image {
        width: 100%;
    }

    .article-title {
        font-size: 26px;
    }

    .article-comments-drawer {
        width: min(380px, 100vw);
    }

    .article-comments-drawer__header h3 {
        font-size: 24px;
    }

    .article-comments-inline {
        padding-top: 2px;
    }

    .article-comments-inline__head h2 {
        font-size: 24px;
    }

    .article-comments-inline__badge {
        min-height: 30px;
        padding: 0 9px;
    }

    .article-share__btn--speech .article-share__label {
        display: none;
    }

    .article-share-toast {
        left: 16px;
        right: 16px;
        width: auto;
        transform: translateY(-12px);
        justify-content: center;
    }

    .article-share-toast.is-visible {
        transform: translateY(0);
    }

    .notfound-page {
        padding: 30px 0 16px;
    }

    .notfound-title {
        font-size: 34px;
    }

    .notfound-description {
        font-size: 16px;
    }

    .notfound-btn {
        width: 100%;
        font-size: 16px;
    }

    .notfound-link {
        width: 100%;
        text-align: center;
    }

    .static-page {
        padding-top: 30px;
    }

    .contact-page {
        padding-top: 30px;
    }

    .static-page__title {
        font-size: 29px;
    }

    .static-page__lead {
        font-size: 16px;
    }

    .static-page__section h2 {
        font-size: 22px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-title {
        font-size: 30px;
    }

    .pagination__link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* =================================
   Auth Pages (Login, Register, Account)
   ================================= */

/* --- Auth Page Split Layout --- */
.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--header-height) - var(--slider-height));
}

.auth-page__decor {
    position: relative;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-decor__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 0%, transparent 40%),
        linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.015) 40.5%, rgba(255,255,255,0.015) 60%, transparent 60.5%);
    background-size: 100% 100%, 100% 100%, 40px 40px;
}

.auth-decor__content {
    position: relative;
    z-index: 1;
    padding: 48px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.auth-decor__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 0.9;
}

.auth-decor__brand svg {
    opacity: 0.7;
}

.auth-decor__heading {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.02em;
}

.auth-decor__desc {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.5);
    margin-top: 14px;
}

.auth-decor__dots {
    display: flex;
    gap: 8px;
}

.auth-decor__dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.auth-decor__dots span:first-child {
    background: rgba(255,255,255,0.6);
}

.auth-page__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--color-bg);
    position: relative;
}

/* Subtle noise texture on form side */
.auth-page__form::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.015) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Auth Card --- */
.auth-card {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f5f5f5;
    border: 1px solid var(--color-border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-text);
}

.auth-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 14.5px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* --- Auth Form --- */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.form-input-wrap {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-input-wrap:focus-within .form-input-icon {
    color: var(--color-text);
}

.auth-form .form-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    color: var(--color-text);
    background: #fafafa;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.auth-form .form-input--icon {
    padding-left: 42px;
}

.auth-form .form-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.auth-form .form-input::placeholder {
    color: #b0b0b0;
}

/* Button with arrow icon */
.btn--lg {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    gap: 8px;
    letter-spacing: 0.01em;
}

.btn--lg svg {
    transition: transform 0.2s ease;
}

.btn--lg:hover svg {
    transform: translateX(3px);
}

/* Legacy auth-container support (account page) */
.auth-container {
    min-height: calc(100vh - var(--header-height) - var(--slider-height) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-container--top {
    align-items: flex-start;
}

/* Auth page entrance animations */
@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes authSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.auth-page .auth-card {
    animation: authFadeUp 0.5s ease both;
}

.auth-page .auth-decor__content {
    animation: authSlideIn 0.6s ease 0.15s both;
}

.auth-page .auth-form .form-group {
    animation: authFadeUp 0.4s ease both;
}

.auth-page .auth-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.auth-page .auth-form .form-group:nth-child(2) { animation-delay: 0.15s; }
.auth-page .auth-form .form-group:nth-child(3) { animation-delay: 0.2s; }
.auth-page .auth-form .form-group:nth-child(4) { animation-delay: 0.25s; }

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .auth-page {
        grid-template-columns: 0.85fr 1fr;
    }

    .auth-decor__heading {
        font-size: 28px;
    }

    .auth-decor__content {
        padding: 36px;
    }
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 6px;
    margin-bottom: 12px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.checkbox-label:hover {
    background: #eef5ff;
    border-color: #dceaff;
}

.checkbox-label:has(input:checked) {
    background: linear-gradient(135deg, #eff6ff 0%, #deebff 100%);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.checkbox-label span {
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.checkbox-label:has(input:checked) span {
    color: var(--color-primary);
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-primary-hover);
}

.btn--secondary {
    background: var(--color-bg-accent);
    color: var(--color-text);
}

.btn--secondary:hover {
    background: var(--color-border);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--outline:hover {
    background: var(--color-bg-accent);
}

.btn--full {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border-light);
}

.auth-footer p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.auth-footer a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid var(--color-border);
    padding-bottom: 1px;
    transition: border-color 0.2s ease;
}

.auth-footer a:hover {
    border-color: var(--color-text);
}

/* Alert Messages */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Account Page */
.account-wrapper {
    width: 100%;
    max-width: 680px;
}

.inbox-layout {
    width: 100%;
    max-width: 1220px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 36px;
    align-items: start;
}

.inbox-main {
    min-width: 0;
}

.inbox-header {
    margin-bottom: 20px;
}

.inbox-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

.inbox-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.inbox-tab {
    border: none;
    background: transparent;
    color: #8f8f8f;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    padding: 0 0 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.inbox-tab:hover {
    color: #2a2a2a;
}

.inbox-tab--active {
    color: #222;
    border-bottom-color: #2e2e2e;
}

.inbox-tab[disabled] {
    cursor: default;
    opacity: 1;
}

.inbox-empty {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
}

.inbox-empty h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.inbox-empty p {
    color: var(--color-text-secondary);
}

.inbox-empty__note {
    font-size: 14px;
    color: var(--color-text-secondary);
    padding: 12px 0;
}

.inbox-list {
    background: transparent;
}

.inbox-item {
    display: flex;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.inbox-item__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f4d835;
    color: #121212;
    font-weight: 700;
    font-size: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-serif);
}

.inbox-item__content {
    min-width: 0;
}

.inbox-item__content--clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.inbox-item__content--clickable:hover {
    background: #f8f8f8;
}

.inbox-item__title {
    color: #222;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 600;
    margin-bottom: 5px;
}

.inbox-item__message {
    color: #5d5d5d;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.inbox-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.2;
    color: #8a8a8a;
}

.inbox-item__link {
    color: var(--color-primary);
    font-weight: 600;
}

.inbox-item__dot {
    color: var(--color-text-tertiary);
}

.inbox-side {
    border-left: 1px solid var(--color-border);
    padding-left: 22px;
}

.inbox-side__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.inbox-side__head h2 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #1f1f1f;
}

.inbox-side__item {
    display: grid;
    grid-template-columns: 1fr 68px;
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.inbox-side__item:last-child {
    border-bottom: none;
}

.inbox-side__title {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.32;
    color: #1f1f1f;
    margin-bottom: 5px;
    display: block;
}

.inbox-side__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f5f;
}

.inbox-side__thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
}

.inbox-side__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    margin-bottom: 24px;
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
}

.account-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.account-email {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.account-role {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: #dbeafe;
    color: #1e40af;
}

.role-editor {
    background: #fef3c7;
    color: #92400e;
}

.role-member {
    background: #f3f4f6;
    color: #4b5563;
}

.account-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
}

.account-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.account-form .form-group {
    margin-bottom: 20px;
}

.account-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.account-form .form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.account-form .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.account-form .form-input:disabled {
    background: var(--color-bg-accent);
    color: var(--color-text-tertiary);
    cursor: not-allowed;
}

.account-form .form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text-primary);
    transition: border-color 0.2s ease;
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.account-form .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.account-form .form-textarea::placeholder {
    color: var(--color-text-tertiary);
}

.account-form .form-divider {
    height: 1px;
    background: var(--color-border);
    margin: 24px 0;
}

.account-section--danger {
    border-color: #fecaca;
}

.account-section--danger .section-title {
    border-color: #fecaca;
}

.account-section--danger p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

/* Header Account Icon */
.header-account-icon {
    color: var(--color-primary);
}

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

    .auth-page__decor {
        display: none;
    }

    .auth-page__form {
        padding: 32px 20px;
        min-height: calc(100vh - var(--header-height) - var(--slider-height));
    }

    .auth-card {
        padding: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .account-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .account-section {
        padding: 24px;
    }

    .inbox-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .inbox-side {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-left: 0;
        padding-top: 18px;
    }

    .inbox-title {
        font-size: 38px;
    }

    .inbox-tab {
        font-size: 14px;
        padding-bottom: 10px;
    }

    .inbox-tabs {
        gap: 18px;
    }

    .inbox-item {
        padding: 18px 0;
    }

    .inbox-item__icon {
        width: 42px;
        height: 42px;
        font-size: 21px;
        border-radius: 10px;
    }

    .inbox-item__title {
        font-size: 17px;
    }

    .inbox-item__message {
        font-size: 15px;
    }
}

/* =================================
   Aposto-Style Homepage Layout
   ================================= */

/* ===== HERO SLIDER (Aposto Style) ===== */

.hero-slider {
    padding: 20px 0 0;
    border-bottom: none;
    margin-bottom: 0;
}

.hero-slides {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    display: none;
}

.hero-slide--active {
    display: block;
}

.hero-slide__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: 420px;
}

.hero-slide__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
}

.hero-slide__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-slide__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.hero-slide__badge-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.hero-slide__badge-sep {
    font-size: 14px;
    color: var(--color-text-tertiary);
}

.hero-slide__badge-premium {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.hero-slide__title {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.hero-slide__title:hover {
    color: var(--color-text-secondary);
}

.hero-slide__excerpt {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-tertiary);
}

.hero-slide__author {
    font-weight: 500;
    color: var(--color-text);
}

.hero-slide__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
}

.hero-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.hero-slide__image:hover img {
    filter: brightness(1.05);
}

.hero-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 32px 0;
}

.hero-nav__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.hero-nav__btn:hover {
    background: var(--color-bg-accent);
    border-color: #ccc;
}

/* Hero Responsive */
@media (max-width: 1024px) {
    .hero-slide__inner {
        gap: 32px;
    }

    .hero-slide__title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        padding: 32px 0 0;
    }

    .hero-slide__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .hero-slide__content {
        order: 2;
        padding: 0;
    }

    .hero-slide__image {
        order: 1;
        aspect-ratio: 16 / 9;
    }

    .hero-slide__title {
        font-size: 26px;
    }

    .hero-slide__excerpt {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .hero-nav {
        padding: 24px 0;
    }
}

/* ===== END HERO SLIDER ===== */

.aposto-layout {
    display: grid;
    grid-template-columns: 1fr 404px;
    gap: 0;
    align-items: start;
}

.aposto-main {
    border-right: 1px solid var(--color-border);
    padding-right: 24px;
    min-width: 0;
}

.aposto-sidebar {
    padding-left: 24px;
    align-self: flex-start;
}

.aposto-section-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 25px;
    color: #121212;
    margin-bottom: 24px;
}

.aposto-divider {
    display: none;
}

/* --- Bulten Carousel --- */

.bulten-section {
    padding: 24px;
    background: #f7f7f7;
    border: none;
    border-radius: 10px;
    margin-bottom: 24px;
    margin-right: 0;
}

.bulten-carousel {
    position: relative;
}

.bulten-slides {
    position: relative;
    overflow: hidden;
}

.bulten-slide {
    display: none;
}

.bulten-slide--active {
    display: block;
}

.bulten-slide__inner {
    display: grid;
    grid-template-columns: 211px 1fr;
    gap: 32px;
    align-items: start;
}

.bulten-slide__image {
    width: 100%;
    aspect-ratio: 211 / 260;
    border-radius: 4px;
    overflow: hidden;
}

.bulten-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bulten-slide__content {
    padding-top: 4px;
}

.bulten-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.bulten-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #efd23c;
    color: #121212;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.bulten-badge__name {
    font-size: 13px;
    font-weight: 400;
    font-family: var(--font-sans);
    line-height: 22px;
    color: var(--color-text);
}

.bulten-slide__title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #121212;
    margin-bottom: 8px;
}

.bulten-slide__title:hover {
    color: #121212;
}

.bulten-slide__excerpt {
    font-size: 14px;
    color: #5a5a5a;
    line-height: 20px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bulten-slide__date {
    font-size: 14px;
    line-height: 22px;
    margin: 15px 0 14px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 400;
    display: inline-block;
}

.bulten-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.bulten-nav__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    box-shadow: inset 0 0 0 1px #dfdfdf;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #262626;
    transition: all 0.2s ease;
}

.bulten-nav__btn:hover {
    background: #efefef;
}

/* --- Hikayeler Section --- */

.hikayeler-section {
    padding-bottom: 0;
    padding-right: 0;
}

.hikaye-list {
    display: flex;
    flex-direction: column;
}

.hikaye-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.hikaye-card:first-child {
    padding-top: 0;
}

.hikaye-card:last-child {
    border-bottom: none;
}

.hikaye-card__body {
    flex: 1;
    min-width: 0;
}

.hikaye-card__meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.hikaye-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hikaye-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.hikaye-badge__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.hikaye-card__separator {
    font-size: 14px;
    color: var(--color-text-tertiary);
}

.hikaye-card__type {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
}

.hikaye-card__title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.hikaye-card__title:hover {
    color: var(--color-text-secondary);
}

.hikaye-card__excerpt {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.hikaye-card__meta-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.hikaye-card__author {
    font-weight: 500;
}

/* Paylaş & Bağlantı ikonları */
.hikaye-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.hikaye-card__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #a3a3a3;
    border-radius: 6px;
    cursor: pointer;
    transition: color .2s, background .2s;
    padding: 0;
}

.hikaye-card__action-btn:hover {
    color: #171717;
    background: #f5f5f5;
}

.hikaye-card__action-btn.is-copied {
    color: #16a34a;
}

.hikaye-card__action-btn svg {
    display: block;
}

.hikaye-card__image {
    width: 200px;
    min-width: 200px;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.hikaye-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    filter: brightness(0.95);
}

.hikaye-card__image:hover img {
    filter: brightness(1.03);
}

/* --- Sidebar: Son Haberler --- */

.sidebar-haberler {
    padding: 24px;
    background: #f9f9f4;
    border-radius: 10px;
    border: none;
    margin-bottom: 32px;
}

.haber-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.haber-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    padding-left: 16px;
}

.haber-item::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 16px;
    font-weight: 900;
    color: var(--color-text);
}

.haber-item:first-child {
    padding-top: 0;
}

.haber-item:first-child::before {
    top: 16px;
}

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

.haber-item p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 24px;
}

.haber-item strong {
    font-weight: 700;
}

/* --- Sidebar: Kaydol --- */

.sidebar-kaydol {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.sidebar-kaydol__label {
    display: block;
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-bottom: 16px;
}

.sidebar-kaydol__title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 12px;
}

.sidebar-kaydol__desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.sidebar-kaydol__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-kaydol__input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg-accent);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: var(--font-sans);
}

.sidebar-kaydol__input:focus {
    border-color: var(--color-text-tertiary);
}

.sidebar-kaydol__input::placeholder {
    color: var(--color-text-tertiary);
}

.sidebar-kaydol__btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.2s ease;
}

.sidebar-kaydol__btn:hover {
    background: var(--color-primary-hover);
}

/* --- Sidebar Footer Links --- */

.sidebar-footer-links {
    padding-top: 0;
}

.sidebar-footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 10px;
}

.sidebar-footer-row a {
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.sidebar-footer-row a:hover {
    color: var(--color-text);
}

.sidebar-copyright {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 16px;
}

/* --- Aposto Layout Responsive --- */

@media (max-width: 1024px) {
    .aposto-layout {
        grid-template-columns: 1fr 320px;
    }

    .aposto-main {
        padding-right: 28px;
    }

    .aposto-sidebar {
        padding-left: 28px;
    }

    .bulten-slide__inner {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }

    .hikaye-card__image {
        width: 160px;
        min-width: 160px;
    }
}

@media (max-width: 900px) {
    .aposto-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .aposto-main {
        border-right: none;
        padding-right: 0;
    }

    .aposto-sidebar {
        padding-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: 40px;
    }

    .hikayeler-section {
        padding-right: 0;
    }

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

    .bulten-section {
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .bulten-slide__image {
        aspect-ratio: 16 / 9;
    }

    .bulten-slide__title {
        font-size: 22px;
    }

    .hikaye-card {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .hikaye-card__image {
        width: 100%;
        min-width: unset;
        aspect-ratio: 16 / 9;
    }

    .hikaye-card__title {
        font-size: 19px;
    }

    .sidebar-kaydol__title {
        font-size: 22px;
    }
}

/* =================================
   Hesap / Kütüphane / Arama Sayfaları
   ================================= */

.settings-page-wrap {
    padding-top: 32px;
}

.settings-page {
    width: 100%;
    max-width: 1220px;
}

.settings-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.settings-nav {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-nav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 14px;
    color: #2b2b2b;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.settings-nav__item:hover {
    border-color: var(--color-border);
    background: #fafafa;
}

.settings-nav__item--active {
    border-color: var(--color-border);
    background: #f8f8f8;
}

.settings-nav__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.settings-nav__text strong {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    color: #202020;
}

.settings-nav__text span {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: #757575;
}

.settings-nav__arrow {
    font-size: 20px;
    line-height: 1;
    color: #8b8b8b;
}

.settings-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 24px;
}

.settings-card--danger {
    border-color: #e7d6d6;
}

.settings-card__title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1f1f1f;
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 8px;
}

.avatar-upload__preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3a25b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.avatar-upload__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload__initial {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    font-family: var(--font-serif);
}

.avatar-upload__controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.avatar-upload__controls .form-hint {
    margin: 0;
}

.avatar-upload__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.avatar-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.avatar-upload__remove {
    cursor: pointer;
    color: #dc2626 !important;
    border-color: #fecaca !important;
    background: #fff !important;
    font-size: 13px;
}

.avatar-upload__remove:hover {
    background: #fef2f2 !important;
}

.btn--sm {
    padding: 6px 14px;
    font-size: 13px;
}

.settings-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.settings-profile-field {
    padding: 12px 14px;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    background: #fcfcfc;
}

.settings-profile-field span {
    display: block;
    font-size: 12px;
    color: #818181;
    margin-bottom: 4px;
}

.settings-profile-field strong {
    font-size: 16px;
    line-height: 1.35;
    color: #222;
    font-weight: 600;
}

.settings-plan-card {
    border: 1px solid #ecd888;
    background: linear-gradient(180deg, #f9e48c 0%, #f6db6f 100%);
    border-radius: 12px;
    padding: 16px;
}

.settings-plan-card__badge {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #5d4b09;
    margin-bottom: 6px;
    font-weight: 600;
}

.settings-plan-card h3 {
    font-size: 24px;
    line-height: 1.25;
    color: #2b2100;
    margin-bottom: 10px;
}

.settings-plan-card ul {
    margin: 0;
    padding-left: 18px;
    color: #4f4108;
}

.settings-plan-card li {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 4px;
}

.settings-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.settings-switch input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.settings-switch span {
    font-size: 15px;
    line-height: 1.45;
    color: #2b2b2b;
}

.settings-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-links a {
    font-size: 15px;
    color: #2d2d2d;
    padding: 10px 12px;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    background: #fafafa;
}

.settings-links a:hover {
    color: var(--color-primary);
    border-color: #d0e1f8;
    background: #f4f8ff;
}

.library-page-wrap {
    padding-top: 32px;
}

.library-layout {
    width: 100%;
    max-width: 1220px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.library-main {
    min-width: 0;
}

.library-header {
    margin-bottom: 18px;
}

.library-title {
    font-size: 46px;
    line-height: 1.08;
    font-weight: 700;
    color: #1e1e1e;
}

.library-subtitle {
    margin-top: 8px;
    font-size: 15px;
    color: #6c6c6c;
}

.library-tabs {
    display: flex;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
}

.library-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #707070;
    font-size: 14px;
    font-weight: 500;
}

.library-tab:hover {
    color: #2b2b2b;
    background: #f5f5f5;
}

.library-tab--active {
    color: #1f1f1f;
    background: #eef5ff;
    box-shadow: inset 0 0 0 1px #dce9fb;
}

.library-tab__count {
    font-size: 12px;
    color: #7d7d7d;
}

.library-list {
    display: flex;
    flex-direction: column;
}

.library-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.library-item__image {
    width: 180px;
    height: 124px;
    border-radius: 10px;
    overflow: hidden;
}

.library-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-item__meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7b7b7b;
    margin-bottom: 8px;
}

.library-item__category {
    color: var(--color-primary);
    font-weight: 600;
}

.library-item__title {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.3;
    color: #1f1f1f;
    margin-bottom: 8px;
}

.library-item__excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #5d5d5d;
    margin-bottom: 10px;
}

.library-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.library-item__actions form {
    margin: 0;
}

.library-empty {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fcfcfc;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 16px;
}

.library-empty__icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 36px;
    line-height: 1;
    color: #fff;
    background: #d8dce2;
}

.library-empty h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #1f1f1f;
}

.library-empty p {
    font-size: 15px;
    color: #666;
}

.library-side {
    border-left: 1px solid var(--color-border);
    padding-left: 22px;
}

.library-side h2 {
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.library-side__item {
    display: grid;
    grid-template-columns: 1fr 68px;
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.library-side__item:last-child {
    border-bottom: none;
}

.library-side__title {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.34;
    margin-bottom: 4px;
    color: #1f1f1f;
}

.library-side__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: #626262;
}

.library-side__thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
}

.library-side__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-page__hero {
    background: #f7f7f7;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.search-page__hero-inner {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.search-page__hero h1 {
    font-family: var(--font-serif);
    font-size: 54px;
    line-height: 1.1;
    color: #1f1f1f;
    margin-bottom: 18px;
}

.search-page__form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 640px;
    position: relative;
}

.search-page__form input {
    flex: 1;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    padding: 0 18px;
    font-size: 16px;
    color: #1f1f1f;
    background: #fff;
}

.search-page__live-results {
    position: absolute;
    left: 0;
    right: 76px;
    top: calc(100% + 8px);
    z-index: 15;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(18, 24, 34, 0.1);
    overflow: hidden;
}

.search-page__live-item {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f6;
}

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

.search-page__live-item:hover {
    background: #fafafa;
}

.search-page__live-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.4;
}

.search-page__live-meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #757575;
}

.search-page__live-empty {
    padding: 12px 14px;
    font-size: 13px;
    color: #7a7a7a;
}

.search-page__body {
    padding: 34px 0 8px;
}

.search-results-header {
    margin-bottom: 16px;
}

.search-results-header h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.search-results-header p {
    font-size: 14px;
    color: #737373;
}

.search-results-list {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.search-result-item__meta {
    display: inline-block;
    font-size: 12px;
    color: #7d7d7d;
    margin-bottom: 6px;
}

.search-result-item__title {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #1f1f1f;
}

.search-result-item p {
    font-size: 14px;
    line-height: 1.65;
    color: #5d5d5d;
}

.search-result-item__thumb {
    width: 160px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
}

.search-result-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-empty {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fafafa;
    padding: 18px;
    font-size: 15px;
    color: #666;
}

.search-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.search-links-col h3 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.search-links-col a {
    display: block;
    font-size: 16px;
    color: #2b2b2b;
    line-height: 1.55;
    margin-bottom: 8px;
}

.search-links-col a:hover {
    color: var(--color-primary);
}

.author-profile-hero {
    background: #f7f7f7;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 54px 0 44px;
}

.author-profile-hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-profile-hero__avatar {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: #ececec;
    color: #3a3a3a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.author-profile-hero__avatar span {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1;
}

.author-profile-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile-hero__name {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.author-profile-hero__bio {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin: 0 auto 12px;
}

.author-profile-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 15px;
    color: #616161;
}

.author-profile-feed {
    padding: 24px 0 52px;
}

.author-profile-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border-light);
}

.author-profile-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.author-profile-post__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-bottom: 10px;
}

.author-profile-post__category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.author-profile-post__title-link {
    display: inline-block;
}

.author-profile-post__title {
    font-family: var(--font-serif);
    font-size: 27px;
    line-height: 1.18;
    margin-bottom: 10px;
    color: #1e1e1e;
}

.author-profile-post__title-link:hover .author-profile-post__title {
    color: var(--color-primary);
}

.author-profile-post__excerpt {
    font-size: 16px;
    line-height: 1.65;
    color: #5f5f5f;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-profile-post__image {
    width: 220px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    justify-self: end;
}

.author-profile-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s ease;
    filter: brightness(0.96);
}

.author-profile-post__image:hover img {
    filter: brightness(1.03);
}

.author-profile-empty {
    padding: 30px 0 8px;
}

.author-profile-empty h2 {
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.author-profile-empty p {
    font-size: 16px;
    color: #666;
}

@media (max-width: 1100px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-nav {
        position: static;
    }

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

    .library-side {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-left: 0;
        padding-top: 14px;
    }

    .search-links-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .author-profile-post__image {
        width: 100%;
        height: 240px;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .settings-nav__text strong {
        font-size: 17px;
    }

    .settings-card__title,
    .library-empty h2,
    .search-results-header h2,
    .search-links-col h3 {
        font-size: 20px;
    }

    .settings-profile-grid {
        grid-template-columns: 1fr;
    }

    .library-title,
    .search-page__hero h1 {
        font-size: 42px;
    }

    .library-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .library-tabs::-webkit-scrollbar {
        display: none;
    }

    .library-item {
        grid-template-columns: 1fr;
    }

    .library-item__image {
        width: 100%;
        height: 200px;
    }

    .library-item__title,
    .search-result-item__title {
        font-size: 19px;
    }

    .search-page__form {
        flex-direction: column;
        align-items: stretch;
    }

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

    .search-result-item {
        grid-template-columns: 1fr;
    }

    .search-result-item__thumb {
        width: 100%;
        height: 210px;
    }

    .author-profile-hero {
        padding: 40px 0 34px;
    }

    .author-profile-hero__avatar {
        width: 74px;
        height: 74px;
    }

    .author-profile-hero__avatar span {
        font-size: 31px;
    }

    .author-profile-hero__name {
        font-size: 32px;
    }

    .author-profile-hero__meta {
        font-size: 14px;
    }

    .author-profile-post {
        padding: 18px 0;
        gap: 14px;
    }

    .author-profile-post__title {
        font-size: 23px;
    }

    .author-profile-post__excerpt {
        font-size: 15px;
    }

    .author-profile-post__image {
        height: 210px;
    }
}

/* =================================
   Frontend Button Color Palette (Admin-like)
   Only button colors are overridden.
   ================================= */

:root {
    --front-btn-primary: #171717;
    --front-btn-primary-hover: #0f0f0f;
    --front-btn-ghost-bg: #ffffff;
    --front-btn-ghost-border: #d4d4d4;
    --front-btn-ghost-hover: #f5f5f5;
    --front-btn-ghost-text: #171717;
}

/* Primary-style buttons */
.header-signup-btn,
.article-newsletter__submit,
.article-comments-form__submit,
.contact-submit,
.sidebar-kaydol__btn,
.btn--primary,
.notfound-btn {
    background: var(--front-btn-primary) !important;
    color: #ffffff !important;
    border-color: var(--front-btn-primary) !important;
    box-shadow: none !important;
}

.header-signup-btn:hover,
.article-newsletter__submit:hover,
.article-comments-form__submit:hover,
.contact-submit:hover,
.sidebar-kaydol__btn:hover,
.btn--primary:hover,
.notfound-btn:hover {
    background: var(--front-btn-primary-hover) !important;
    color: #ffffff !important;
    border-color: var(--front-btn-primary-hover) !important;
}

/* Ghost / outline-style buttons */
.header-account-btn,
.article-engagement__btn,
.article-share__btn--react,
.article-share__btn--speech,
.article-comments-login__btn,
.hero-nav__btn,
.bulten-nav__btn,
.category-slider__arrow,
.notfound-link,
.btn--outline,
.btn--secondary {
    background: var(--front-btn-ghost-bg) !important;
    color: var(--front-btn-ghost-text) !important;
    border-color: var(--front-btn-ghost-border) !important;
}

.header-account-btn:hover,
.article-engagement__btn:hover,
.article-share__btn--react:hover,
.article-share__btn--speech:hover,
.article-comments-login__btn:hover,
.hero-nav__btn:hover,
.bulten-nav__btn:hover,
.category-slider__arrow:hover,
.notfound-link:hover,
.btn--outline:hover,
.btn--secondary:hover {
    background: var(--front-btn-ghost-hover) !important;
    color: #171717 !important;
    border-color: #bfbfbf !important;
}

/* Active/toggled buttons */
.article-engagement__btn.is-active,
.article-share__btn--react.is-active,
.article-share__btn--speech.is-speaking,
.library-tab--active {
    background: #171717 !important;
    color: #ffffff !important;
    border-color: #171717 !important;
    box-shadow: none !important;
}

.article-engagement__btn.is-active svg,
.article-share__btn--react.is-active svg,
.article-share__btn--speech.is-speaking svg {
    color: #ffffff !important;
}
