  /*
  Theme Name:   Catholic Russia v 2025
  Template:     astra
  Version:      0.5
  Text Domain:  cathrus
  */

  #masthead .ast-container {
    width: 100%;
    padding: 0;
  }


  p:blank {
    display: none;
  }

  .site-branding {
    margin-top: 2.5rem;
  }

  .site-title {
    margin-bottom: 1rem;
  }

  .site-title a,
  .site-title a:focus,
  .site-title a:hover,
  .site-title a:visited {
    color: #848484;
  }

  .site-description {
    font-size: 14px;
    font-style: normal;
    font-family:  'Playfair Display', Georgia, serif;
  }
  @media (min-width: 420px) {
    .site-description {
    font-size: 48px;
    }
  }

  @media (min-width: 921px) {
    .site-description {
      font-size: 20px;
    }
  }
  @media (min-width: 1200px) {
    .site-description {
      font-size: 40px;
    }
  }


  .main-header-bar {
    line-height: 3;
  }

  .main-header-bar-navigation {
    /*background-color: #f0228b; /* amaranth */
    margin-bottom: 0.5rem;
  }

  .main-header-menu a {
    font-family: "Playfair Display", Georgia, sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #f0228b;
    /* amaranth */
    padding: 0 1.25rem 0 0;
  }

  .main-header-menu .sub-menu a {
    font-size: 1rem;
    text-transform: none;
    color: #222;
    font-weight: 400;
  }

  .ast-masthead-custom-menu-items {
    padding: 0;
  }

  .ast-header-widget-area .widget:last-child {
    margin: 0;
    width: 100%;
  }

  .ast-header-widget-area img {
    display: inline-block;
    width: calc(100% - 0.1rem);
    height: auto;
    margin: 0 auto;
  }

  .ast-header-break-point.ast-header-custom-item-outside .ast-mobile-header-inline .site-branding {
    text-align: center;
  }


  .has-post-thumbnail .post-thumb img {
    padding: 0.25rem;
    border: 1px solid #d2d2d2;
  }

  @media (max-width: 420px) {
    .site-title {
      font-size: 1.5rem;
    }

    h2,
    .entry-title a {
      font-size: 1.8rem;
    }
  }

  .entry-meta,
  .comments-area {
    display: none;
  }


  /* footer */
  .ast-footer-overlay {
    background-color: transparent;
  }

  .site-footer,
  .site-footer a {
    color: gray;
  }

  .slick-dots {
    height: 1rem;
  }

  .site-footer .wpls-logo-showcase .slick-dots li {
    /* links carousel dots */
    position: relative;
    left: 9999px;
  }

  .ast-footer-widget-1-area {
    padding: 2rem 0 0 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }


  .home .uagb-post__text.uagb-post-grid-byline {
    display: none;
  }

  .ast-builder-html-element>h1 {
    margin: 0;
    display: inline-block !important;
  }

  h1.desktop-only{
    display: none !important;
  }

  h1.mobile-only{
    display: inline-block !important;
  }


  @media (min-width: 921px) {
    h1 {
      font-size: 36px;
      font-style: normal;
    }
  }

.wp-block-search__label {
  display: none;
}

/* external news */

.rss-feed-container {
    max-width: 1200px;
}

.rss-posts {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
}

.rss-post {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rss-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rss-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.rss-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rss-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rss-post h3 {
    margin: 0 0 10px 0;
    font-size: 1rem !important;
    line-height: 1.2;
}

.rss-post h3 a {
    text-decoration: none;
    font-size: 1rem !important;
}

.rss-post h3 a:hover {
}

.rss-date {
    color: #666;
    font-size: 0.9em;
    display: block;
    margin-bottom: 12px;
}

.rss-description {
    margin-bottom: 15px;
    flex: 1;
}

.rss-read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.rss-read-more:hover {
    background-color: #005177;
}


/* Desktop: 6 columns */
@media (min-width: 1200px) {
    .rss-posts {
        grid-template-columns: repeat(6, 1fr);
    }
}

.all-posts {
  columns: 1;
}

/* Desktop: 3 columns */
@media (min-width: 1200px) {
    .all-posts {
  columns: 3;
  }
}
.all-posts a {
  text-decoration: none !important;
  color: black !important;
}

.all-posts li {
  list-style-type: none;
  margin: 0 0 1rem 0;
  padding: 0 0 1rem 0;
  border-bottom: 1px solid #ccc;
  orphans: 2;   /* Min lines at bottom before page/column break */
  widows: 2;    /* Min lines at top after page/column break */
  break-inside: avoid; /* Prevent breaking inside the element */
  text-wrap: pretty; /* Balances line breaks */
}
