/*
Theme Name: Memur Adayları Haber
Theme URI: https://memuradaylari.com/
Author: Memur Adayları
Description: Kamu personeli, sınav, atama ve güncel haberler için hızlı, mobil uyumlu haber teması.
Version: 1.1.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: memuradaylari
*/

:root {
  --ma-red: #e31837;
  --ma-red-dark: #bd102b;
  --ma-navy: #111827;
  --ma-ink: #17191c;
  --ma-muted: #717783;
  --ma-line: #e7e9ed;
  --ma-soft: #f5f6f8;
  --ma-white: #fff;
  --ma-radius: 5px;
  --ma-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ma-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color .18s ease, background .18s ease, opacity .18s ease; }
a:hover { color: var(--ma-red); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 99999; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; }
.container { width: min(calc(100% - 32px), var(--ma-container)); margin-inline: auto; }

.site-branding { min-height: 114px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.custom-logo { max-height: 72px; width: auto; }
.default-logo-link { display: inline-flex; align-items: center; flex: 0 1 360px; }
.site-default-logo { width: min(100%, 350px); height: auto; max-height: 92px; object-fit: contain; }
.text-logo { display: inline-flex; flex-direction: column; line-height: 1; }
.text-logo strong { color: var(--ma-red); font-size: clamp(25px, 3vw, 38px); font-weight: 900; letter-spacing: -1.5px; }
.text-logo small { margin-top: 9px; color: var(--ma-muted); font-size: 11px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; }
.header-ad { width: min(54%, 620px); min-height: 66px; display: grid; place-items: center; border: 1px dashed #d8dbe0; color: #a2a7b0; background: #fafafa; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

.main-nav { color: #fff; background: var(--ma-red); box-shadow: 0 2px 8px rgba(0,0,0,.09); }
.nav-inner { min-height: 50px; display: flex; align-items: stretch; }
.home-link, .menu-toggle, .search-toggle { width: 52px; border: 0; color: #fff; background: transparent; display: grid; place-items: center; cursor: pointer; font-size: 20px; }
.home-link:hover, .menu-toggle:hover, .search-toggle:hover { color: #fff; background: rgba(0,0,0,.13); }
.menu-toggle { display: none; }
.primary-menu { flex: 1; }
.primary-menu ul { height: 100%; display: flex; align-items: stretch; padding: 0; margin: 0; list-style: none; }
.primary-menu li { position: relative; display: flex; }
.primary-menu a { display: flex; align-items: center; padding: 0 15px; color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.primary-menu li:hover > a, .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a { color: #fff; background: rgba(0,0,0,.13); }
.primary-menu .sub-menu { position: absolute; z-index: 40; top: 100%; left: 0; width: 220px; height: auto; display: none; padding: 7px 0; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu li, .primary-menu .sub-menu a { display: block; }
.primary-menu .sub-menu a { padding: 10px 16px; color: var(--ma-ink); text-transform: none; }
.primary-menu .sub-menu a:hover { color: var(--ma-red); background: var(--ma-soft); }
.search-panel { display: none; padding: 15px 0; background: #fff; border-bottom: 1px solid var(--ma-line); }
.search-panel.is-open { display: block; }
.search-form { display: flex; }
.search-field { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--ma-line); outline: 0; }
.search-field:focus { border-color: var(--ma-red); }
.search-submit { padding: 0 22px; border: 0; color: #fff; background: var(--ma-navy); font-weight: 800; cursor: pointer; }

.market-strip { border-bottom: 1px solid var(--ma-line); background: #fff; }
.market-items { min-height: 62px; display: grid; grid-template-columns: repeat(4, 1fr); }
.market-item { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 15px; border-right: 1px solid var(--ma-line); }
.market-item:first-child { border-left: 1px solid var(--ma-line); }
.market-icon { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; color: var(--ma-red); background: #fff0f2; border-radius: 50%; font-size: 13px; font-weight: 900; }
.market-copy { min-width: 0; display: grid; line-height: 1.2; }
.market-item b { color: var(--ma-muted); font-size: 10px; letter-spacing: .5px; }
.market-item .market-copy > span { margin-top: 3px; color: var(--ma-ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.market-item em { color: var(--ma-muted); font-size: 9px; font-style: normal; white-space: nowrap; }
.market-item em.up { color: #12965f; }
.market-item em.down { color: var(--ma-red); }

.breaking { margin: 18px auto; display: flex; min-height: 42px; overflow: hidden; border: 1px solid var(--ma-line); background: #fff; }
.breaking-label { flex: 0 0 auto; display: flex; align-items: center; padding: 0 17px; color: #fff; background: var(--ma-red); font-size: 12px; font-weight: 900; letter-spacing: .3px; text-transform: uppercase; }
.breaking-track { min-width: 0; flex: 1; display: flex; align-items: center; overflow: hidden; }
.breaking-item { display: none; width: 100%; padding: 0 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.breaking-item.is-active { display: block; }
.breaking-time { margin-right: 10px; color: var(--ma-red); font-size: 11px; font-weight: 800; }

.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: repeat(2, 215px); gap: 8px; margin-bottom: 30px; }
.hero-card { position: relative; overflow: hidden; background: var(--ma-navy); border-radius: 2px; }
.hero-card:first-child { grid-row: 1 / 3; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .35s ease; }
.hero-card:hover img { transform: scale(1.035); }
.hero-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.87)); pointer-events: none; }
.hero-content { position: absolute; z-index: 2; inset: auto 20px 18px; color: #fff; }
.hero-card:first-child .hero-content { inset: auto 28px 28px; }
.category-pill { display: inline-flex; margin-bottom: 9px; padding: 4px 8px; color: #fff; background: var(--ma-red); border-radius: 2px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.hero-title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 900; letter-spacing: -.2px; }
.hero-card:first-child .hero-title { font-size: clamp(25px, 3vw, 36px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: #969da8; font-size: 11px; }
.hero-card .post-meta { color: #d8dbe0; }

.section { margin: 0 0 34px; }
.section-heading, .widget-title, .archive-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 18px; padding-bottom: 11px; border-bottom: 2px solid var(--ma-ink); }
.section-heading h2, .widget-title, .sidebar .wp-block-heading, .archive-header h1 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 900; text-transform: uppercase; }
.section-heading h2::before, .widget-title::before, .sidebar .wp-block-heading::before, .archive-header h1::before { content: ""; display: inline-block; width: 4px; height: 17px; margin-right: 9px; vertical-align: -2px; background: var(--ma-red); }
.sidebar .wp-block-heading { margin-bottom: 14px; padding-bottom: 11px; border-bottom: 2px solid var(--ma-ink); }
.section-heading a { color: var(--ma-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.news-card { min-width: 0; }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 11px; overflow: hidden; background: var(--ma-soft); border-radius: 2px; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.placeholder-image { width: 100%; height: 100%; display: block; background: linear-gradient(135deg, #eceef1, #dfe2e7); }
.news-card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb .category-pill { position: absolute; left: 10px; bottom: 8px; margin: 0; }
.card-title { margin: 0; font-size: 16px; line-height: 1.32; font-weight: 800; }
.card-excerpt { margin: 9px 0 0; color: var(--ma-muted); font-size: 13px; }
.split-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.split-feature .lead-card .card-title { font-size: 23px; }
.compact-list { display: grid; gap: 13px; }
.compact-item { display: grid; grid-template-columns: 115px 1fr; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--ma-line); }
.compact-item:last-child { border: 0; }
.compact-item img { width: 115px; height: 75px; object-fit: cover; border-radius: 2px; }
.compact-item h3 { margin: 2px 0 0; font-size: 14px; line-height: 1.3; }
.compact-item time { color: var(--ma-muted); font-size: 10px; }

.sidebar { min-width: 0; }
.widget { margin-bottom: 28px; }
.widget ul { padding: 0; margin: 0; list-style: none; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--ma-line); }
.sidebar .wp-block-search { margin-bottom: 25px; }
.sidebar .wp-block-search__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sidebar .wp-block-search__inside-wrapper { display: flex; }
.sidebar .wp-block-search__input { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--ma-line); font-size: 14px; outline: 0; }
.sidebar .wp-block-search__input:focus { border-color: var(--ma-red); }
.sidebar .wp-block-search__button { height: 44px; margin: 0; padding: 0 17px; border: 0; color: #fff; background: var(--ma-navy); font-size: 13px; font-weight: 800; cursor: pointer; }
.sidebar .wp-block-latest-posts a,
.sidebar .wp-block-latest-comments,
.sidebar .wp-block-archives a,
.sidebar .wp-block-categories a { font-size: 14px; line-height: 1.4; }
.sidebar .wp-block-latest-comments__comment { font-size: 13px; }
.popular-item { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--ma-line); }
.popular-number { color: #c9cdd4; font-size: 30px; line-height: 1; font-weight: 900; }
.popular-item:hover .popular-number { color: var(--ma-red); }
.popular-item h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.newsletter { padding: 24px; color: #fff; background: var(--ma-navy); }
.newsletter h3 { margin: 0 0 7px; font-size: 20px; }
.newsletter p { margin: 0 0 16px; color: #b8bec8; font-size: 13px; }
.newsletter input { width: 100%; height: 43px; padding: 0 12px; border: 0; }
.newsletter button { width: 100%; height: 43px; margin-top: 8px; border: 0; color: #fff; background: var(--ma-red); font-weight: 800; cursor: pointer; }
.ad-box { min-height: 250px; display: grid; place-items: center; border: 1px dashed #d8dbe0; color: #adb2ba; background: var(--ma-soft); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

.archive-wrap { padding: 24px 0 50px; }
.archive-description { margin: -7px 0 22px; color: var(--ma-muted); }
.archive-list { display: grid; gap: 22px; }
.archive-card { display: grid; grid-template-columns: 270px 1fr; gap: 21px; padding-bottom: 22px; border-bottom: 1px solid var(--ma-line); }
.archive-card .card-thumb { margin: 0; }
.archive-card .card-title { font-size: 21px; }
.pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--ma-line); font-weight: 700; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--ma-red); border-color: var(--ma-red); }

.breadcrumb { margin: 18px 0; color: var(--ma-muted); font-size: 12px; }
.breadcrumb a { color: var(--ma-ink); }
.single-wrap { padding-bottom: 55px; }
.article-header { margin-bottom: 24px; }
.article-category { color: var(--ma-red); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.article-title { max-width: 900px; margin: 9px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.13; letter-spacing: -1.1px; }
.article-lead { margin: 0 0 16px; color: #555b64; font-size: 18px; line-height: 1.55; }
.article-image { width: 100%; margin-bottom: 25px; border-radius: 3px; }
.article-content { font-size: 17px; line-height: 1.8; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2, .article-content h3 { line-height: 1.25; }
.article-content a { color: var(--ma-red); text-decoration: underline; }
.article-content blockquote { margin: 25px 0; padding: 18px 24px; border-left: 4px solid var(--ma-red); background: var(--ma-soft); font-size: 19px; font-weight: 700; }
.article-content img { border-radius: 3px; }
.share-bar { display: flex; align-items: center; gap: 8px; margin: 26px 0; padding: 15px 0; border-block: 1px solid var(--ma-line); }
.share-bar strong { margin-right: 5px; font-size: 12px; }
.share-link { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 12px; color: #fff; background: var(--ma-navy); border-radius: 2px; font-size: 12px; font-weight: 800; }
.share-link:hover { color: #fff; background: var(--ma-red); }
.post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.post-tags a { padding: 6px 10px; background: var(--ma-soft); border-radius: 2px; font-size: 11px; font-weight: 700; }
.author-box { display: flex; gap: 16px; padding: 20px; background: var(--ma-soft); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; }
.author-box h3 { margin: 2px 0 4px; }
.author-box p { margin: 0; color: var(--ma-muted); font-size: 13px; }

.page-wrap { padding: 28px 0 60px; }
.page-title { margin: 0 0 25px; font-size: clamp(29px, 4vw, 42px); }
.contact-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 45px; }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid var(--ma-line); outline: 0; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ma-red); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.button { display: inline-flex; align-items: center; justify-content: center; width: max-content; min-height: 44px; padding: 0 22px; border: 0; color: #fff; background: var(--ma-red); font-weight: 800; cursor: pointer; }
.button:hover { color: #fff; background: var(--ma-red-dark); }
.form-notice { margin-bottom: 18px; padding: 12px 15px; border-left: 3px solid #17875d; background: #effaf6; }
.contact-info { padding: 27px; background: var(--ma-soft); }
.contact-info h2 { margin-top: 0; }

.site-footer { margin-top: 20px; color: #c1c6cf; background: #101318; }
.footer-main { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 55px; padding: 48px 0 40px; }
.footer-brand .default-logo-link { max-width: 285px; padding: 5px 10px; background: #fff; border-radius: 4px; }
.footer-brand .site-default-logo { width: 100%; max-height: 76px; }
.footer-brand p { max-width: 390px; color: #8e949e; font-size: 13px; }
.footer-title { margin: 0 0 15px; color: #fff; font-size: 14px; text-transform: uppercase; }
.footer-menu { padding: 0; margin: 0; list-style: none; columns: 2; }
.footer-menu li { margin: 0 0 9px; }
.footer-menu a { font-size: 13px; }
.footer-bottom { padding: 17px 0; border-top: 1px solid #252a31; font-size: 12px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 980px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
  .sidebar .widget { margin: 0; }
  .menu-toggle { display: grid; }
  .primary-menu { position: fixed; z-index: 100; top: 0; left: -320px; width: min(86vw, 320px); height: 100vh; padding: 62px 20px 25px; color: var(--ma-ink); background: #fff; box-shadow: 10px 0 30px rgba(0,0,0,.15); transition: left .25s ease; overflow-y: auto; }
  .menu-open .primary-menu { left: 0; }
  .menu-open .menu-toggle { position: fixed; z-index: 110; top: 8px; left: 256px; color: var(--ma-ink); }
  .primary-menu ul, .primary-menu li, .primary-menu a { height: auto; display: block; }
  .primary-menu a { padding: 12px 8px; color: var(--ma-ink); border-bottom: 1px solid var(--ma-line); }
  .primary-menu .sub-menu { position: static; display: block; width: auto; padding: 0 0 0 12px; box-shadow: none; }
  .nav-inner { justify-content: space-between; }
  .home-link { display: none; }
  .search-toggle { margin-left: auto; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 24px), var(--ma-container)); }
  .site-branding { min-height: 88px; }
  .header-ad { display: none; }
  .text-logo strong { font-size: 28px; }
  .default-logo-link { flex-basis: 280px; }
  .site-default-logo { width: min(100%, 280px); max-height: 78px; }
  .market-items { min-height: 54px; grid-template-columns: repeat(2, 1fr); }
  .market-item { padding-inline: 8px; }
  .market-item:nth-child(n+3) { display: flex; }
  .market-item:nth-child(n+3) { border-top: 1px solid var(--ma-line); }
  .breaking { margin-block: 12px; }
  .breaking-label { padding: 0 10px; font-size: 10px; }
  .breaking-item { padding: 0 10px; font-size: 12px; }
  .hero-grid { display: block; }
  .hero-card { height: 225px; margin-bottom: 8px; }
  .hero-card:first-child { height: 320px; }
  .hero-card:first-child .hero-title { font-size: 25px; }
  .hero-card:not(:first-child) .hero-title { font-size: 18px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .split-feature, .contact-layout { grid-template-columns: 1fr; }
  .archive-card { grid-template-columns: 120px 1fr; gap: 13px; }
  .archive-card .card-title { font-size: 16px; }
  .archive-card .card-excerpt { display: none; }
  .sidebar { display: block; }
  .sidebar .widget { margin-bottom: 28px; }
  .article-title { font-size: 31px; }
  .article-lead { font-size: 16px; }
  .article-content { font-size: 16px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 38px 0; }
  .footer-bottom .container { display: block; text-align: center; }
  .footer-bottom span { display: block; margin: 4px 0; }
}

@media (max-width: 460px) {
  .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .compact-item { grid-template-columns: 100px 1fr; }
  .compact-item img { width: 100px; height: 68px; }
}
