/*
Theme Name: İSG HUB | Güvenli Erişim Merkezi
Theme URI: https://isghub.com.tr/
Author: isghub.com.tr
Description: İş sağlığı ve güvenliği bilgi merkezi için koyu lacivert ve güvenlik turuncusu odaklı WordPress teması.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: isg-bilgi-merkezi
*/

:root {
  --navy: #061833;
  --navy-2: #0b2142;
  --navy-3: #143962;
  --orange: #ff6400;
  --orange-dark: #e95600;
  --ink: #101c33;
  --muted: #697489;
  --line: #e6eaf0;
  --wash: #f7f8fa;
  --surface: #fff;
  --green: #4a8950;
  --blue: #2a67b9;
  --purple: #643180;
  --yellow: #f0a20d;
  --radius: 11px;
  --container: 1230px;
  --shadow: 0 8px 28px rgba(11, 31, 58, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.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 { clip: auto; width: auto; height: auto; margin: 0; left: 1rem; top: 1rem; z-index: 10000; padding: .6rem .9rem; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.container { width: min(calc(100% - 2.5rem), var(--container)); margin-inline: auto; }

/* Header */
.site-header { position: relative; z-index: 30; background: #fff; box-shadow: 0 1px 8px rgba(10, 22, 45, .08); }
.site-header__top { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); white-space: nowrap; }
.brand:hover { color: var(--navy); }
.brand__mark { width: 39px; height: 49px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--orange) 0 35%, var(--navy) 35%); border: 3px solid var(--navy); border-radius: 20px 20px 16px 16px; font-size: 1.35rem; font-weight: 900; line-height: 1; }
.brand__words { display: grid; gap: 1px; }
.brand__words strong { font-size: 1.6rem; line-height: 1; letter-spacing: -.06em; }
.brand__words em { color: var(--orange); font-style: normal; }
.brand__words small { color: #697489; font-size: .48rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.custom-logo-link img { width: auto; max-height: 56px; }
.header-utility { display: flex; align-items: center; gap: 1rem; }
.utility-label { color: var(--muted); font-size: .7rem; }
.social-links { display: flex; gap: .35rem; }
.social-links a { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #d7dde6; border-radius: 50%; color: var(--navy); font-size: .62rem; font-weight: 800; }
.support-contact { display: grid; padding-left: 1rem; border-left: 1px solid var(--line); color: var(--navy); line-height: 1.15; }
.support-contact span { color: var(--muted); font-size: .65rem; }
.support-contact strong { font-size: 1rem; letter-spacing: .05em; }
.header-login, .header-join { padding: .46rem .95rem; border: 1px solid var(--navy); border-radius: 5px; color: var(--navy); font-size: .77rem; font-weight: 800; }
.header-join { border-color: var(--orange); background: var(--orange); color: #fff; }
.header-join:hover { color: #fff; background: var(--orange-dark); }
.site-header__navline { border-top: 1px solid var(--line); }
.site-header__navwrap { min-height: 48px; display: flex; align-items: stretch; justify-content: space-between; }
.primary-menu { display: flex; align-items: stretch; gap: 1.75rem; padding: 0; margin: 0; list-style: none; }
.primary-menu a { position: relative; display: grid; min-height: 48px; align-items: center; color: var(--navy); font-size: .73rem; font-weight: 800; text-transform: uppercase; }
.primary-menu .current-menu-item a, .primary-menu a:hover { color: var(--orange); }
.primary-menu .current-menu-item a::after, .primary-menu a:hover::after { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--orange); content: ""; }
.header-search { display: flex; align-items: center; }
.search-toggle, .menu-toggle { display: grid; place-items: center; border: 0; background: transparent; color: var(--navy); }
.search-toggle { width: 44px; height: 44px; }
.search-toggle svg { width: 21px; height: 21px; }
.menu-toggle { display: none; width: 44px; }
.menu-toggle svg { width: 25px; }
.search-panel { display: none; padding: .9rem 0 1.2rem; border-top: 1px solid var(--line); background: #fff; }
.search-panel.is-open { display: block; }
.search-form { display: flex; max-width: 680px; gap: .5rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 42px; padding: .65rem .8rem; border: 1px solid #cbd3df; border-radius: 5px; }
.search-submit { min-height: 42px; padding: .6rem 1rem; border: 0; border-radius: 5px; background: var(--orange); color: #fff; font-weight: 800; }

/* Homepage hero */
.hero--isg { position: relative; min-height: 380px; overflow: hidden; background: var(--navy); color: #fff; }
.hero--isg::before { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(3, 10, 22, .98) 0%, rgba(4, 13, 27, .91) 33%, rgba(5, 13, 25, .50) 61%, rgba(4, 12, 25, .22) 100%), var(--hero-image, radial-gradient(circle at 82% 27%, rgba(255, 104, 0, .5), transparent 17%), linear-gradient(127deg, #061428 0 48%, #15385c 48% 61%, #4b2c17 61% 100%); background-position: center; background-size: cover; content: ""; }
.hero--isg::after { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 19%, rgba(255,255,255,.025) 19.2% 19.4%); pointer-events: none; content: ""; }
.hero__grid { position: relative; z-index: 1; display: grid; min-height: 380px; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .7fr); align-items: center; gap: 4rem; padding-block: 2.7rem; }
.hero__content { max-width: 600px; }
.hero__eyebrow { margin: 0 0 .55rem; color: var(--orange); font-size: 1rem; font-weight: 800; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 0 0 .85rem; color: #fff; font-size: clamp(2.35rem, 4vw, 3.55rem); line-height: 1.06; letter-spacing: -.04em; }
.hero__lead { max-width: 570px; margin: 0; color: rgba(255,255,255,.9); font-size: .92rem; line-height: 1.55; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 1.45rem 0; }
.hero-stats > div { display: grid; grid-template-columns: auto auto; column-gap: .3rem; align-items: center; min-width: 105px; padding-left: .65rem; border-left: 2px solid var(--orange); }
.hero-stats strong { grid-row: 1 / span 2; color: #fff; font-size: 1.05rem; }
.hero-stats span { color: rgba(255,255,255,.84); font-size: .68rem; font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: .55rem; padding: .66rem 1rem; border: 1px solid transparent; border-radius: 5px; font-size: .76rem; font-weight: 850; text-decoration: none; }
.button--orange { background: var(--orange); color: #fff; }
.button--orange:hover { background: var(--orange-dark); color: #fff; }
.button--ghost { border-color: rgba(255,255,255,.7); background: rgba(0,0,0,.15); color: #fff; }
.button--ghost:hover { color: #fff; border-color: var(--orange); background: rgba(255,104,0,.18); }
.hero-search { padding: 1.05rem; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(8, 26, 53, .95); box-shadow: 0 16px 30px rgba(0,0,0,.22); }
.hero-search h2 { margin: 0 0 .75rem; color: #fff; font-size: .9rem; }
.hero-search__form { display: flex; overflow: hidden; min-height: 37px; border-radius: 5px; background: #fff; }
.hero-search__form input { min-width: 0; flex: 1; border: 0; padding: .55rem .7rem; color: var(--ink); font-size: .72rem; }
.hero-search__form button { width: 40px; border: 0; background: var(--orange); color: #fff; font-size: 1.35rem; line-height: 1; }
.search-pills { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .8rem; }
.search-pills a { padding: .3rem .48rem; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; color: #fff; font-size: .65rem; line-height: 1; }
.search-pills a::before { content: "◈ "; color: var(--orange); }
.search-pills a:hover { border-color: var(--orange); color: #fff; }

/* Information category cards */
.topic-section { padding: 1rem 0; background: #fff; }
.topic-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: .75rem 0 1rem; }
.topic-section__head span { color: var(--orange); font-size: .67rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.topic-section__head h2 { margin: .2rem 0 0; color: var(--navy); font-size: 1.12rem; }
.topic-section__head > a { color: var(--orange); font-size: .72rem; font-weight: 800; }
.topic-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .58rem; }
.topic-card { position: relative; min-height: 177px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: .4rem; padding: .8rem .45rem .65rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy); text-align: center; box-shadow: 0 2px 6px rgba(10,27,52,.025); transition: transform .16s, border-color .16s, box-shadow .16s, background .16s; }
.topic-card:hover { color: var(--navy); border-color: #ffb57c; box-shadow: 0 12px 24px rgba(10,27,52,.12); background: #fffaf6; transform: translateY(-4px); }
.topic-card__icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; background: var(--orange); color: #fff; font-size: 1.45rem; }
.topic-card h2 { margin: .25rem 0 0; font-size: .75rem; line-height: 1.15; font-weight: 850; text-transform: uppercase; }
.topic-card p { min-height: 2.4em; max-width: 17ch; margin: 0; color: #414c61; font-size: .64rem; line-height: 1.22; }
.topic-card__action { display: inline-flex; align-items: center; gap: .25rem; margin-top: .2rem; color: var(--orange); font-size: .62rem; font-weight: 850; }.topic-card__action b { font-size: .9rem; transition: transform .16s; }.topic-card:hover .topic-card__action b { transform: translateX(3px); }
.topic-card--2 .topic-card__icon { background: #df3b20; }.topic-card--3 .topic-card__icon { background: var(--blue); }.topic-card--4 .topic-card__icon { background: var(--green); }.topic-card--5 .topic-card__icon { background: var(--yellow); }.topic-card--6 .topic-card__icon { background: var(--purple); }.topic-card--7 .topic-card__icon { background: var(--navy); }.topic-card--8 .topic-card__icon { background: var(--orange); }

/* Main information panels */
.hub-content { padding: .35rem 0 1.25rem; background: #fff; }
.hub-grid { display: grid; grid-template-columns: 1fr 1.23fr .9fr; gap: .7rem; }
.hub-panel { overflow: hidden; display: flex; min-height: 243px; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.hub-panel__head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 .8rem; border-bottom: 1px solid var(--line); }
.hub-panel__head h2 { margin: 0; color: var(--navy); font-size: .72rem; font-weight: 900; }
.hub-panel__head a { color: #2d5a98; font-size: .63rem; font-weight: 700; }
.resource-list { padding: 0; margin: 0; list-style: none; }
.resource-list li { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.file-mark { display: grid; width: 27px; height: 31px; place-items: center; border-radius: 4px; background: #db3d2c; color: #fff; font-size: .5rem; font-weight: 900; }
.resource-list a:not(.download-link) { display: block; overflow: hidden; color: var(--navy); font-size: .7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.resource-list small { display: block; color: var(--muted); font-size: .58rem; }
.download-link { padding: .38rem .48rem; border-radius: 4px; background: var(--orange); color: #fff; font-size: .6rem; font-weight: 800; }
.download-link:hover { color: #fff; background: var(--orange-dark); }
.hub-panel__foot { display: block; margin-top: auto; padding: .75rem .85rem; color: var(--navy); font-size: .65rem; font-weight: 800; }
.hub-panel__foot span { padding-left: .4rem; color: var(--orange); font-size: 1rem; }
.panel-empty { padding: 1rem; color: var(--muted); font-size: .75rem; }
.daily-card { position: relative; display: block; min-height: 158px; overflow: hidden; background: linear-gradient(130deg, #dfe9f2, #7795b1); color: #fff; }
.daily-card img { width: 100%; height: 158px; object-fit: cover; }
.daily-card::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,22,48,.72), transparent 75%); content: ""; }
.daily-card__overlay { position: absolute; z-index: 1; left: 1rem; bottom: .85rem; max-width: 54%; display: grid; color: #fff; }
.daily-card__overlay span { color: var(--orange); font-size: 1.02rem; font-weight: 950; letter-spacing: -.03em; }
.daily-card__overlay strong { font-size: 1.22rem; line-height: .98; text-transform: uppercase; }
.daily-card--placeholder { background: radial-gradient(circle at 78% 55%, #e89b15 0 11%, transparent 11.4%), linear-gradient(128deg, #ecf4f6 0 35%, #9ab0be 35% 100%); }
.daily-actions { display: flex; gap: .42rem; padding: .5rem .8rem; }
.daily-actions span { padding: .33rem .55rem; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); font-size: .6rem; }
.popular-list { display: grid; padding: 0; margin: 0; list-style: none; counter-reset: popular; }
.popular-list li { display: flex; align-items: center; gap: .5rem; min-height: 29px; padding: .25rem .8rem; border-bottom: 1px solid var(--line); color: var(--navy); font-size: .65rem; font-weight: 700; counter-increment: popular; }
.popular-list li::before { display: grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; content: counter(popular); font-size: .58rem; font-weight: 900; }
.popular-list a { overflow: hidden; color: var(--navy); text-overflow: ellipsis; white-space: nowrap; }

/* Trust strip and footer */
.trust-strip { background: linear-gradient(100deg, #07162e, #102b4d); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; padding: 1.25rem 0; }
.trust-grid > div { display: flex; gap: .55rem; align-items: flex-start; }
.trust-grid > div > span { color: var(--orange); font-size: 1.2rem; line-height: 1; }
.trust-grid p { display: grid; gap: .15rem; margin: 0; color: rgba(255,255,255,.83); font-size: .61rem; line-height: 1.35; }
.trust-grid strong { color: #fff; font-size: .69rem; }
.site-footer { color: #c9d3e2; background: var(--navy); }
.footer-top { display: grid; grid-template-columns: 1.25fr 2fr; gap: 4rem; padding: 3rem 0 2rem; }
.footer-title, .footer-nav h3 { margin: 0 0 .65rem; color: #fff; font-size: .95rem; }
.footer-copy { max-width: 37ch; margin: 0; color: #b5c1d1; font-size: .82rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.footer-menu { display: grid; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.footer-menu a { color: #c9d3e2; font-size: .78rem; }
.footer-menu a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.14); color: #91a0b5; font-size: .7rem; }

/* Article and archive styles */
.page-header { padding: 3.25rem 0 2.25rem; border-bottom: 1px solid var(--line); background: var(--wash); }
.page-header h1 { margin: .15rem 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.page-header p, .section-copy { max-width: 62ch; color: var(--muted); }
.eyebrow { color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; padding: 3.3rem 0; }
.content-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-content: start; }
.post-card { overflow: hidden; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.post-card__image { display: block; aspect-ratio: 16 / 8; background: #dce5ec; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--orange); font-size: 2rem; font-weight: 900; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .6rem; color: var(--muted); font-size: .68rem; }
.post-card h3 { margin: .5rem 0; font-size: 1rem; line-height: 1.22; }
.post-card h3 a { color: var(--navy); }.post-card h3 a:hover { color: var(--orange); }
.post-card p { margin: 0 0 1rem; color: var(--muted); font-size: .8rem; }
.text-link { margin-top: auto; color: var(--orange); font-size: .78rem; font-weight: 800; }
.sidebar { align-self: start; padding: 1rem; border: 1px solid var(--line); border-radius: 9px; background: var(--wash); }
.sidebar .widget { margin-bottom: 1.4rem; }.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { margin: 0 0 .7rem; color: var(--navy); font-size: .88rem; }.sidebar ul { display: grid; gap: .4rem; padding-left: 1rem; margin: 0; }.sidebar a { color: var(--navy); font-size: .78rem; }
.article { min-width: 0; }.article__header { max-width: 790px; margin-bottom: 1.5rem; }.article__header h1 { margin: .4rem 0 .8rem; color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }.breadcrumb { color: var(--muted); font-size: .75rem; }.breadcrumb a { color: var(--muted); }
.article__featured { overflow: hidden; max-width: 850px; margin-bottom: 1.7rem; border-radius: 9px; }.article__featured img { width: 100%; }.entry-content { max-width: 780px; font-size: 1rem; }.entry-content > * { margin-top: 0; margin-bottom: 1.25rem; }.entry-content h2, .entry-content h3 { margin-top: 2rem; color: var(--navy); }.entry-content blockquote { margin-left: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--orange); background: var(--wash); }.entry-content table { width: 100%; border-collapse: collapse; }.entry-content th, .entry-content td { padding: .55rem; border: 1px solid var(--line); text-align: left; }.article__footer { max-width: 780px; padding-top: 1rem; border-top: 1px solid var(--line); }.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }.tag-list a { display: block; padding: .28rem .52rem; border-radius: 4px; background: #fff0e5; color: var(--orange); font-size: .7rem; }
.pagination { grid-column: 1 / -1; display: flex; gap: .35rem; margin-top: .75rem; }.pagination .page-numbers { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); font-size: .75rem; }.pagination .current, .pagination a:hover { border-color: var(--orange); background: var(--orange); color: #fff; }.empty-state { grid-column: 1 / -1; padding: 1.6rem; border: 1px dashed #c7d0dc; border-radius: 9px; background: var(--wash); }.empty-state h2 { margin-top: 0; color: var(--navy); }

@media (max-width: 1020px) {
  .header-utility { gap: .6rem; }.utility-label, .social-links, .support-contact span { display: none; }.primary-menu { gap: 1.05rem; }.topic-grid { grid-template-columns: repeat(4, 1fr); }.hub-grid { grid-template-columns: 1fr 1fr; }.hub-panel--featured { grid-column: span 2; }.trust-grid { grid-template-columns: repeat(3, 1fr); }.hero__grid { gap: 2rem; }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 1.5rem), var(--container)); }.site-header__top { min-height: 62px; }.brand__mark { width: 32px; height: 40px; }.brand__words strong { font-size: 1.27rem; }.header-utility { margin-left: auto; }.support-contact, .header-login { display: none; }.header-join { padding: .38rem .6rem; font-size: .67rem; }.site-header__navline { min-height: 47px; }.site-header__navwrap { min-height: 47px; }.menu-toggle { display: grid; }.primary-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: .5rem 1rem 1rem; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 9px 18px rgba(5,22,48,.12); }.primary-navigation.is-open { display: block; }.primary-menu { display: grid; gap: 0; }.primary-menu a { min-height: 36px; }.primary-menu .current-menu-item a::after, .primary-menu a:hover::after { display: none; }.hero__grid { min-height: 0; grid-template-columns: 1fr; gap: 1.6rem; padding: 2.8rem 0; }.hero--isg::before { background-image: linear-gradient(90deg, rgba(3, 10, 22, .95), rgba(3, 10, 22, .75)), var(--hero-image, linear-gradient(127deg, #061428, #315172)); }.hero h1 { font-size: 2.4rem; }.hero-search { max-width: 470px; }.hero-stats { gap: .8rem; }.topic-section__head { align-items: flex-start; flex-direction: column; }.topic-grid { grid-template-columns: repeat(2, 1fr); }.topic-card { min-height: 150px; }.hub-grid { grid-template-columns: 1fr; }.hub-panel--featured { grid-column: auto; }.trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }.footer-top, .footer-nav, .content-layout { grid-template-columns: 1fr; gap: 1.6rem; }.content-list { grid-template-columns: 1fr; }.footer-bottom { align-items: flex-start; flex-direction: column; }.daily-card, .daily-card img { min-height: 180px; height: 180px; }
}
@media (max-width: 390px) { .header-join { display: none; }.hero h1 { font-size: 2.1rem; }.trust-grid { grid-template-columns: 1fr; }.hero-stats > div { min-width: 91px; }.topic-card { min-height: 115px; } }
