body:has(.media-hub) { padding-top: 0 !important; }

.media-hub {
  --hub-ink: #f4f7fa;
  --hub-muted: #b8c6d1;
  --hub-canvas: #0c1219;
  --hub-surface: #141e29;
  --hub-line: #35424f;
  --hub-accent: #f39200;
  --hub-radius: 10px;
  padding-top: calc(var(--admin-bar-height, 0px) + var(--top-strip-h, 36px) + var(--header-h, 96px) + 44px);
  padding-bottom: 72px;
  background: var(--hub-canvas);
  color: var(--hub-ink);
}

html[data-theme="light"] .media-hub {
  --hub-ink: #14202b;
  --hub-muted: #4d6071;
  --hub-canvas: #f6f7f7;
  --hub-surface: #fff;
  --hub-line: #cdd5da;
}

.media-hub .container { max-width: 1360px; }
.media-hub-heading { padding-bottom: 30px; }
.media-hub-heading-layout { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.media-hub h1 { margin: 0 !important; color: inherit !important; font-size: clamp(2.15rem, 4vw, 3.4rem) !important; font-weight: 800; line-height: 1.1 !important; letter-spacing: -.025em; }
.media-hub-intro { max-width: 61ch; color: var(--hub-muted); font-size: 1rem; line-height: 1.65; }
.media-hub-intro p { margin: 0; color: inherit; }
.media-hub-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.media-hub-entry { position: relative; isolation: isolate; min-width: 0; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-surface); transition: border-color 200ms ease, box-shadow 250ms ease; }
.media-hub-entry:hover, .media-hub-entry:focus-within { border-color: var(--hub-accent); box-shadow: 0 12px 30px rgb(0 0 0 / .09); }
.media-hub-image-link { display: block; min-width: 0; overflow: clip; border-radius: inherit; }
.media-hub-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-hub-copy { position: relative; min-width: 0; padding: 25px 28px; }
.media-hub-symbol { display: inline-flex; width: 30px; height: 30px; margin-bottom: 12px; color: var(--hub-accent); }
.media-hub-symbol svg { width: 100%; height: 100%; }
.media-hub h2 { margin: 0 0 10px !important; color: inherit !important; font-size: clamp(1.35rem, 1.8vw, 1.7rem) !important; line-height: 1.2 !important; letter-spacing: -.02em !important; font-weight: 750; }
.media-hub-title-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; }
.media-hub-title-link > span:first-child { overflow-wrap: anywhere; }
.media-hub-arrow { display: grid; place-items: center; flex: 0 0 44px; height: 44px; color: var(--hub-ink); border: 1px solid var(--hub-line); border-radius: 50%; transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
.media-hub-arrow svg { width: 21px; height: 21px; transition: transform 220ms cubic-bezier(.16, 1, .3, 1); }
.media-hub-entry:hover .media-hub-arrow, .media-hub-entry:focus-within .media-hub-arrow { color: #14202b; background: var(--hub-accent); border-color: var(--hub-accent); }
.media-hub-entry:hover .media-hub-arrow svg, .media-hub-entry:focus-within .media-hub-arrow svg { transform: translate(2px, -2px); }
.media-hub-description { max-width: 60ch; color: var(--hub-muted); font-size: .94rem; line-height: 1.65; overflow-wrap: anywhere; }
.media-hub-description p { margin: 0; color: inherit; }
.media-hub-image-link, .media-hub-title-link, .media-hub-image-link:hover, .media-hub-title-link:hover { color: inherit !important; text-decoration: none !important; }
.media-hub-image-link:focus-visible, .media-hub-title-link:focus-visible { outline: 3px solid var(--hub-accent); outline-offset: 4px; }

.media-hub-entry--gallery { grid-row: span 2; min-height: 520px; display: flex; align-items: flex-end; color: #fff; background: #17232d; }
.media-hub-entry--gallery .media-hub-image-link { position: absolute; inset: 0; }
.media-hub-entry--gallery .media-hub-image-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgb(7 15 23 / .08) 20%, rgb(7 15 23 / .32) 45%, #071019 100%); }
.media-hub-entry--gallery .media-hub-copy { width: 100%; padding: 34px; pointer-events: none; }
.media-hub-entry--gallery .media-hub-title-link, .media-hub-entry--gallery .media-hub-description { pointer-events: auto; }
.media-hub-entry--gallery h2 { font-size: clamp(1.8rem, 3vw, 2.35rem) !important; }
.media-hub-entry--gallery .media-hub-description { color: #e1e9ed; max-width: 46ch; }
.media-hub-entry--gallery .media-hub-arrow { flex-basis: 50px; height: 50px; color: #fff; border-color: #a5b1b9; }
.media-hub-entry--gallery:hover .media-hub-arrow, .media-hub-entry--gallery:focus-within .media-hub-arrow { color: #14202b; }
.media-hub-viewfinder { position: absolute; inset: 24px 24px auto auto; width: 76px; height: 52px; border: 1px solid #fff; border-radius: 4px; z-index: 1; }
.media-hub-viewfinder::before, .media-hub-viewfinder::after { content: ""; position: absolute; background: #fff; }
.media-hub-viewfinder::before { width: 16px; height: 1px; left: -8px; top: 50%; }
.media-hub-viewfinder::after { height: 16px; width: 1px; left: 50%; top: -8px; }
.media-hub-entry--news { display: grid; grid-template-columns: minmax(0, 1fr) 36%; min-height: 245px; }
.media-hub-entry--news .media-hub-image-link { grid-column: 2; grid-row: 1; border-radius: 0 var(--hub-radius) var(--hub-radius) 0; }
.media-hub-entry--news .media-hub-copy { grid-column: 1; grid-row: 1; }
.media-hub-entry--news .media-hub-title-link { gap: 12px; }
.media-hub-entry--events { display: grid; grid-template-columns: 32% minmax(0, 1fr); min-height: 245px; }
.media-hub-entry--events .media-hub-image-link { border-radius: var(--hub-radius) 0 0 var(--hub-radius); }
.media-hub-entry--events .media-hub-copy { padding-left: 24px; }
.media-hub-entry--catalogs { grid-column: 1 / -1; min-height: 175px; display: flex; flex-direction: row-reverse; align-items: center; gap: 36px; background: #f7eedf; color: #172633; border-color: #e3cba4; }
.media-hub-entry--catalogs .media-hub-copy { flex: 1; padding: 28px 36px; }
.media-hub-entry--catalogs .media-hub-symbol { display: none; }
.media-hub-entry--catalogs .media-hub-description { color: #4c5b65; max-width: 80ch; }
.media-hub-entry--catalogs .media-hub-image-link { flex: 0 0 145px; height: 160px; margin: 0 48px 0 0; border-radius: 0; }
.media-hub-entry--catalogs .media-hub-image { object-fit: contain; padding: 10px; }
.media-hub-entry--catalogs .media-hub-arrow { color: #172633; border-color: #bdab8f; }

@media (max-width: 1100px) {
  .media-hub-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .media-hub-entry--news { display: flex; flex-direction: column; }
  .media-hub-entry--news .media-hub-image-link { height: 140px; border-radius: var(--hub-radius) var(--hub-radius) 0 0; }
  .media-hub-entry--events { grid-template-columns: minmax(0, 1fr); }
  .media-hub-entry--events .media-hub-image-link { display: none; }
}

@media (max-width: 700px) {
  .media-hub { padding-top: calc(var(--admin-bar-height, 0px) + var(--top-strip-h, 36px) + var(--header-h, 96px) + 28px); padding-bottom: 40px; }
  .media-hub-heading-layout { display: block; }
  .media-hub-heading { padding-bottom: 24px; }
  .media-hub-intro { margin-top: 16px; font-size: .95rem; }
  .media-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .media-hub-copy { padding: 24px; }
  .media-hub-entry--gallery { grid-row: auto; min-height: 390px; }
  .media-hub-entry--gallery .media-hub-copy { padding: 26px; }
  .media-hub-entry--news { display: grid; grid-template-columns: minmax(0, 1fr) 31%; min-height: 250px; }
  .media-hub-entry--news .media-hub-image-link { grid-column: 2; grid-row: 1; height: 100%; border-radius: 0 var(--hub-radius) var(--hub-radius) 0; }
  .media-hub-entry--news .media-hub-copy { padding: 24px 18px 24px 24px; }
  .media-hub-entry--events { display: block; min-height: 0; }
  .media-hub-entry--events .media-hub-image-link { display: block; height: 150px; border-radius: var(--hub-radius) var(--hub-radius) 0 0; }
  .media-hub-entry--events .media-hub-copy { padding: 24px; }
  .media-hub-entry--catalogs { gap: 0; min-height: 240px; align-items: flex-start; }
  .media-hub-entry--catalogs .media-hub-copy { padding: 24px 12px 24px 24px; }
  .media-hub-entry--catalogs .media-hub-image-link { flex-basis: 90px; height: 150px; margin: 20px 8px 0 0; }
  .media-hub-entry--catalogs .media-hub-title-link { flex-wrap: wrap; gap: 12px; }
  .media-hub-entry--catalogs .media-hub-description { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .media-hub-entry, .media-hub-arrow, .media-hub-arrow svg { transition-duration: .01ms; }
  .media-hub-entry:hover .media-hub-arrow svg, .media-hub-entry:focus-within .media-hub-arrow svg { transform: none; }
}

/* hermes-same-role-headings: Medya / Destek hub entries share one title size */
.media-hub h2, .media-hub-entry--gallery h2 { font-size: clamp(1.45rem, 2.1vw, 1.85rem) !important; }

