/*
Theme Name: Zamzam University College
Theme URI: https://zamzam.edu.sd/2026/
Author: Zamzam University College
Description: A bilingual Arabic and English WordPress theme for Zamzam University College, with automatic RTL/LTR layout. Preserves WordPress pages, posts, menus, media, forms, and plugin output.
Version: 1.0.0
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: zamzam-university-college
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --zuc-ink: #152a35;
  --zuc-ink-soft: #34505b;
  --zuc-teal: #0e5b5b;
  --zuc-teal-dark: #084747;
  --zuc-red: #a92125;
  --zuc-gold: #c99636;
  --zuc-gold-soft: #f4ead5;
  --zuc-paper: #ffffff;
  --zuc-canvas: #f5f7f6;
  --zuc-line: #dfe7e4;
  --zuc-muted: #64747a;
  --zuc-radius: 18px;
  --zuc-shadow: 0 16px 42px rgba(19, 46, 52, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--zuc-canvas);
  color: var(--zuc-ink);
  font-family: Tahoma, Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-align: start;
}
img { max-width: 100%; height: auto; }
a { color: var(--zuc-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--zuc-red); }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
::selection { background: var(--zuc-gold-soft); color: var(--zuc-ink); }

.screen-reader-text {
  position: absolute !important;
  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: 100000;
  top: 8px;
  inset-inline-start: 8px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  background: #fff;
  color: var(--zuc-ink);
  box-shadow: var(--zuc-shadow);
}
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.utility-bar { background: var(--zuc-ink); color: #e8efed; font-size: 13px; }
.utility-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.utility-links, .utility-social { display: flex; align-items: center; gap: 16px; }
.utility-inner ul { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.utility-bar a { color: #f5f7f6; text-decoration: none; }
.utility-bar a:hover { color: #f2c86e; }
.featured-top-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.featured-top-links a { color: #f5f7f6; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.featured-top-links a:hover { color: #f2c86e; }
.direction-switcher { display: inline-flex; align-items: center; gap: 3px; padding: 2px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; }
.direction-switcher button { min-width: 35px; border: 0; border-radius: 5px; padding: 2px 6px; background: transparent; color: rgba(255,255,255,.78); font-size: 11px; font-weight: 700; }
.direction-switcher button[aria-pressed="true"] { background: var(--zuc-gold); color: #fff; }
.language-switcher ul { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.language-switcher a { color: #fff; text-decoration: none; }
.language-switcher .wpml-ls-current-language > a,
.language-switcher .current-lang > a { color: #f2ca76; font-weight: 700; }

.site-header { background: var(--zuc-paper); border-bottom: 1px solid var(--zuc-line); }
.branding-row { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 16px; }
.site-branding { display: flex; align-items: center; gap: 16px; min-width: 0; color: inherit; text-decoration: none; }
.site-branding:hover { color: inherit; }
.custom-logo-link { display: inline-flex; flex: 0 0 auto; align-items: center; }
.custom-logo { display: block; width: auto; max-width: min(390px, 43vw); max-height: 84px; object-fit: contain; }
.theme-logo { display: block; width: auto; max-width: min(520px, 75vw); max-height: 84px; object-fit: contain; }
.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(201, 150, 54, .55);
  border-radius: 18px 18px 5px 18px;
  background: linear-gradient(145deg, #fff9ec, #f0dfbb);
  color: var(--zuc-teal);
  font-size: 29px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .68);
}
.brand-copy { display: grid; line-height: 1.35; }
.brand-copy strong { color: var(--zuc-ink); font-size: clamp(18px, 2vw, 25px); }
.brand-copy span { color: var(--zuc-muted); font-size: 13px; }
.header-note { max-width: 250px; color: var(--zuc-muted); font-size: 14px; line-height: 1.6; }
.header-note strong { display: block; color: var(--zuc-teal); font-size: 15px; }

.primary-nav-wrap { position: relative; z-index: 20; background: linear-gradient(100deg, var(--zuc-teal-dark), var(--zuc-teal)); color: #fff; }
.primary-nav-inner { min-height: 58px; display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  padding: 8px 12px;
  background: transparent;
  color: #fff;
}
.nav-toggle-icon { display: grid; gap: 4px; width: 19px; }
.nav-toggle-icon span { height: 2px; border-radius: 2px; background: currentColor; }
.primary-nav { flex: 1; min-width: 0; }
.primary-menu, .primary-menu ul { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.primary-menu > li { position: relative; }
.primary-menu a {
  display: block;
  padding: 13px 11px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.primary-menu > li > a:hover,
.primary-menu > li:focus-within > a,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a { background: rgba(255,255,255,.14); color: #fff; }
.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% - 2px);
  inset-inline-start: 0;
  z-index: 30;
  display: none;
  width: min(300px, 85vw);
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(15, 69, 68, .13);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--zuc-shadow);
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li.is-open > .sub-menu { display: block; }
.primary-menu .sub-menu a { padding: 9px 11px; border-radius: 7px; color: var(--zuc-ink-soft); font-size: 13px; }
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a { background: #eef5f2; color: var(--zuc-teal-dark); }
.submenu-toggle {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-inline-start: -7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  vertical-align: middle;
}
.submenu-toggle::before { content: "⌄"; font-size: 16px; line-height: 1; }
.submenu-toggle:hover, .submenu-toggle[aria-expanded="true"] { background: rgba(255,255,255,.15); }
.sub-menu .submenu-toggle { color: var(--zuc-ink); }
.sub-menu .submenu-toggle:hover, .sub-menu .submenu-toggle[aria-expanded="true"] { background: #eef5f2; }
.nav-search { flex: 0 0 210px; }
.nav-search .search-form { display: flex; padding: 4px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(255,255,255,.1); }
.nav-search input[type="search"] { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 13px; }
.nav-search input::placeholder { color: rgba(255,255,255,.75); }
.nav-search input[type="submit"] { min-width: 42px; height: 32px; padding: 3px 7px; border: 0; border-radius: 7px; background: var(--zuc-gold); color: #fff; font-size: 11px; }

.site-main { min-height: 52vh; padding-block: 34px 64px; }
.page-heading { margin: 0 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--zuc-red); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.eyebrow::before { width: 22px; height: 2px; background: var(--zuc-gold); content: ""; }
h1, h2, h3, h4 { color: var(--zuc-ink); line-height: 1.35; }
h1 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 42px); }
h2 { margin: 0 0 18px; font-size: clamp(22px, 2.5vw, 30px); }
h3 { margin: 0 0 10px; font-size: 19px; }
p { margin: 0 0 1.15em; }

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 28px;
  min-height: 330px;
  overflow: hidden;
  align-items: stretch;
  margin-bottom: 38px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 14% 15%, rgba(207, 164, 81, .20), transparent 28%),
    linear-gradient(120deg, #0a4446, #126b68 70%, #1b8078);
  color: #fff;
  box-shadow: var(--zuc-shadow);
}
.home-hero::after { position: absolute; inset: auto auto -110px -90px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025); content: ""; }
.hero-copy { position: relative; z-index: 1; align-self: center; max-width: 570px; }
.home-hero .eyebrow { color: #f6d790; }
.home-hero h1 { color: #fff; font-size: clamp(31px, 4.5vw, 50px); }
.home-hero p { max-width: 560px; color: rgba(255,255,255,.84); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--zuc-gold);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover, a.button:hover { background: #b37f26; color: #fff; }
.button.button-light { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.button.button-light:hover { background: rgba(255,255,255,.12); }
.hero-feature { position: relative; z-index: 1; min-height: 250px; align-self: stretch; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.09); }
.hero-feature a { color: inherit; text-decoration: none; }
.hero-feature .post-thumbnail, .hero-feature .hero-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-feature::after { position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(5,29,31,.86)); content: ""; }
.hero-feature-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 22px 22px 68px; }
.hero-feature-copy h2 { margin: 0; color: #fff; font-size: clamp(20px, 2.3vw, 27px); }
.hero-feature-copy .post-meta { margin-bottom: 7px; color: #f2d48d; }
.home-slider { isolation: isolate; }
.home-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-slide[hidden] { display: none !important; }
.home-slide > a { position: absolute; inset: 0; display: block; color: inherit; }
.slider-category-label {
  position: absolute;
  z-index: 4;
  top: 14px;
  inset-inline-end: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 116px);
  overflow: hidden;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(8, 45, 47, .62);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slider-category-label span { color: rgba(255,255,255,.78); }
.slider-category-label strong { overflow: hidden; text-overflow: ellipsis; }
.hero-slide-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.slider-controls {
  position: absolute;
  z-index: 5;
  inset-inline-start: 13px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.slider-arrow, .slider-pause {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: rgba(8,45,47,.58);
  color: #fff;
  font-size: 21px;
  line-height: 1;
}
.slider-arrow:hover, .slider-pause:hover, .slider-arrow:focus-visible, .slider-pause:focus-visible { border-color: var(--zuc-gold); background: var(--zuc-gold); color: #fff; }
.slider-dots { display: flex; align-items: center; gap: 5px; padding-inline: 2px; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.65); }
.slider-dot[aria-pressed="true"] { width: 22px; background: #f2ca76; }
.hero-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #d5bd86, #f0e9d6 44%, #35807b 45%, #145b5a); }
.hero-placeholder span { display: grid; place-items: center; width: 110px; height: 110px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; font-size: 48px; font-weight: 800; }

.home-section { margin-block: 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.section-heading a { flex: 0 0 auto; font-size: 14px; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--zuc-line);
  border-radius: var(--zuc-radius);
  background: var(--zuc-paper);
  box-shadow: 0 8px 24px rgba(19,46,52,.04);
}
.post-card .card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e6eeeb; }
.post-card .card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .card-image img { transform: scale(1.035); }
.post-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px 18px 19px; }
.post-card h3 a { color: var(--zuc-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--zuc-teal); }
.post-excerpt { color: var(--zuc-muted); font-size: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-bottom: 9px; color: var(--zuc-muted); font-size: 12px; }
.read-more { margin-top: auto; padding-top: 5px; font-size: 13px; font-weight: 800; text-decoration: none; }
.post-placeholder { display: grid; place-items: center; aspect-ratio: 16/9; background: linear-gradient(135deg, #eaf2ef, #f7eedb); color: var(--zuc-teal); font-size: 36px; font-weight: 800; }

.home-intro, .content-panel, .widget-area, .comments-area, .search-panel, .not-found-panel {
  border: 1px solid var(--zuc-line);
  border-radius: var(--zuc-radius);
  background: var(--zuc-paper);
  box-shadow: 0 8px 24px rgba(19,46,52,.04);
}
.home-intro { margin-block: 34px; padding: clamp(20px, 3vw, 34px); }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.content-panel { min-width: 0; padding: clamp(20px, 3vw, 34px); }
.content-panel > :first-child { margin-top: 0; }
.content-panel > :last-child { margin-bottom: 0; }
.content-panel .entry-content { overflow-wrap: anywhere; }
.content-panel .entry-content img { border-radius: 10px; }
.entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 9px 12px; border: 1px solid var(--zuc-line); }
.entry-content blockquote { margin-inline: 0; padding: 8px 18px; border-inline-start: 3px solid var(--zuc-gold); color: var(--zuc-ink-soft); }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content .wp-block-embed { margin-inline: 0; }
.entry-content form, .entry-content .wpforms-container, .entry-content .wpcf7 { max-width: 100%; }
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.entry-content select, .entry-content textarea,
.search-form input[type="search"] {
  max-width: 100%;
  border: 1px solid #cbd8d3;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: var(--zuc-ink);
}
.entry-content input[type="submit"], .entry-content button, .entry-content .wp-element-button {
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--zuc-teal);
  color: #fff;
  font-weight: 700;
}
.entry-content input[type="submit"]:hover, .entry-content button:hover, .entry-content .wp-element-button:hover { background: var(--zuc-teal-dark); color: #fff; }

.sidebar .widget-area { margin-bottom: 18px; padding: 18px; }
.widget-title { margin: 0 0 12px; font-size: 17px; }
.sidebar ul, .site-footer ul { padding-inline-start: 20px; }
.sidebar .widget_media_image img { display: block; border-radius: 12px; }
.sidebar .widget a { overflow-wrap: anywhere; }
.post-list { margin-top: 24px; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 5px 12px; border: 1px solid var(--zuc-line); border-radius: 9px; background: #fff; text-decoration: none; }
.page-numbers.current { border-color: var(--zuc-teal); background: var(--zuc-teal); color: #fff; }
.post-thumbnail-large { display: block; width: 100%; max-height: 520px; margin: 10px 0 23px; border-radius: 16px; object-fit: cover; }
.entry-title { margin-bottom: 8px; }
.entry-content { color: #263c45; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.5em; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-navigation a { display: block; padding: 15px; border: 1px solid var(--zuc-line); border-radius: 12px; background: #fff; text-decoration: none; }
.post-navigation .nav-next { text-align: start; }
.post-navigation .nav-previous { text-align: end; }
.comments-area { margin-top: 26px; padding: 24px; }
.comments-area ol { padding-inline-start: 22px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid #cbd8d3; border-radius: 9px; padding: 10px; }

.site-footer { padding-block: 38px 16px; background: #112c35; color: #e1ebea; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer-title { margin: 0 0 12px; color: #fff; font-size: 17px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #fff; font-weight: 800; }
.footer-brand .brand-mark { width: 47px; height: 47px; border-radius: 14px 14px 4px 14px; font-size: 22px; }
.footer-logo { display: block; width: auto; max-width: min(330px, 100%); max-height: 56px; object-fit: contain; }
.site-footer a { color: #e1ebea; }
.site-footer a:hover { color: #f2ca76; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.16); color: #b9cbc8; font-size: 13px; }
.footer-bottom p { margin: 0; }

.search-panel, .not-found-panel { max-width: 760px; margin-inline: auto; padding: clamp(24px, 4vw, 42px); text-align: center; }
.search-panel .search-form { display: flex; gap: 8px; max-width: 520px; margin: 22px auto 0; }
.search-panel input[type="search"] { flex: 1; min-width: 0; }
.search-panel input[type="submit"] { border: 0; border-radius: 9px; padding: 9px 15px; background: var(--zuc-teal); color: #fff; }
.wp-caption { max-width: 100%; }
.gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery-item { max-width: 100%; }
.alignleft { float: left; margin: .3em 1.1em .8em 0; }
.alignright { float: right; margin: .3em 0 .8em 1.1em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-block-button__link { text-decoration: none; }
.wp-block-file__button, .wp-element-button { text-decoration: none !important; }

@media (max-width: 1050px) {
  .nav-search { flex-basis: 175px; }
  .primary-menu a { padding-inline: 8px; font-size: 12px; }
  .layout-with-sidebar { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
}
@media (max-width: 820px) {
  .container { width: min(100% - 28px, 680px); }
  .branding-row { min-height: 88px; }
  .header-note { display: none; }
  .primary-nav-inner { min-height: 54px; flex-wrap: wrap; padding-block: 8px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; flex: 0 0 100%; order: 2; }
  .primary-nav.is-open { display: block; }
  .primary-menu { display: block; padding: 8px 0; }
  .primary-menu > li { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); }
  .primary-menu > li:last-child { border-bottom: 0; }
  .primary-menu a { padding: 11px 8px; font-size: 14px; }
  .primary-menu .sub-menu { position: static; grid-column: 1 / -1; width: 100%; max-height: none; margin: 0 0 8px; border: 0; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: none; }
  .primary-menu li:hover > .sub-menu { display: none; }
  .primary-menu li.is-open > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
  .nav-search { flex: 0 0 auto; width: min(240px, calc(100% - 130px)); margin-inline-start: auto; }
  .nav-search .search-form { min-height: 38px; }
  .home-hero { grid-template-columns: 1fr; gap: 22px; min-height: auto; }
  .hero-feature { min-height: 230px; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .sidebar .widget-area { margin: 0; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 24px); }
  .utility-inner { min-height: 34px; flex-wrap: wrap; padding-block: 6px; gap: 8px; }
  .branding-row { min-height: 78px; padding-block: 10px; }
  .custom-logo { max-width: 72vw; max-height: 62px; }
  .theme-logo { max-width: 76vw; max-height: 60px; }
  .brand-mark { width: 48px; height: 48px; border-radius: 14px 14px 4px 14px; font-size: 23px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy span { font-size: 11px; }
  .site-branding { gap: 10px; }
  .nav-search { width: min(190px, calc(100% - 115px)); }
  .home-hero { padding: 22px 18px; border-radius: 19px; }
  .home-hero h1 { font-size: 30px; }
  .home-hero p { font-size: 15px; }
  .hero-feature { min-height: 200px; }
  .hero-feature-copy { padding: 20px 16px 58px; }
  .hero-slide-excerpt { display: none; }
  .site-main { padding-block: 24px 42px; }
  .card-grid, .archive-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .content-panel, .home-intro { padding: 19px 16px; }
  .sidebar { grid-template-columns: 1fr; }
  .post-navigation, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 20px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 6px; }
  .alignleft, .alignright { float: none; display: block; margin: 12px auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
