/*
Theme Name: Universal Block Theme
Author: Universal
Description: A performance-first block theme starter built for reusable patterns, editorial layouts, and scalable WordPress builds.
Requires at least: 6.6
Requires PHP: 8.0
Tested up to: 7.0
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: universal-block-theme
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, featured-images
*/

body {
  overflow-wrap: anywhere;
}

@font-face {
  font-family: "Graphik-Light";
  src: url("assets/fonts/Graphik-Light.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Graphik";
  src: url("assets/fonts/Graphik-Regular.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Helvetica Neue LT Std is registered in theme.json. Keep only non-theme.json font faces here. */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.universal-top-bar p,
.universal-top-bar a {
  margin: 0;
}

.universal-top-bar a {
  text-decoration: none;
}

.universal-card,
.is-style-universal-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.universal-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 26rem);
  gap: var(--wp--preset--spacing--30);
  overflow-x: auto;
  padding-block-end: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.universal-slider > * {
  scroll-snap-align: start;
}

.universal-mega-panel .wp-block-column,
.universal-slider .wp-block-group {
  height: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open {
  padding: var(--wp--preset--spacing--40);
}

.wp-block-post-template.is-layout-grid > li {
  margin-block-start: 0;
}

.universal-header-mega-shell {
  position: relative;
  z-index: 30;
}

.universal-primary-nav {
  align-items: center;
  gap: 0.75rem;
}

.universal-primary-nav .wp-block-navigation {
  min-width: 0;
}

.universal-mega-menu {
  margin: 0;
  position: static;
}

.universal-mega-menu > summary {
  align-items: center;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 1rem;
}

.universal-mega-menu > summary::-webkit-details-marker {
  display: none;
}

.universal-mega-menu > summary::after {
  border-bottom: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  content: "";
  display: inline-block;
  height: 0.42rem;
  margin-top: -0.2rem;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  width: 0.42rem;
}

.universal-mega-menu[open] > summary {
  border-bottom-color: #ef4444;
}

.universal-mega-menu[open] > summary::after {
  margin-top: 0.15rem;
  transform: rotate(-135deg);
}

.universal-mega-menu-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  left: 50%;
  margin-top: 0;
  padding: var(--wp--preset--spacing--40);
  position: absolute;
  top: calc(100% - 1px);
  transform: translateX(-50%);
  width: min(1160px, calc(100vw - 3rem));
  z-index: 40;
}

.universal-mega-menu-panel .wp-block-query {
  margin-top: 0;
}

.universal-mega-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.universal-mega-post .wp-block-post-title {
  font-family:
    "Helvetica Neue LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.universal-mega-post .wp-block-post-title a {
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
}

.universal-mega-post .wp-block-post-excerpt {
  color: var(--wp--preset--color--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.universal-readmore-link {
  align-items: center;
  background: transparent !important;
  border: 0;
  color: var(--wp--preset--color--foreground) !important;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0 !important;
  text-decoration: none;
}

.universal-readmore-link .universal-forward-icon {
  align-items: center;
  background-color: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 999px;
  color: var(--wp--preset--color--foreground);
  display: inline-flex;
  flex: 0 0 1.9rem;
  font-size: 1rem;
  height: 1.9rem;
  justify-content: center;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  width: 1.9rem;
}

.universal-readmore-link:hover .universal-forward-icon,
.universal-readmore-link:focus-visible .universal-forward-icon {
  background-color: #fe0000;
  color: #ffffff;
  transform: translateX(0.15rem);
}

.universal-sadaqah-link-cta-shell
  .universal-content-feature-actions.wp-block-buttons {
  margin: 0 !important;
}

.universal-sadaqah-link-cta-shell
  .universal-content-feature-button.wp-block-button
  .wp-block-button__link {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  color: #1e1e1e !important;
  display: inline-flex;
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  gap: 12px;
  letter-spacing: 0;
  line-height: 1.2;
  min-height: 0;
  padding: 0 !important;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: normal;
}

.universal-sadaqah-link-cta-shell
  .universal-content-feature-button.wp-block-button
  .wp-block-button__link::before {
  content: none;
}

.universal-sadaqah-link-cta-shell
  .universal-content-feature-button.wp-block-button
  .wp-block-button__link
  .universal-forward-icon {
  align-items: center;
  background: #f6f6f6;
  border-radius: 999px;
  color: #000000;
  display: inline-flex;
  flex: 0 0 32px;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  height: 32px;
  justify-content: center;
  line-height: 26px;
  transform: translateX(0);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  width: 32px;
}

.universal-sadaqah-link-cta-shell
  .universal-content-feature-button.wp-block-button
  .wp-block-button__link:hover,
.universal-sadaqah-link-cta-shell
  .universal-content-feature-button.wp-block-button
  .wp-block-button__link:focus-visible {
  background: transparent !important;
  color: #d60000 !important;
}

.universal-sadaqah-link-cta-shell
  .universal-content-feature-button.wp-block-button
  .wp-block-button__link:hover
  .universal-forward-icon,
.universal-sadaqah-link-cta-shell
  .universal-content-feature-button.wp-block-button
  .wp-block-button__link:focus-visible
  .universal-forward-icon {
  background: #fe0000;
  color: #ffffff;
  transform: translateX(2px);
}

/* Let designated full-width templates bypass the global constrained content width. */
.universal-full-width-template
  .entry-content.is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
}

.universal-full-width-template
  .entry-content.is-layout-constrained
  > .alignwide {
  max-width: none;
}

.universal-404-page-template .entry-content.wp-block-post-content {
  margin-top: 0;
}

.universal-404-page-template
  .entry-content.wp-block-post-content
  > :first-child {
  margin-block-start: 0;
}

.universal-404-page-template .entry-content.is-layout-constrained > .alignwide,
.universal-404-page-template
  .entry-content.is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
}

.universal-header-donate .wp-block-button__link {
  /* min-width: 10px; */
}

.wp-block-button.is-style-universal-download-button .wp-block-button__link,
.wp-block-button .wp-block-button__link.universal-download-button__link {
  align-items: center;
  background: #fe0000 !important;
  border: 1px solid #fe0000 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  display: inline-flex;
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  gap: 0.9rem;
  justify-content: center;
  line-height: 1.5;
  padding: 0.95rem 1.4rem !important;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.wp-block-button.is-style-universal-download-button
  .wp-block-button__link:hover,
.wp-block-button.is-style-universal-download-button
  .wp-block-button__link:focus-visible,
.wp-block-button .wp-block-button__link.universal-download-button__link:hover,
.wp-block-button
  .wp-block-button__link.universal-download-button__link:focus-visible {
  background: #ffffff !important;
  border-color: #fe0000 !important;
  color: #fe0000 !important;
}

.wp-block-button.is-style-universal-download-button
  .wp-block-button__link:focus-visible,
.wp-block-button
  .wp-block-button__link.universal-download-button__link:focus-visible {
  outline: 2px solid #fe0000;
  outline-offset: 2px;
}

.universal-eventbrite-button.wp-block-button .wp-block-button__link {
  background: #ffffff !important;
  border: 1px solid #fe0000 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #fe0000 !important;
  display: inline-flex;
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  justify-content: center;
  line-height: 1.5;
  padding: 0.95rem 2.5rem !important;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.universal-eventbrite-button.wp-block-button .wp-block-button__link:hover,
.universal-eventbrite-button.wp-block-button
  .wp-block-button__link:focus-visible {
  background: #fe0000 !important;
  border-color: #fe0000 !important;
  color: #ffffff !important;
}

.universal-eventbrite-button.wp-block-button
  .wp-block-button__link:focus-visible {
  outline: 2px solid #fe0000;
  outline-offset: 2px;
}

.universal-download-button__icon {
  align-items: center;
  color: currentColor;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  line-height: 1;
}

.universal-download-button__icon svg,
.universal-download-button__icon i {
  color: currentColor;
  display: block;
  fill: currentColor;
  font-size: 1rem;
  height: 1rem;
  line-height: 1;
  width: 1rem;
}

.universal-news-cards {
  padding-block: 12px 24px;
}

.universal-news-cards__inner {
  margin: 0 auto;
  margin-inline: clamp(24px, 10.2vw, 147px);
}

.universal-news-cards__header {
  align-items: center;
  display: flex;
  gap: 1.9rem;
  margin-bottom: 1.75rem;
}

.universal-news-cards__header::after {
  background: #dedede;
  content: "";
  flex: 0 0 1px;
  height: 22px;
}

.universal-news-cards__label {
  color: #111111;
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.universal-news-cards__grid {
  display: grid;
  column-gap: 0.9rem;
  row-gap: 3.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.universal-news-cards__card {
  border-bottom: 1px solid #dddddd;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 0.9rem;
  transition: border-color 0.25s ease;
}

.universal-news-cards__media {
  background: #f2f2f2;
  display: block;
  margin-bottom: 1.35rem;
  overflow: hidden;
}

.universal-news-cards__image {
  display: block;
  height: 190px;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.universal-news-cards__image--placeholder {
  background: linear-gradient(135deg, #ececec, #d8d8d8);
}

.universal-news-cards__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.universal-news-cards__title {
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.universal-news-cards__title a {
  color: #111111;
  text-decoration: none;
}

.universal-news-cards__excerpt {
  color: #111111;
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}

.universal-news-cards__empty {
  color: #111111;
  font-size: 0.95rem;
  margin: 0;
}

.universal-news-cards__card:hover,
.universal-news-cards__card:focus-within {
  border-bottom-color: #ff2a1b;
}

.universal-news-cards__card:hover .universal-news-cards__image,
.universal-news-cards__card:focus-within .universal-news-cards__image {
  transform: scale(1.05);
}

.universal-not-found-impact {
  background: #ffffff;
  --universal-not-found-shell-width: 90vw;
  overflow-x: clip;
  padding-inline: 0;
}

.universal-not-found-inner.wp-block-group {
  background: #ffffff;
}

.universal-not-found-impact__columns.wp-block-columns {
  align-items: stretch !important;
  background: #ffffff;
  gap: 0;
  margin: 0 !important;
  min-height: 500px;
}

.universal-not-found-impact__content.wp-block-column,
.universal-not-found-impact__showcase.wp-block-column {
  flex-basis: 50% !important;
  margin: 0 !important;
  min-width: 0;
}

.universal-not-found-impact__content.wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  padding-inline: 0 clamp(2rem, 4vw, 4.5rem);
}

.universal-not-found-impact__badge,
.universal-not-found-impact__badge.wp-block-image {
  margin: 0 0 2.75rem;
  width: 72px;
}

.universal-not-found-impact__badge img {
  display: block;
  height: auto;
  width: 100%;
}

.universal-not-found-impact__title {
  color: #000000;
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 2.5rem;
  max-width: 10.5ch;
}

.universal-not-found-impact__eyebrow {
  color: #000000;
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 0.95rem;
}

.universal-not-found-impact__links {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.universal-not-found-impact__links li {
  margin: 0;
  padding: 0;
}

.universal-not-found-impact__links a {
  align-items: center;
  color: #4b5563;
  display: inline-flex;
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: 1rem;
  gap: 0.7rem;
  line-height: 1.45;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.universal-not-found-impact__links a::before {
  content: none;
}

.universal-not-found-impact__links a .universal-forward-icon {
  color: #fe0000;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1;
}

.universal-not-found-impact__links a:hover,
.universal-not-found-impact__links a:focus-visible {
  color: #000000;
  transform: translateX(2px);
}

.universal-not-found-impact__showcase.wp-block-column {
  align-items: center;
  background: #f6f6f6;
  display: flex;
  isolation: isolate;
  justify-content: center;
  overflow: visible;
  padding-block: 2rem;
  padding-inline: clamp(2rem, 4vw, 4.5rem) 0;
  position: relative;
}

.universal-not-found-impact__background-art,
.universal-not-found-impact__background-art.wp-block-image {
  bottom: 0;
  inset: 0;
  left: 0;
  margin: 0;
  position: absolute;
  right: calc((100vw - var(--universal-not-found-shell-width)) / -2);
}

.universal-not-found-impact__background-art img {
  background: #f6f6f6;
  display: block;
  height: 100%;
  opacity: 0.05;
  width: 100%;
}

.universal-not-found-impact__showcase-label {
  color: #000000;
  font-family: "Helvetica Neue LT Std", sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

@media (min-width: 992px) {
  .universal-not-found-impact {
    --universal-not-found-shell-width: 85vw;
  }
}

@media (min-width: 1280px) {
  .universal-not-found-impact {
    --universal-not-found-shell-width: 78vw;
  }
}

@media (min-width: 1500px) {
  .universal-not-found-impact {
    --universal-not-found-shell-width: 81.3vw;
  }
}

@media (max-width: 1100px) {
  .universal-news-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .universal-news-cards__inner {
    margin-inline: 6%;
  }

  .universal-not-found-impact__content.wp-block-column {
    padding-inline: 0 6%;
  }
}

@media (max-width: 781px) {
  .universal-news-cards {
    padding: 1rem 0 1.5rem;
  }

  .universal-news-cards__grid {
    column-gap: 1.25rem;
    row-gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .universal-news-cards__image {
    height: 220px;
  }

  .universal-not-found-impact__columns.wp-block-columns {
    min-height: 0;
  }

  .universal-not-found-impact__content.wp-block-column,
  .universal-not-found-impact__showcase.wp-block-column {
    flex-basis: 100% !important;
  }

  .universal-not-found-impact__title {
    max-width: 100%;
  }

  .universal-not-found-impact__showcase.wp-block-column {
    min-height: 320px;
    padding: 2.5rem 24px;
  }
}

@media (max-width: 640px) {
  .universal-news-cards__inner {
    margin-inline: 24px;
  }

  .universal-not-found-impact__content.wp-block-column {
    padding: 2.5rem 24px;
  }

  .universal-not-found-impact__badge,
  .universal-not-found-impact__badge.wp-block-image {
    margin-bottom: 2rem;
    width: 64px;
  }

  .universal-not-found-impact__title {
    font-size: 2.4rem;
    margin-bottom: 2rem;
  }

  .universal-not-found-impact__showcase.wp-block-column {
    min-height: 260px;
  }
}

@media (max-width: 781px) {
  .universal-header-actions {
    width: 100%;
  }

  .universal-header-actions .wp-block-search {
    flex: 1 1 auto;
  }

  .universal-top-bar {
    row-gap: 0.5rem;
  }

  .universal-header-donate {
    width: 100%;
  }

  .universal-header-donate .wp-block-button__link {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .universal-primary-nav {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .universal-mega-menu {
    width: 100%;
  }

  .universal-mega-menu > summary {
    justify-content: space-between;
    width: 100%;
  }

  .universal-mega-menu-panel {
    border-radius: 24px;
    left: auto;
    margin-top: 1rem;
    padding: var(--wp--preset--spacing--30);
    position: static;
    top: auto;
    transform: none;
    width: 100%;
  }
}

/*new dark top bar*/

/* ===== TOP BAR ===== */
.universal-topbar-source {
  background-color: #111827; /* dark */
  color: #ffffff;
  width: 100%;
  z-index: 999;
}

/* ===== INNER CONTAINER ===== */
.universal-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: center;
}

/* ===== TEXT ===== */
.universal-topbar-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ===== ICON ===== */
.universal-topbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

@media only screen and (max-width: 1500px) {
  .universal-topbar-inner {
    padding: 13px 0;
  }
}
@media only screen and (max-width: 1285px) {
  .universal-topbar-inner {
    padding: 12px 0;
  }
}
@media only screen and (max-width: 990px) {
  .universal-topbar-inner {
    padding: 13.3px 0;
  }
}

@media only screen and (max-width: 768px) {
  .universal-topbar-inner {
    padding: 11px 0;
  }
}

/* ===== RESPONSIVE ===== */
/* @media (max-width: 640px) {
  .universal-topbar-text {
    font-size: 12px;
  }
} */
