@media (min-width: 0px) {
  #lc-carousel,
  #news-div {
    background: rgba(172, 205, 255, 0.8) !important;
  }

  #lc-carousel h2[class*="text-white"],
  #lc-carousel h3[class*="text-"],
  #lc-carousel p[class*="text-"] {
    color: #1e44a3 !important;
  }

  .resource-hero {
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    min-height: 300px;
    position: relative;
  }

  .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;
  }

  .resource-hero-text > h1 {
    margin: 0 !important;
  }

  .resource-hero-text > h2 {
    font-size: 1.75rem !important;
    font-weight: normal;
  }

  .resource-hero-text > h1,
  .resource-hero-text > h2 {
    color: black;
  }

  .custom-page .no-tailwindcss-base h1:first-of-type {
    margin-top: 1rem;
    text-align: center;
  }

  .custom-page .no-tailwindcss-base h2 {
    font-size: 1.5rem;
  }

  hr {
    margin: 0 0 1rem 0;
  }

  .custom-page .no-tailwindcss-base > div {
    padding: 0 2rem;
  }

  .resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    grid-template-columns: 1fr;
    justify-content: center;
    padding: 2rem 4rem;
  }

  .resource-card h3,
  #trending-topics h2 {
    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;
  }

  .ssa-popup-content {
    padding-top: 4rem;
  }

  .ssa-popup-links {
    display: flex;
    column-gap: 20px;
  }

  .ssa-popup-link {
    text-align: center;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: 100%;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.15s ease-in-out;
    display: inline-flex;
    color: #fff !important;
    text-decoration: none !important;
  }
}

@media (min-width: 850px) {
  .resource-hero {
    min-height: 500px;
  }
  .resource-hero-text h1 {
    font-size: 3.5rem !important;
  }

  .resource-hero-text > h2 {
    font-size: 2rem !important;
  }

  .resource-card {
    padding: 0.5rem 0 0.5rem 5rem;
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-button-div {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "button1 button2"
      "button3 button4";
    margin: 0 4rem;
  }
}