/* Full-width band background */
.wice-fullband {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
}

/* Optional: keep inner content nicely centered instead of stretched */
.wice-fullband > .wp-block-group,
.wice-fullband > .wp-block-columns,
.wice-fullband > .wp-block-cover__inner-container {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
}
.wice-fullband .wp-block-gallery {
  width: 100%;
}
/* Make columns inside full bands go edge to edge, no gaps */
.wice-fullband .wp-block-columns {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  gap: 0 !important;
  padding: 0 !important;
}
/* Add side padding only to the About WICE text column */
.wice-about-text {
  padding-right: clamp(2rem, 5vw, 4rem) !important;
  padding-left: clamp(1.5rem, 4vw, 3rem) !important;
}
/* Full-bleed sliding logo strip */
.logo-strip-container {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  max-width: 100vw;

  height: 120px;              /* adjust thickness if needed */
  overflow: hidden;
  padding: 0 !important;

  display: flex;
  align-items: center;
}

/* Give the blog band a little breathing room on left and right */
.wice-blogband {
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}
/* CUSTOM HERO OVERLAY REPLACEMENT */

/* Make sure the hero cover can host an overlay */
.charity-organization-slider .wp-block-cover {
  position: relative;
  overflow: hidden;
}

/* Completely hide the theme's turquoise overlay layers */
.charity-organization-slider .wp-block-cover__background,
.charity-organization-slider .wp-block-cover::before {
  opacity: 0 !important;
  background: none !important;
}
/* WICE hero: add custom blue overlay PNG */
.charity-organization-slider .wp-block-cover::after {
  content: "";
  position: absolute;
  inset: 0;

  /* your curved PNG */
  background-image: url(https://wice-paris.org/wp-content/uploads/2025/12/hero-black-grad-clipped-2.png);
 background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

/* Keep hero text above overlay */
.charity-organization-slider .wp-block-cover__inner-container {
  position: relative;
  z-index: 3;
}
	/* ACTIVITIES: full-bleed without the right-shift overflow */
.wice-fullband-activities {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  left: auto;
  right: auto;
  overflow-x: hidden; /* prevents the horizontal scroll bar */
}

/* Safety: if the theme wraps inner content, keep it full */
.wice-fullband-activities > .wp-block-group,
.wice-fullband-activities > .wp-block-columns {
  width: 100%;
  max-width: 100%;
}

/* Give the inside a little breathing room so borders are not cut off */
.wice-fullband-activities .wp-block-columns,
.wice-fullband-activities .wp-block-group__inner-container {
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

	/* Make sure the Activities title is visible on the front end */
.wice-fullband-activities h1,
.wice-fullband-activities h2,
.wice-fullband-activities h3 {
  position: relative;
  z-index: 5;
  display: block;
}
/* Activities tiles: links without underlines */
.wice-fullband-activities .activity-tile a,
.wice-fullband-activities .activity-tile a:hover,
.wice-fullband-activities .activity-tile a:focus,
.wice-fullband-activities .activity-tile a:visited {
  text-decoration: none !important;
}

/* Keep link text inheriting your tile styling */
.wice-fullband-activities .activity-tile a {
  color: inherit;
}
/* ACTIVITIES: make tiles a consistent size */
.wice-fullband-activities .activity-tile {
  min-height: 170px;                 /* adjust: 160–200 */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* Keep the heading from forcing weird wrapping behavior */
.wice-fullband-activities .activity-tile h2,
.wice-fullband-activities .activity-tile h3,
.wice-fullband-activities .activity-tile h4 {
  margin: 0;
  line-height: 1.05;
  max-width: 100%;
  word-break: normal;
}
/* ACTIVITIES: tighten spacing */
.wice-fullband-activities .wp-block-columns {
  gap: 18px !important;              /* try 14–22 */
}

/* Slightly less side padding so the grid fills more */
.wice-fullband-activities .wp-block-group__inner-container,
.wice-fullband-activities .wp-block-columns {
  padding-left: 18px !important;     /* try 12–24 */
  padding-right: 18px !important;
}

/* ACTIVITIES hover: clean by default, veiled + frame on hover */
.wice-fullband-activities .activity-tile{
  position: relative;
  overflow: visible;                 /* needed for outline-offset */
  box-sizing: border-box;

  /* Temani-style variables */
  --b: 6px;                          /* frame thickness */
  --g: 12px;                         /* gap between tile and frame */
  --c: #0b5a7a;                       /* frame color (override per tile) */
  --veil: rgba(0,0,0,0.25);           /* veil darkness */

  /* Start clean */
  outline: 0 solid transparent;
  outline-offset: 0;

  transition: outline 0.3s ease, outline-offset 0.3s ease;
}

/* Hover: add veil (as a pseudo-layer) + animate frame with gap */
.wice-fullband-activities .activity-tile::before{
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;           /* clean start */
  border-radius: inherit;
  pointer-events: none;
  transition: background 0.3s ease;
}

.wice-fullband-activities .activity-tile:hover::before{
  background: var(--veil);           /* becomes veiled on hover */
}

.wice-fullband-activities .activity-tile:hover{
  outline: var(--b) solid var(--c);  /* frame appears */
  outline-offset: var(--g);          /* gap appears */
}

/* Links inside tiles: keep clickable, no underline */
.wice-fullband-activities .activity-tile a,
.wice-fullband-activities .activity-tile a:visited{
  text-decoration: none !important;
  color: inherit !important;
}
/* Add movement + pointer */
.wice-fullband-activities .activity-tile{
  cursor: pointer;
  transform: translateY(0);
  transition: outline 0.3s ease, outline-offset 0.3s ease, transform 0.2s ease;
}

.wice-fullband-activities .activity-tile:hover{
  transform: translateY(-4px);
}
/* DISCOVER section: nudge text column to the right */
.wice-discover .wp-block-columns {
  column-gap: 48px; /* optional, adjust spacing between text and image */
}

.wice-discover .wp-block-column:first-child {
  padding-left: 48px !important;  /* increases the left inset */
  box-sizing: border-box;
}
.wice-discover .wp-block-column:first-child {
  transform: translateX(24px);
}
/* Force-move the DISCOVER text column */
.wice-discover-text {
  position: relative !important;
  left: 60px !important;      /* increase to 60px if needed */
  padding-left: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  box-sizing: border-box;
}
.wice-discover-text.wp-block-column,
.wp-block-column.wice-discover-text {
  position: relative !important;
  left: 60px !important;
}
/* Yellow square bullets */
.wice-square-bullets {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.wice-square-bullets li {
  position: relative;
  padding-left: 22px; /* space between square and text */
  margin-bottom: 0.75em;
}

.wice-square-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em; /* vertical alignment with first text line */
  width: 8px;
  height: 8px;
  background-color: #F3CC23;
}
.wice-square-paras p::before,
.wice-square-bullets li::before {
  border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35) inset;
}

/* Discover left column: micro-nudge to the right */
.wice-discover-text {
  transform: translateX(12px) !important;
}
/* HERO SLIDER: clip only the viewport, not the moving track */
.charity-organization-slider {
  position: relative;
  overflow: hidden;            /* clips the “next slide” peek */
  background: #fff;            /* fallback so no random colour flashes */
}

/* If the slider is Slick */
.charity-organization-slider .slick-list {
  overflow: hidden !important; /* viewport */
}
.charity-organization-slider .slick-track {
  display: flex !important;    /* keep slides aligned */
}
.charity-organization-slider .slick-slide {
  flex: 0 0 100% !important;   /* each slide = 100% of viewport */
  width: 100% !important;
}

/* If the slider is Swiper */
.charity-organization-slider .swiper {
  overflow: hidden !important; /* viewport */
}
.charity-organization-slider .swiper-wrapper {
  display: flex !important;
}
.charity-organization-slider .swiper-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
}

/* Make sure WP Cover images truly fill each slide */
.charity-organization-slider .wp-block-cover,
.charity-organization-slider .wp-block-cover__image-background,
.charity-organization-slider img {
  width: 100% !important;
}
.charity-organization-slider .wp-block-cover__image-background,
.charity-organization-slider img {
  height: 100% !important;
  object-fit: cover !important;
}

/* Kill the common 1px transform gap that can show white */
.charity-organization-slider .slick-track,
.charity-organization-slider .swiper-wrapper {
  transform: translateZ(0);
  will-change: transform;
}
.charity-organization-slider .slick-slide,
.charity-organization-slider .swiper-slide {
  backface-visibility: hidden;
}
html, body { overflow-x: hidden; }

/* ABOUT (page-id-458) – full-bleed cover that stays centered */
.page-id-458 .wp-block-cover.wice-about-bleed{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

/* About page – volunteer cover: full bleed with scrollbar compensation */
.page-id-458 .wp-block-cover.wice-volunteer-bleed{
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  transform: translateX(calc((100vw - 100%) / -2));
}
/* Card wrapper */
.director-card{
  position: relative;
  overflow: hidden;
}

/* Overlay starts hidden below the image */
.director-card .director-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;

  transform: translateY(100%);
  transition: transform 0.3s ease;

  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* Slide overlay up on hover */
.director-card:hover .director-overlay{
  transform: translateY(0);
}

/* Image always fills the card */
.director-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Buttons: keep hover visible (no white-on-white) */
.wp-block-button__link,
.wp-block-button__link:visited{
  background-color: #cd3741;
  color: #ffffff;
  border-color: #ffffff;
}

/* Hover / focus / active */
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-block-button__link:active,
.wp-block-button:hover .wp-block-button__link{
  background-color: #8f1821;  /* slightly darker red on hover */
  color: #ffffff;
  border-color: #ffffff;
}
/* Fix hover for any Gutenberg button link, including palette classes */
a.wp-block-button__link.wp-element-button:hover,
a.wp-block-button__link.wp-element-button:focus,
a.wp-block-button__link.wp-element-button:active{
  background-color: #cd3741 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* FOOTER ONLY: links stay white on hover */
footer a:hover,
footer a:focus {
  color: #ffffff !important; /* white */
  text-decoration: underline; /* if you want it underlined on hover */
}
/* HEADER ONLY: links turn red on hover */
header a:hover,
header a:focus {
  color: #cd3741 !important; /* red */
  text-decoration: none; /* or underline if you prefer */
}
.wice-soft-shadow img {
  box-shadow: 9px 4px 4px rgba(71, 162, 218, 0.5);
}

.page-id-1691 .wp-block-cover.alignfull{
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

.wice-volunteer-cols {
  gap: 32px;
}

.center-image {
  text-align: center;
}

.center-image img {
  display: inline-block;
}

.wice-volunteer-cols > .wp-block-column {
  min-width: 0;
}

.wice-volunteer-cols h2,
.wice-volunteer-cols h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Volunteer page: force a clean 2-column split with real spacing */
.wice-volunteer-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 72px;
  align-items: start;
}

/* prevent overflow that causes “bleeding” into the middle */
.wice-volunteer-split > .wp-block-column {
  min-width: 0;
}

/* lists: remove any weird negative margins and keep bullets inside column */
.wice-volunteer-split ul {
  margin: 0;
  padding-left: 1.2em;
}

.wice-volunteer-split li {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* stack on smaller screens */
@media (max-width: 900px) {
  .wice-volunteer-split {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
}

.wice-tile-grid .wp-block-image {
  margin: 0 !important;
  line-height: 0;
}

.wice-tile-grid .wp-block-image img {
  display: block;
}

.wice-tile-grid .wp-block-column {
  gap: 0 !important;
}

.activity-tile {
  position: relative;
}

.activity-tile .activity-card-link a {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
  border: 0;
}

MOBILE
@media (max-width: 781px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .wp-site-blocks,
  .entry-content,
  main {
    max-width: 100%;
    overflow-x: hidden;
  }

  .wp-block-group,
  .wp-block-cover,
  .wp-block-columns,
  .wp-block-column {
    max-width: 100%;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 781px) {
  .activity-tile .wp-block-heading,
  .activity-tile h2,
  .activity-tile h3 {
    font-size: 20px !important;
    line-height: 1.08 !important;
    max-width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
  }
}

@media (max-width: 781px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 782px) {
  .mobile-only {
    display: none !important;
  }
}

@media only screen and (max-width: 767px) {

h1 {
    font-size: 34px !important;
}

h2 {
    font-size: 28px !important;
}

h3 {
    font-size: 24px !important;
}

}

@media (max-width: 781px) {

  .wice-newsletter-mobile {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }

  .wice-newsletter-mobile .wp-block-columns {
    display: block !important;
  }

  .wice-newsletter-mobile .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .wice-newsletter-mobile .wp-block-cover,
  .wice-newsletter-mobile .wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .wice-newsletter-mobile img {
    max-width: 100% !important;
    height: auto !important;
  }

  .wice-newsletter-mobile input[type="email"],
  .wice-newsletter-mobile input[type="text"],
  .wice-newsletter-mobile .wp-block-search__input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }

  .wice-newsletter-mobile .wp-block-button,
  .wice-newsletter-mobile .wp-block-button__link,
  .wice-newsletter-mobile button,
  .wice-newsletter-mobile input[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

@media (max-width: 781px) {
  #volunteer-form .grunion-field-width-50,
  #volunteer-form .grunion-field,
  #volunteer-form .wp-block-jetpack-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 260px !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 781px) {
  #volunteer-form form {
    margin-left: 0 !important;
    transform: translateX(-60px) !important;
  }
}
@media (max-width: 781px) {
  #volunteer-form form {
    transform: translateX(-60px) !important;
  }

  #volunteer-form textarea {
    min-height: 140px !important;
  }

  #volunteer-form input,
  #volunteer-form textarea,
  #volunteer-form select {
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {

  header .wp-block-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
  }

  /* Logo farther left */
  header .wp-block-columns > .wp-block-column:first-child {
    order: 1 !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: flex !important;
    justify-content: flex-start !important;
  }

  header .wp-block-columns > .wp-block-column:first-child img {
    max-width: 145px !important;
    height: auto !important;
  }

  /* Login farther right */
header .wp-block-columns > .wp-block-column:nth-child(3) {
  order: 2 !important;
  flex: 0 0 40% !important;
  max-width: 40% !important;
  display: flex !important;
  justify-content: center !important;
  margin-left: auto !important;
}

  header .wp-block-columns > .wp-block-column:nth-child(3) .wp-block-buttons {
    justify-content: flex-end !important;
    width: 100% !important;
  }

  header .wp-block-button__link {
    padding: 5px 14px !important;
    font-size: 11px !important;
    border-radius: 24px !important;
  }

  /* Menu full width below with more breathing room */
  header .wp-block-columns > .wp-block-column:nth-child(2) {
    order: 3 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  header .wp-block-navigation__container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  header .wp-block-navigation-item__content {
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 768px) {

  footer .wp-block-search {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  footer .wp-block-search__inside-wrapper {
    display: flex !important;
    width: 100% !important;
    max-width: 320px !important;
    align-items: stretch !important;
  }

  footer .wp-block-search__input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 46px !important;
    font-size: 16px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }

  footer .wp-block-search__button {
    flex: 0 0 auto !important;
    height: 46px !important;
    padding: 0 14px !important;
    font-size: 16px !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }
}
footer .wp-block-search,
footer .wp-block-search__inside-wrapper {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

footer .wp-block-search__input {
  background: #ffffff !important;
}

footer .wp-block-search__button {
  margin-left: 0 !important;
}