
.m-arch { background: #f5f5f5; padding: 24px 0 40px; min-height: 60vh; }
.m-arch__wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.m-arch__head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.m-arch__h1 { margin: 0; padding: 4px 0 0; font-size: 26px; line-height: 1.35; font-weight: 700; color: #1a1a2e; font-family: 'Merriweather', Georgia, serif; }
.m-arch__crumb { display: block !important; font-size: 13px; line-height: 1.6; color: #6b7280; margin-bottom: 8px; }
.m-arch__crumb a { color: #c90914; text-decoration: none; }
.m-arch__crumb a:hover { text-decoration: underline; }
.m-arch__crumb span { margin: 0 6px; color: #9ca3af; }
.m-arch__desc { background: #fff; padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; color: #4b5563; font-size: 14px; border-left: 3px solid #c90914; }
.m-arch__total { font-size: 13px; color: #6b7280; font-weight: 500; }

/* Search + filter row */
.m-arch__controls { background: #fff; padding: 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid #e8e8e8; }
.m-arch__search { display: flex; gap: 8px; margin-bottom: 12px; }
.m-arch__search input { flex: 1; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: inherit; min-height: 44px; }
.m-arch__search input:focus { border-color: #c90914; outline: none; box-shadow: 0 0 0 3px rgba(201,9,20,.1); }
.m-arch__search button { padding: 10px 20px; background: #c90914; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; transition: background .15s; }
.m-arch__search button:hover { background: #a40010; }

.m-arch__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.m-arch__chip { display: inline-block; padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; text-decoration: none; border: 1px solid #e5e7eb; color: #555; background: #fff; transition: all .15s; line-height: 1.3; }
.m-arch__chip:hover { background: #fef2f2; color: #c90914; border-color: #c90914; }
.m-arch__chip.is-active { background: #c90914; color: #fff; border-color: #c90914; }

/* Popular top section */
.m-arch__popular { margin-bottom: 20px; }
.m-arch__popular-title { margin: 0 0 10px; padding: 2px 0 0; font-size: 16px; line-height: 1.4; font-weight: 700; color: #1a1a2e; font-family: 'Merriweather', Georgia, serif; }
.m-arch__popular-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-arch__popular-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff3f3; border: 1px solid #fdd; border-radius: 8px; text-decoration: none; color: inherit; transition: all .15s; }
.m-arch__popular-card:hover { border-color: #c90914; background: #fff; transform: translateX(2px); }
.m-arch__popular-card img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.m-arch__popular-title-t { font-size: 13px; font-weight: 600; color: #222; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Main list */
.m-arch__body { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.m-arch__main { min-width: 0; }
.m-arch__aside { min-width: 0; }
.m-arch__date-group { margin-bottom: 18px; }
.m-arch__date-label { display: inline-block; background: #c90914; color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; margin-bottom: 10px; letter-spacing: .3px; }
.m-arch__list { list-style: none; margin: 0; padding: 0; }
.m-arch__item { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 8px; overflow: hidden; transition: all .15s; }
.m-arch__item:hover { border-color: #c90914; box-shadow: 0 2px 8px rgba(0,0,0,.06); transform: translateX(3px); }
.m-arch__link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; min-height: 56px; }
.m-arch__num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #c90914; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.m-arch__thumb { flex-shrink: 0; width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #f3f4f6; }
.m-arch__info { flex: 1; min-width: 0; }
.m-arch__title { font-size: 15px; font-weight: 600; color: #1a1a2e; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: 'Source Sans 3', system-ui, sans-serif; }
.m-arch__item:hover .m-arch__title { color: #c90914; }
.m-arch__meta { display: flex; gap: 10px; font-size: 12px; color: #6b7280; flex-wrap: wrap; align-items: center; }
.m-arch__cat { background: #fef2f2; color: #c90914; padding: 2px 8px; border-radius: 3px; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.m-arch__excerpt { font-size: 13px; color: #6b7280; line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.m-arch__views { display: inline-flex; align-items: center; gap: 3px; color: #9ca3af; }

/* Sidebar lists */
.m-arch__side-list { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.m-arch__side-head { padding: 12px 14px; border-bottom: 2px solid #c90914; background: linear-gradient(180deg,#fff,#fafafa); font-size: 14px; line-height: 1.4; font-weight: 700; color: #1a1a2e; font-family: 'Merriweather', Georgia, serif; }
.m-arch__side-items { list-style: none; margin: 0; padding: 0; }
.m-arch__side-items li { border-bottom: 1px solid #f3f4f6; }
.m-arch__side-items li:last-child { border-bottom: none; }
.m-arch__side-items a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; text-decoration: none; color: #1a1a2e; font-size: 13px; line-height: 1.35; min-height: 40px; transition: background .12s; }
.m-arch__side-items a:hover { background: #fef2f2; color: #c90914; }
.m-arch__side-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #f3f4f6; color: #6b7280; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.m-arch__side-items a:hover .m-arch__side-num { background: #c90914; color: #fff; }

/* Pagination */
.m-arch__pag { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 20px; }
.m-arch__pag a, .m-arch__pag span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; color: #1a1a2e; font-size: 14px; font-weight: 600; text-decoration: none; transition: all .15s; }
.m-arch__pag a:hover { background: #fef2f2; color: #c90914; border-color: #c90914; }
.m-arch__pag .is-current { background: #c90914; color: #fff; border-color: #c90914; }
.m-arch__pag .is-disabled { opacity: .4; pointer-events: none; }

.m-arch__empty { background: #fff; padding: 40px 20px; text-align: center; border-radius: 10px; color: #6b7280; }
.m-arch__empty strong { color: #1a1a2e; display: block; margin-bottom: 6px; font-size: 18px; }

/* Mobile */
@media (max-width: 860px) {
    .m-arch__body { grid-template-columns: 1fr; }
    .m-arch__aside { order: 2; }
    .m-arch__aside .m-arch__side-list:nth-child(n+2) { display: none; }
}
@media (max-width: 600px) {
    .m-arch { padding: 18px 0 30px; }
    .m-arch__wrap { padding: 0 10px; }
    .m-arch__h1 { font-size: 22px; line-height: 1.35; padding-top: 6px; }
    .m-arch__head { gap: 6px; margin-bottom: 10px; }
    .m-arch__crumb { margin-bottom: 10px; }
    .m-arch__popular-grid { grid-template-columns: 1fr; }
    .m-arch__controls { padding: 10px; }
    .m-arch__search { flex-direction: row; gap: 6px; }
    .m-arch__search input { font-size: 13px; padding: 9px 12px; }
    .m-arch__search button { padding: 9px 14px; font-size: 13px; }
    .m-arch__chip { padding: 7px 12px; font-size: 11px; }
    .m-arch__link { padding: 11px 12px; gap: 10px; }
    .m-arch__thumb { width: 50px; height: 50px; }
    .m-arch__title { font-size: 14px; }
    .m-arch__num { width: 24px; height: 24px; font-size: 11px; }
    .m-arch__pag a, .m-arch__pag span { min-width: 36px; height: 36px; font-size: 13px; }
}

/* Hide theme default archive output (we render everything ourselves) */
.archive-default, .category-default, .tag-default, .search-default { display: none !important; }

/* Hide Rank Math breadcrumb — we render our own .m-arch__crumb */
body.archive .rank-math-breadcrumb,
body.search .rank-math-breadcrumb,
body.page-populer .rank-math-breadcrumb,
body.page-editor-secimi .rank-math-breadcrumb,
body.page-haberler .rank-math-breadcrumb,
body.tag .rank-math-breadcrumb,
body.author .rank-math-breadcrumb { display: none !important; }
body.archive #home > *, body.search #home > *, body.page-template-default.page-populer #home > *,
body.page-template-default.page-editor-secimi #home > *, body.page-template-default.page-haberler #home > * { display: none; }
body.archive #home, body.search #home { padding: 0 !important; max-width: none !important; }
