/* Button color override (swapping primary/secodnary) */
.tile a > span,
.tile button > span,
#guest-login-body form button {
  background: var(--primary-color);
}

.tile a > span:hover,
.tile button > span:hover,
#guest-login-body form button:hover {
  background: var(--secondary-color);
}

.dhs .hero-title-cbp-eap-health-coaching,
.website-dhs .hero-title-cbp-eap-health-coaching {
  background-position: 25% 0; /*CBP Health Coaching slide*/
}

.dhs .hero-title-talk-to-tess,
.website-dhs .hero-title-talk-to-tess {
  background-position: 20% 0; /*CBP Tess slide*/
}

.dhs .hero-title-cbp-eap-interactive-screening-program-isp,
.website-dhs .hero-title-cbp-eap-interactive-screening-program-isp {
  background-position: center; /*CBP ISP slide*/
}

.dhs .hero-title-get-the-cg-suprt-app,
.website-dhs .hero-title-get-the-cg-suprt-app {
  background-position: 30% 0; /*USCG CGSUPRT slide*/
}

/* mental health awareness ribbon */
.home #hero .mental-health-ribbon,
.home #hero .custom-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: #3b3b3b;
  font-weight: bold;
  text-align: center;
}

.home #hero .mental-health-ribbon a,
.home #hero .custom-ribbon a {
  font-size: 1rem;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.8);
  text-underline-offset: 6px;
}

.home #hero .mental-health-ribbon a:hover,
.home #hero .custom-ribbon a:hover {
  text-decoration-color: rgba(255, 255, 255, 1);
}

.custom-page .no-tailwindcss-base h1:first-of-type {
  text-align: center;
  color: var(--primary-color);
}

.no-tailwindcss-base .action {
  font-size: 0.8rem;
}

.custom-page .no-tailwindcss-base > div {
  padding: 0 2rem;
}

.custom-page .no-tailwindcss-base h2 {
  font-size: 1.5rem;
}

.no-tailwindcss-base .back-to-top {
  display: inline-flex;
  flex-flow: row-reverse;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.no-tailwindcss-base .back-to-top:hover {
  cursor: pointer;
}

.custom-page .no-tailwindcss-base h1:first-of-type {
    margin-top: 1rem;
}

hr {
  margin: 0 0 1rem 0;
}

#news-div {
padding: 0.8rem 0;
}



  #trending-topics.resource-hero {
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    height: 300px;
    position: relative;
  }

  #trending-topics .resource-hero-text {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: rgba(255, 255, 255, 0.5); */
    /* border-radius: 8px; */
    /* color: var(--color-primary); */
    text-align: center;
    padding: 20px;
  }

  #trending-topics .resource-hero-text > h1 {
    margin: 0 !important;
    font-size: 1.75rem !important;
  }
  
  #trending-topics .resource-hero-text > h2 {
    font-size: 1.25rem !important;
    font-weight: normal;
  }

  #trending-topics .resource-hero-text > h1,
  #trending-topics .resource-hero-text > h2 {
    color: black;
  }

  .resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    padding: 2rem;
    grid-template-columns: 1fr;
    justify-content: center;
    padding: 1rem 2rem;
  }

  .resource-card h3 {
    margin: 0 0 10px;
  }

  .resource-card p {
    margin: 0 0 12px;
    line-height: 1.5;
  }

  .resource-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 600;
  }

@media screen and (min-width: 768px) {
  .home #hero .mental-health-ribbon a,
  .home #hero .custom-ribbon a {
    font-size: 1.4rem;
  }

  #hero #welcome-ribbon h1 {
    font-size: 1.6rem;
  }

  #programTiles .tile > div {
    height: 30%;
  }
  
  #trending-topics.resource-hero {
    height: 500px;
  }
  #trending-topics .resource-hero-text > h1 {
    font-size: 2.5rem !important;
  }
  
  #trending-topics .resource-hero-text > h2 {
    font-size: 2rem !important;
  }

  .resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .resource-card {
    padding: 0.5rem 5rem;
  }
}