/* متحف الإبادة في غزة — WordPress parts: menus, social icons, posts, widgets, blocks, forms.
   Colors and fonts come from Appearance → Customize (they are printed as --gm-* variables). */

/* ---------- defaults (overridden by Customize) ---------- */
:root {
  --gm-accent: #d0222c; --gm-bg: #000; --gm-text: #fff;
  --gm-header-bg: #000; --gm-header-text: #fff; --gm-hero-text: #fff;
  --gm-btn-bg: #ececec; --gm-btn-text: #111;
  --gm-footer-bg: #000; --gm-footer-text: #fff;
  --gm-font: "29LT Kaff", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --gm-size: 18px;
  --gm-muted: color-mix(in srgb, var(--gm-text) 65%, transparent);
  --gm-line: color-mix(in srgb, var(--gm-text) 14%, transparent);
  --gm-soft: color-mix(in srgb, var(--gm-text) 5%, var(--gm-bg));
}

html { background: var(--gm-bg); direction: rtl; }
body { margin: 0; background: var(--gm-bg); color: var(--gm-text); direction: rtl; text-align: right; font-family: var(--gm-font); font-size: var(--gm-size); line-height: 1.8; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, embed, object, svg { max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
::selection { background: var(--gm-accent); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 10px 16px; background: var(--gm-bg); z-index: 100; top: 8px; right: 8px; }
.gm-skip { position: absolute; top: -60px; right: 16px; z-index: 100; padding: 10px 16px; background: var(--gm-accent); color: #fff; text-decoration: none; }
.gm-skip:focus { top: 8px; }

/* WordPress admin toolbar */
body.admin-bar .gm-root .gm-header { top: 32px; }
body.admin-bar .gm-root .gm-menu { top: calc(76px + 32px); }
@media (max-width: 782px) { body.admin-bar .gm-root .gm-header { top: 46px; } body.admin-bar .gm-root .gm-menu { top: calc(76px + 46px); } }

/* ---------- header colors ---------- */
.gm-root .gm-header, .gm-root .gm-menu {
  --ink: var(--gm-header-text);
  --ink-2: color-mix(in srgb, var(--gm-header-text) 72%, transparent);
  --ink-3: color-mix(in srgb, var(--gm-header-text) 50%, transparent);
  --line: color-mix(in srgb, var(--gm-header-text) 14%, transparent);
  color: var(--ink);
}
body.gm-no-hero .gm-root .gm-header { background: var(--gm-header-bg); border-color: var(--line); }
body.gm-no-hero .gm-root { background: transparent; }
.gm-root .gm-brand .custom-logo { width: auto; max-height: 52px; height: auto; }

/* ---------- desktop menu (from Appearance → Menus) ---------- */
.gm-root .gm-nav ul { list-style: none; margin: 0; padding: 0; }
.gm-root .gm-nav > ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 48px); }
.gm-root .gm-nav li { position: relative; }
.gm-root .gm-nav .current-menu-item > a, .gm-root .gm-nav .current_page_item > a, .gm-root .gm-nav .current-menu-ancestor > a { color: var(--ink); font-weight: 600; }
.gm-root .gm-nav .current-menu-item > a::after, .gm-root .gm-nav .current_page_item > a::after { content: ""; position: absolute; inset: auto 0 -4px 0; height: 2px; background: var(--gm-accent); }
.gm-root .gm-nav .menu-item-has-children > a::before, .gm-root .gm-nav .page_item_has_children > a::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: translateY(-3px) rotate(-45deg); }
.gm-root .gm-nav ul ul {
  position: absolute; top: 100%; right: -16px; min-width: 220px; padding: 10px; z-index: 70;
  background: var(--gm-header-bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.gm-root .gm-nav li:hover > ul, .gm-root .gm-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.gm-root .gm-nav ul ul a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 15px; white-space: nowrap; }
.gm-root .gm-nav ul ul a:hover { background: color-mix(in srgb, var(--gm-header-text) 8%, transparent); }
.gm-root .gm-nav ul ul ul { top: -11px; right: 100%; }

/* ---------- social icons ---------- */
.gm-root .gm-social { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gm-root .gm-header .gm-social { padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.gm-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: inherit; text-decoration: none; transition: background .2s, color .2s; }
.gm-social a:hover { background: var(--gm-accent); color: #fff; }
.gm-social svg, .gm-social img { width: 19px; height: 19px; display: block; object-fit: contain; }
.gm-social .gm-social-text { font-size: 13px; font-weight: 600; }

/* ---------- phone menu ---------- */
@media (max-width: 900px) {
  .gm-root .gm-nav, .gm-root .gm-header .gm-social { display: none; }
  .gm-root .gm-burger { margin-inline-start: auto; }
  .gm-root .gm-menu ul { list-style: none; margin: 0; padding: 0; }
  .gm-root .gm-menu li { position: relative; }
  .gm-root .gm-menu a { display: block; }
  .gm-root .gm-menu .current-menu-item > a, .gm-root .gm-menu .current_page_item > a { color: var(--gm-accent); font-weight: 600; }
  .gm-root .gm-menu ul ul { display: none; padding-right: 18px; }
  .gm-root .gm-menu li.is-open > ul { display: block; }
  .gm-root .gm-menu .gm-sub-toggle { position: absolute; left: 0; top: 6px; width: 44px; height: 44px; display: grid; place-items: center; color: inherit; background: none; border: 0; }
  .gm-root .gm-menu .gm-sub-toggle::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); transition: transform .2s; }
  .gm-root .gm-menu li.is-open > .gm-sub-toggle::before { transform: rotate(135deg); }
  .gm-root .gm-menu .gm-social { justify-content: center; padding-top: 18px; }
  .gm-root .gm-menu .gm-social a { border: 1px solid var(--line); }
  .gm-root .gm-menu { max-height: calc(100vh - 76px); overflow-y: auto; }
}

/* ---------- inner pages layout ---------- */
.gm-page { font-family: var(--gm-font); }
.gm-content { padding-block: 140px 90px; min-height: 60vh; }
.gm-content .gm-wrap { max-width: 1240px; }
.gm-page-head { margin-bottom: 36px; }
.gm-page-head .gm-h2 { margin-bottom: 10px; }
.gm-page-head p { color: var(--gm-muted); margin: 0; }
.gm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 60px); align-items: start; }
.gm-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.gm-layout > * { min-width: 0; }
@media (max-width: 960px) { .gm-layout { grid-template-columns: minmax(0, 1fr); } }
.gm-narrow { max-width: 820px; }
.gm-fullwidth { padding-top: 76px; }
.gm-fullwidth > .gm-entry { max-width: none; }

/* post cards (blog, categories, search) */
.gm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.gm-post-card { display: flex; flex-direction: column; background: var(--gm-soft); border: 1px solid var(--gm-line); border-radius: 12px; overflow: hidden; transition: transform .25s, border-color .25s; }
.gm-post-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gm-accent) 60%, transparent); }
.gm-post-card .thumb { display: block; aspect-ratio: 16/10; background: color-mix(in srgb, var(--gm-text) 8%, var(--gm-bg)); }
.gm-post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gm-post-card h2 { font-size: 21px; line-height: 1.45; margin: 0; font-weight: 800; }
.gm-post-card h2 a { text-decoration: none; }
.gm-post-card .excerpt { color: var(--gm-muted); font-size: 16px; line-height: 1.8; }
.gm-post-card .excerpt p { margin: 0; }
.gm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--gm-muted); }
.gm-meta a { text-decoration: none; color: var(--gm-accent); }
.gm-badge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--gm-accent); color: #fff !important; font-size: 13px; text-decoration: none; }

/* single post / page */
.gm-single-title { font-size: clamp(30px, 4vw, 52px); font-weight: 800; line-height: 1.3; margin: 0 0 16px; text-wrap: balance; }
.gm-thumb { margin: 0 0 32px; }
.gm-thumb img { width: 100%; border-radius: 12px; display: block; }
.gm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.gm-tags a { padding: 4px 12px; border: 1px solid var(--gm-line); border-radius: 99px; font-size: 14px; text-decoration: none; }
.gm-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--gm-line); }
.gm-post-nav a { text-decoration: none; display: block; padding: 16px; border: 1px solid var(--gm-line); border-radius: 10px; }
.gm-post-nav small { display: block; color: var(--gm-muted); font-size: 13px; }
.gm-post-nav .next { text-align: left; }
@media (max-width: 600px) { .gm-post-nav { grid-template-columns: 1fr; } .gm-post-nav .next { text-align: right; } }

/* ---------- content from the editor: blocks, HTML, iframes, shortcodes ---------- */
.gm-entry { font-size: var(--gm-size); line-height: 1.95; color: color-mix(in srgb, var(--gm-text) 86%, transparent); max-width: none; overflow-wrap: anywhere; }
.gm-entry > * { margin-block: 0 1.2em; }
.gm-entry h1, .gm-entry h2, .gm-entry h3, .gm-entry h4, .gm-entry h5, .gm-entry h6 { color: var(--gm-text); font-weight: 800; line-height: 1.4; margin-block: 1.6em .6em; }
.gm-entry h2 { font-size: 1.7em; } .gm-entry h3 { font-size: 1.35em; } .gm-entry h4 { font-size: 1.15em; }
.gm-entry a { color: var(--gm-accent); text-underline-offset: 4px; }
.gm-entry ul, .gm-entry ol { padding-right: 1.4em; padding-left: 0; }
.gm-entry blockquote, .gm-entry .wp-block-quote { margin-inline: 0; padding: 4px 22px 4px 0; border-right: 3px solid var(--gm-accent); border-left: 0; font-size: 1.1em; }
.gm-entry .wp-block-pullquote { border-block: 3px solid var(--gm-accent); padding: 1.5em 0; text-align: center; }
.gm-entry figure { margin-inline: 0; }
.gm-entry figcaption, .gm-entry .wp-caption-text { font-size: 14px; color: var(--gm-muted); text-align: center; margin-top: 8px; }
.gm-entry img { border-radius: 8px; }
.gm-entry hr, .gm-entry .wp-block-separator { border: 0; border-top: 1px solid var(--gm-line); margin-block: 2em; }
.gm-entry pre, .gm-entry code { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.gm-entry pre { background: var(--gm-soft); border: 1px solid var(--gm-line); padding: 16px; border-radius: 8px; overflow-x: auto; }
.gm-entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.gm-entry .wp-block-table table { display: table; }
.gm-entry .wp-block-table { overflow-x: auto; }
.gm-entry th, .gm-entry td { border: 1px solid var(--gm-line); padding: 10px 12px; text-align: right; }
.gm-entry th { background: var(--gm-soft); color: var(--gm-text); }
/* iframes & embeds always fit the screen */
.gm-entry iframe, .gm-entry embed, .gm-entry object, .gm-entry video { max-width: 100%; border: 0; }
.gm-entry .wp-block-embed__wrapper, .gm-embed { position: relative; }
.gm-entry .wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.gm-entry .wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.gm-entry .wp-block-html iframe, .gm-entry p > iframe { width: 100%; }
/* wide / full width blocks */
.gm-entry .alignwide { margin-inline: calc(min(0px, (100% - 1240px) / 2)); max-width: none; }
.gm-entry .alignfull { margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; }
.gm-entry .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.gm-entry .alignright { float: right; margin: .3em 0 1em 1.4em; }
.gm-entry .aligncenter { margin-inline: auto; text-align: center; }
.gm-entry::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) { .gm-entry .alignleft, .gm-entry .alignright { float: none; margin: 0 0 1em; } }
/* buttons */
.gm-entry .wp-block-button__link, .gm-btn, input[type="submit"], button[type="submit"], .wp-block-search__button {
  display: inline-block; padding: 12px 26px; border: 0; border-radius: 4px; background: var(--gm-accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.gm-entry .is-style-outline .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--gm-text); }
/* galleries & columns keep core responsiveness; tidy spacing */
.gm-entry .wp-block-gallery { gap: 12px; }
.gm-entry .wp-block-columns { gap: 28px; }
.gm-entry .wp-block-cover { border-radius: 10px; overflow: hidden; }

/* ---------- forms (search, comments, contact plugins) ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
  width: 100%; max-width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--gm-line);
  background: var(--gm-soft); color: var(--gm-text); font: inherit; font-size: 16px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gm-accent); outline-offset: 1px; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.search-form, .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.search-form label { flex: 1; margin: 0; }

/* ---------- comments ---------- */
.gm-comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--gm-line); }
.gm-comments h2 { font-size: 24px; font-weight: 800; }
.gm-comments ol { list-style: none; padding: 0; margin: 0 0 32px; }
.gm-comments ol ol { padding-right: 28px; }
.gm-comments .comment-body { padding: 18px 20px; margin-bottom: 14px; background: var(--gm-soft); border: 1px solid var(--gm-line); border-radius: 10px; }
.gm-comments .comment-meta { font-size: 14px; color: var(--gm-muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gm-comments .avatar { border-radius: 50%; }
.gm-comments .reply a { font-size: 14px; color: var(--gm-accent); }
.comment-form p { margin: 0 0 16px; }

/* ---------- widgets ---------- */
.gm-sidebar .widget, .gm-foot-widgets .widget { margin-bottom: 32px; }
.gm-sidebar { position: sticky; top: 110px; }
.gm-sidebar .widget { padding: 22px; background: var(--gm-soft); border: 1px solid var(--gm-line); border-radius: 12px; }
.widget-title, .widget h2, .widget .wp-block-heading { font-size: 19px; font-weight: 800; margin: 0 0 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--gm-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { color: var(--gm-accent); }
.widget iframe { width: 100%; }
.gm-home-widgets { padding-block: 40px; }

/* ---------- pagination ---------- */
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--gm-line); border-radius: 6px; text-decoration: none; }
.nav-links .current { background: var(--gm-accent); border-color: var(--gm-accent); color: #fff; }

/* ---------- footer ---------- */
.gm-foot { background: var(--gm-footer-bg); color: var(--gm-footer-text); font-family: var(--gm-font); direction: rtl; border-top: 1px solid color-mix(in srgb, var(--gm-footer-text) 12%, transparent); padding-block: 0; }
.gm-foot .gm-foot-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 16px; }
.gm-foot .gm-foot-widgets > * { min-width: 0; }
.gm-foot .gm-foot-widgets .widget li { border-color: color-mix(in srgb, var(--gm-footer-text) 12%, transparent); }
@media (max-width: 900px) { .gm-foot .gm-foot-widgets { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.gm-foot .gm-foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-block: 28px; color: color-mix(in srgb, var(--gm-footer-text) 60%, transparent); font-size: 15px; border-top: 1px solid color-mix(in srgb, var(--gm-footer-text) 10%, transparent); }
.gm-foot .gm-foot-bar strong { color: var(--gm-footer-text); font-size: 18px; }
.gm-foot .gm-foot-menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.gm-foot .gm-foot-menu a { text-decoration: none; }
.gm-foot .gm-social a { border: 1px solid color-mix(in srgb, var(--gm-footer-text) 20%, transparent); }
.gm-foot .gm-wrap { padding-left: max(16px, 4vw, env(safe-area-inset-left, 0px)); padding-right: max(16px, 4vw, env(safe-area-inset-right, 0px)); max-width: 1240px; margin: 0 auto; }

.gm-plugin-notice { margin: 110px auto 0; max-width: 1100px; padding: 18px 22px; border: 1px dashed var(--gm-accent); border-radius: 10px; color: var(--gm-text); font-size: 16px; }

/* footer wrapper holds widgets + bottom bar stacked */
.gm-foot .gm-wrap { display: block; }
