/**
 * Theme Name: Step Up and Succeed
 * Description: Step Up and Succeed theme
 * Author: SlypigPro
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ------------------------ */
/* Variables */
/* ------------------------ */
:root {
  --suas-card-1: rgb(79, 21, 59);
  --suas-card-2: #63174e;
  --suas-card-3: #7f2a55;
  --suas-card-4: #9376ab;
  --suas-card-5: #c6911a;
  --suas-card-6: #c99755;
  --suas-card-1op: rgba(79, 21, 59, 0.8);
  --suas-card-4op: rgba(147, 118, 171, 0.4);
  --suas-card-darker: rgb(52, 13, 38);
  --suas-link: #9f0918;
  --suas-card-text: #f8f8f8;
  --suas-logo-light: #f5a73b;
  --suas-logo-dark: #86232b;

}

/* inter-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/inter-600.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-800 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/inter-800.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ------------------------ */
/* Base styles */
/* ------------------------ */

* {
  font-family: 'Inter' !important;

}

html,
body,
.resource-wrapper,
#primary,
.site-main {
  overflow: visible;
}

.home .page-title {
  display: none;
}

/* SUAS Page Template *******************************************************************/

.suas-title-bar {
  width: 100%;
  background: url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 0h12v6H56V0zm0 8h12v6H56V8zM42 8h12v6H42V8zm0 16h12v6H42v-6zm14-8h12v6H56v-6zm14 0h12v6H70v-6zm0-16h12v6H70V0zM28 32h12v6H28v-6zM14 16h12v6H14v-6zM0 24h12v6H0v-6zm0 8h12v6H0v-6zm14 0h12v6H14v-6zm14 8h12v6H28v-6zm-14 0h12v6H14v-6zm28 0h12v6H42v-6zm14-8h12v6H56v-6zm0-8h12v6H56v-6zm14 8h12v6H70v-6zm0 8h12v6H70v-6zM14 24h12v6H14v-6zm14-8h12v6H28v-6zM14 8h12v6H14V8zM0 8h12v6H0V8z' fill='%23ffffff' fill-opacity='0.09' fill-rule='evenodd'/%3E%3C/svg%3E"),
    linear-gradient(to bottom,
      var(--suas-card-1),
      var(--suas-card-2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (min-width:480px) {
  .suas-title-bar {
    min-height: 6em;
  }
}

.suas-title-text {
  color: #FFF;
  font-size: clamp(1.3rem, 1.0667rem + 0.7778vw, 2rem) !important;
  margin: 0;
}

.suas-page-wrapper {
  width: 80%;
  margin: 0 auto;
  padding: 0;
}

@media (max-width:480px) {
  .suas-page-wrapper {
    width: 90%;
  }
}

/* body.page-id-84 .suas-content,
body.page-id-86 .suas-content,
body.page-id-92 .suas-content,
body.page-id-88 .suas-content,
body.page-id-80 .suas-content,
body.page-id-82 .suas-content,
body.page-id-90 .suas-content {
  margin-top: 3em;

} */

/* .suas-page-header {
  margin-bottom: 2rem;
} */

/* .suas-page-title {
  font-size: clamp(1.3rem, 1.0667rem + 0.7778vw, 2rem);
  line-height: 1.2;
  margin-bottom: 5rem;
  color: var(--suas-card-3);
} */

h1.widget-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.suas-content {
  margin: 3rem 0 0 0;
  line-height: 1.7;
}

.suas-custom-section {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
}

.suas-custom-inner h2 {
  margin-top: 0;
}

.suas-no-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


#main {
  font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
  line-height: 1.6;
  font-family: 'Inter';
}

#main h1 {
  font-size: clamp(1.1rem, 0.9rem + 0.65vw, 1.6rem);
  line-height: 1.2;
  margin: 1rem 0;
}

#main h2 {
  font-size: clamp(1rem, 0.8rem + 0.55vw, 1.4rem);
  line-height: 1.25;
  margin: 0.9rem 0;
}

#main h3 {
  font-size: clamp(0.85rem, 0.7rem + 0.45vw, 1.2rem);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}


/* ------------------------ */
/* Layout fixes */
/* ------------------------ */
.ct-container-full,
.hero-section {
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* HERO --------------------------------------------------------------------------------*/


.hero-row {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0 !important;
  background-color: var(--suas-card-1);
  background-image: url('https://apprenticeshiphub.ca/project25/wp-content/themes/suas/images/hero-bg.webp');
  background-size: cover;
  background-position: center right;
  padding: 4em !important;
  box-sizing: border-box;
}

.hero_content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.hero_content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--suas-card-text) !important;
}

.hero_content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--suas-card-text) !important;
}

.hero_search h1 {
  color: var(--suas-card-text);
}


@media (max-width: 768px) {
  .hero-row .panel-grid {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .hero_content {
    padding: 2em 0;
    text-align: center;
  }
}

@media (max-width: 1600px) {
  .hero-row {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url('https://apprenticeshiphub.ca/project25/wp-content/themes/suas/images/hero-bg.webp');
  }

  .hero_content h1,
  .hero_content p {
    color: #FFF !important;
  }
}

.hero_content,
.hero_search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ct-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 2px solid var(--suas-card-1);
  border-radius: 999px;
  overflow: hidden;
}

@media screen and (min-width:1024px) {
  .ct-search-form {
    width: 75%
  }
}

.ct-search-form:focus-within {
  border-color: var(--suas-card-5);
}

.ct-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.6em 1em;
  font-size: 1rem;
  background: #FFF !important;
  border-radius: 999px 0 0 999px;

}

.ct-search-form button.wp-element-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  background: var(--suas-card-1) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;

  width: 2.6em;
  height: 100%;
  line-height: 0;
  /* fix vertical bounce */
}

.ct-search-form button.wp-element-button svg {
  display: block;
  /* remove inline spacing issues */
  width: 1.3em;
  height: 1.3em;
}

a.entry-button {
  color: var(--suas-card-text) !important;
  text-decoration: none !important;
}

.entry-button:hover,
.entry-button:hover *,
.entry-button:focus,
.entry-button:focus * {
  text-decoration: none !important;
}

footer .ct-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border-radius: 999px;
  overflow: hidden;
}

footer .ct-search-form input {
  color: #000 !important;
  background: #FFF;
}

footer button.wp-element-button:hover {
  background: var(--suas-card-5) !important;
  color: #FFF;


}

.no_results_input {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
}

/* Tri logo in header top right (see menu 2) *****************************************************************/


.menu-item.menu-image-item>a {
  background-image: url('https://apprenticeshiphub.ca/project25/wp-content/themes/suas/images/tri-logo.webp');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: block;
  min-width: 400px;
  /* adjust */
  height: auto;
  /* adjust */
  text-indent: -9999px;
  /* hides the text */
  overflow: hidden;
}


.home_bottom {
  background-color: var(--suas-card-darker);
  min-height: 1em;
  padding: 2em 1em;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  /* replaces margin on .suas-box */
}

.home_bottom .suas-box {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  min-height: 150px;
  background-size: cover;
  background-position: center;
  border: 2px solid #FFF;
  border-radius: 3px;
  cursor: pointer;
}

.home_bottom .suas-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--suas-card-1op);
  opacity: 0.85;
  z-index: 1;
}

/* Target the SiteOrigin widget wrapper inside the box */
.home_bottom .suas-box>.so-widget-sow-editor,
.home_bottom .suas-box>.sow-headline-container,
.home_bottom .suas-box>.widget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
  width: 100%;
}

.suas-box .suas-title-bottom,
.suas-box .suas-content-bottom {
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: absolute;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 1em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.suas-box .suas-title-bottom {
  opacity: 1;
  visibility: visible;
}

.suas-box .suas-content-bottom {
  opacity: 0;
  visibility: hidden;
  font-size: clamp(0.875rem, 1rem + -0.4167vw, 0.5rem);
  line-height: 1.5em;
}

.suas-box:hover .suas-title-bottom {
  opacity: 0;
  visibility: hidden;
}

.suas-box:hover .suas-content-bottom {
  opacity: 1;
  visibility: visible;
}




/* Entry content *******************************************************************************/

body:not(.home) .entry-content {
  padding: 3em 0;
}

.site-main a:link,
.site-main a:visited {
  font-weight: 800;
  text-decoration: none !important;
  color: var(--suas-link);
}

.site-main a:hover {
  /*text-decoration: underline !important;*/
  color: var(--suas-logo-light);
}



/* Resource Section (home page cards) *********************************************************/


.resource-cards-wrapper {
  margin: 0 auto;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;

  padding: 4rem 1rem;
}


.resource-cards-wrapper .resource-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 calc(14.28% - 1rem);
  max-width: calc(14.28% - 1rem);
  height: auto;
  /* remove fixed height */
  min-height: 150px;
  /* optional minimum height */

  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  background-color: var(--suas-card-1);
  border: 3px solid var(--suas-card-5);
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resource-cards-wrapper .resource-card:hover {
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.75);
  background-color: var(--suas-card-5);
  text-decoration: none !important;
}

/* Stagger each card */
.resource-card:nth-child(1) {
  animation-delay: 0.1s;
}

.resource-card:nth-child(2) {
  animation-delay: 0.2s;
}

.resource-card:nth-child(3) {
  animation-delay: 0.3s;
}

.resource-card:nth-child(4) {
  animation-delay: 0.4s;
}

.resource-card:nth-child(5) {
  animation-delay: 0.5s;
}

.resource-card:nth-child(6) {
  animation-delay: 0.6s;
}

.resource-card:nth-child(n+7) {
  animation-delay: 0.7s;
}


/* .resource-content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px; 
  width: 100%;
  height: 4px;
  background: var(--suas-card-1); 
  border-radius: 1px;
 
} */

.resource-content {
  font-size: clamp(1.0rem, 0.6rem + 0.3333vw, 1.2rem);
  font-weight: bold;
  position: relative;
  padding-bottom: 6px;
  color: #FFF;
}

@media (max-width: 768px) {
  .resource-cards-wrapper .resource-card {
    min-height: 100px;
    /* shorter cards on mobile */
    padding: 1rem;
    /* smaller padding */
    flex: 1 1 100%;
    /* make cards full-width for single column if needed */
    max-width: 100%;
    /* ensure no overflow */

  }

  .resource-content {

    font-weight: normal;


  }
}



/* ------------------------ */
/* Resource Navigation */
/* ------------------------ */
/* .page-nav {
  width: 100%;
    padding: 2em 0;
  box-sizing: border-box;
 position: sticky;
 top:0;
 z-index: 10;
} */

/* .page-nav.menu-open { padding-bottom: 0; }  */

/* .resource-navigation .resource-title {
  text-align: center;
  padding-bottom: 0.7em;
}

.submenu-trigger-container {
  position: relative; 
  text-align: center;
  width: 100%;
} */


/* Submenu button & trigger */
/* .submenu-toggle { display: none; }

.submenu-trigger {
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  border-radius: 4px;
  display: inline-block;
 
  user-select: none;
  min-width: 7em;
} */

/* .submenu-trigger::after { content: "Page Menu"; }
.submenu-toggle:checked + .submenu-trigger::after { content: "Close"; }
.submenu-trigger:hover { background-color: rgba(255, 255, 255, 0.25); } */

/* ------------------------ */
/* Smooth expanding + fading menu */
/* ------------------------ */
/* .resource-menu-wrapper {
   position: absolute;
  top: 110%;     
  left: 0;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;  
  
  margin-bottom: -2em; 


} */

/* .submenu-toggle:checked ~ .resource-menu-wrapper {
  
  max-height: 1000px;
  opacity: 1;
  
  padding: 12px 0;
}

.color-1 .submenu-toggle:checked ~ .resource-menu-wrapper {
  background-color: color-mix(in srgb, var(--suas-card-1) 85%, black);
}

.color-2 .submenu-toggle:checked ~ .resource-menu-wrapper {
  background-color: color-mix(in srgb, var(--suas-card-2) 85%, black);
}

.color-3 .submenu-toggle:checked ~ .resource-menu-wrapper {
  background-color: color-mix(in srgb, var(--suas-card-3) 85%, black);
}

.color-4 .submenu-toggle:checked ~ .resource-menu-wrapper {
  background-color: color-mix(in srgb, var(--suas-card-4) 85%, black);
}

.color-5 .submenu-toggle:checked ~ .resource-menu-wrapper {
  background-color: color-mix(in srgb, var(--suas-card-5) 85%, black);
}

.color-6 .submenu-toggle:checked ~ .resource-menu-wrapper {
  background-color: color-mix(in srgb, var(--suas-card-6) 85%, black);
}

.color-7 .submenu-toggle:checked ~ .resource-menu-wrapper {
  background-color: color-mix(in srgb, var(--suas-card-7) 85%, black);
} */



/* ------------------------ */
/* Menu styling */
/* ------------------------ */
/* .resource-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  
}

.submenu-toggle:not(:checked) ~ .resource-menu-wrapper .resource-menu {
  opacity: 0;
}

.submenu-toggle:checked ~ .resource-menu-wrapper .resource-menu {
  opacity: 1;
}











.resource-menu li {
  margin: 0.4em;
  font-size: clamp(0.8rem, 0.6rem + 0.3333vw, 1rem);
}

.resource-menu a {
  text-decoration: none;
  color: #FFF;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid #FFF;
  display: block;
 
}

.resource-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
} */

/* ------------------------ */
/* Resource Page */
/* ------------------------ */

/* .page-info {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  margin: 0 auto 3em auto;
  font-weight: 600;
  background-color: var(--suas-card-4);
  
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  font-size: clamp(0.875rem, 0.6667rem + 0.6944vw, 1.5rem);

} */

.page-info p {
  margin: 0;
  padding: 0;
}

/* RESOURCE-COPY H1 STYLING */
.suas-content-area h1 {
  color: #000 !important;
  /* always black text */
  border: none;
  font-size: 2rem;
  font-weight: 700;
}

.suas-content-area h1,
.suas-content-area h2 {
  padding: 0.5em 0;
  margin: 1.5em 0;
}

/* Full-width top and bottom lines */
.suas-content-area h1::before,
.suas-content-area h1::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: #000;
  /* black lines */
  margin: 0.4em 0;
}

/* Related pages*******************************************************************************/

.suas-related-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3em 0;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  border-top: 2px solid #ddd;
  position: relative;
}

.suas-related-pages.is-parent::before {
  content: "IN THIS SECTION";
}


.suas-related-pages::before {
  content: "ALSO IN THIS SECTION";
  position: absolute;
  top: -1.0rem;
  left: 0;
  background: #fff;
  padding: 0;
  font-size: clamp(1.1rem, 0.9rem + 0.21vw, 1.4rem);
  font-weight: 800;
  color: var(--suas-card-3);
}

.suas-related-pages ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  margin-top: 0;
  list-style: none;
}

.suas-related-pages li {
  display: block;

}

.suas-related-pages li:not(:last-child)::after {
  content: "";
  margin: 0 10px;
  color: #ddd;
  font-weight: normal;
}

@media (max-width:480px) {
  .suas-related-pages ul {
    display: flex;
    flex-direction: column; /* stack items vertically */
    align-items: flex-start; /* left-align items */
    text-align: left;        /* ensure text aligns left */
    width: 100%;
    gap: 0;                  /* optional: remove horizontal gap */
  }

  .suas-related-pages li {
    width: 100%;             /* each item takes full row */
  }

  .suas-related-pages a {
    display: inline-block;
    text-align: left;        /* ensure link text is left-aligned */
  }
}


/* Links styling */
.suas-related-pages a,
.suas-footnote a {
  font-size: clamp(1.0rem, 0.6rem + 0.3333vw, 1.2rem);

  text-decoration: none;
  transition: color 0.2s;
}

.suas-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3em 0;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  border-top: 2px solid #ddd;
  position: relative;
}

.suas-footnote::before {
  content: "FOOTNOTES";
  position: absolute;
  top: -1.0rem;
  left: 0;
  background: #fff;
  padding: 0;
  font-size: clamp(1.1rem, 0.9rem + 0.21vw, 1.4rem);
  font-weight: 800;
  color: var(--suas-card-3);
}



/* ------------------------ */
/* Video */
/* ------------------------ */

.responsive-video {
  max-width: 600px;
  margin: 1rem auto;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background: #000;
  display: block;
  /* ensure block context for floats */
}

/* Float variant for text wrapping */
.responsive-video.float-right {
  float: right;
  width: 40%;
  /* adjust width for float */
  margin: 0 0 5em 5em;
}

/* Maintain 16:9 aspect ratio if not floated */
.responsive-video:not(.float-right) {
  aspect-ratio: 16/9;
}

/* Video styling */
.responsive-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* If floated, video height auto */
.responsive-video.float-right video {
  height: auto;
}

/* Accessibility: focus highlight */
.responsive-video :focus {
  outline: 3px solid rgba(11, 102, 255, 0.25);
  outline-offset: 2px;
}

/* ------------------------ */
/* Mobile override */
/* ------------------------ */
@media (max-width: 768px) {

  .responsive-video,
  .responsive-video.float-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
  }

  .responsive-video.float-right video {
    height: 100%;
  }
}




/* ------------------------ */
/* Responsive */
/* ------------------------ */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero_content,
  .hero_search {
    margin: 0;
  }

  .entry-content {
    width: 100%;
    padding: 0 1rem;
  }

  body.page-template-resource-page .entry-content {
    width: 90%;
  }

  .resource-card {
    min-width: 100%;
    height: 100px;
    padding: 1rem;
  }

  /* .resource-menu {
    flex-direction: column;
    align-items: center;
  }

  .resource-menu li {
    width: 75%;
    text-align: center;
  } 

  .page-nav { position: relative; }
  .resource-menu-wrapper { position: relative; display: block; }*/
}

@media (max-width: 768px) {
  .resource-menu li {
    margin: 6px 0;
  }
}

.site-main button {
  display: inline-block !important;
  padding: 0.75rem 1.5rem !important;
  background-color: var(--suas-card-1) !important;
  color: #fff !important;
  border: 1px solid #FFF;
  font-weight: bold !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.site-main button:hover {
  background-color: var(--suas-card-5) !important;
  color: var(--suas-card-text) !important;
}


/* ==================== */
/* Resource Card Styles */
/* ==================== */

.rcard-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3em 0;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  border-top: 2px solid #ddd;
  position: relative;
}

.rcard-row::before {
  content: "RESOURCES";
  position: absolute;
  top: -1.0rem;
  left: 0;
  background: #fff;
  padding: 0;
  font-size: clamp(1.1rem, 0.9rem + 0.21vw, 1.4rem);
  font-weight: 800;
  color: var(--suas-card-3);
}

/* Allow proper wrapping on tablets + mobile */
@media (max-width: 1024px) {
  .rcard-row {
    width: 100%;
    /* prevents overflow */
    max-width: 100%;
  }
}

.rcard {
  position: relative;
  flex: 1 1 calc(33.333% - 2rem);
  /* 3 cards per row */
  max-width: 400px;
  border: 2px solid var(--suas-card-1);
  border-left: 10px solid var(--suas-card-1);
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--suas-card-text);
  z-index: 1;
}

.rcard-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  width: 100%;
  flex: 1;
  color: #000 !important;
  font-weight: 800;
  text-decoration: none;
  position: relative;
  z-index: 2;
  /* above sliding background */
  transition: color 0.7s ease, background 1.9s ease;
}

.rcard-link:hover {
  color: #fff !important;
  text-decoration: none !important;
  border-radius: inherit;
}

.rcard a:hover {
  text-decoration: none !important;
}

.rcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  /* start off-screen */
  width: 100%;
  height: 100%;
  background-color: var(--suas-card-5);
  /* this is the hover color, same as before */
  transition: left 0.35s ease-out;
  z-index: 0;
  /* behind text */
}

.rcard:hover::before {
  left: 0;
  /* slide in to cover background */
}

/* watermark text layer behind the main text */
.rcard::after {
  content: attr(data-type-text);
  /* see JS */
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.20);
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rcard:hover::after {
  opacity: 1;
}

@media (max-width: 1024px) {
  .rcard {
    flex: 1 1 calc(50% - 2rem);
    /* 2 per row on tablets */
  }
}

@media (max-width: 768px) {
  .rcard {
    flex: 1 1 100%;
    /* 1 per row on mobile */
  }
}

.copyright {
  margin-bottom: 1em;
}

.wpforms-container-full .wpforms-form {
  margin: 0 !important;
  padding: 0 !important;
}

/* Form ********************************************************************************/

.sit-form {
  margin-top: 0 !important;
  margin-bottom: 5em !important;
}

/* Focus state */
.wpforms-form input[type="text"]:focus,
.wpforms-form input[type="email"]:focus,
.wpforms-form input[type="url"]:focus,
.wpforms-form input[type="tel"]:focus,
.wpforms-form input[type="number"]:focus,
.wpforms-form input[type="password"]:focus,
.wpforms-form textarea:focus {
  border: 2px solid var(--suas-card-6) !important;
  outline: none !important;
  box-shadow: none !important;
}


/* Desktop: looks like text, not clickable */
.phone-link {
  pointer-events: none;
  /* disables clicking */
  color: var(--suas-card-darker) !important;
  font-weight: 400 !important;
  /* looks like normal text */
  text-decoration: none;
}

/* Mobile: clickable */
@media (max-width: 768px) {
  .phone-link {
    pointer-events: auto;
    color: var(--suas-link) !important;
    font-weight: 800 !important;

  }

  .phone-link:hover {
    color: var(--suas-logo-light) !important;


  }
}

.suas-search-bar-top {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.suas-search-bar-top form {
    width: 100%;
    max-width: 700px; 
}

.suas-search-bar-top input[type="search"] {
    width: 100%;
}