.ast-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.news-feed-post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-feed-heading-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.news-feed-post-excerpt {
  font-size: 16px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-feed-post {
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.news-feed-post-thumbnail {
  flex: 0 0 400px;
  width: 50%;
  max-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-feed-two-columns .news-feed-post-thumbnail {
  flex: 0 0 auto;
}

.news-feed-post-thumbnail img,
.news-feed-post-default-logo {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
}

/* Ensure WordPress post thumbnails in news feed use cover fit */
.news-feed-post-thumbnail .wp-post-image,
.news-feed-post-thumbnail .attachment-full,
.news-feed-post-thumbnail img.wp-post-image {
  object-fit: cover !important;
}

.clubland-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.7) !important;
}

.category-post .carousel-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  margin: 0 10px;
}

.category-post .carousel-cell img {
  border-radius: 50%;
  border: 2px solid var(--ast-global-color-0);
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.category-post .carousel-cell .category-name {
  margin-top: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.news-feed-two-columns {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.news-feed-two-columns .left-column,
.news-feed-two-columns .right-column {
  width: 50%;
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
}

.news-feed-two-columns .left-column .news-feed-post {
  display: flex;
  flex-direction: column;
  height: 520px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-feed-two-columns .left-column .news-feed-post-thumbnail {
  flex: none;
  width: 100%;
  max-height: 300px;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-feed-two-columns .left-column .news-feed-post-thumbnail img,
.news-feed-two-columns .left-column .news-feed-post-default-logo {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
}

.news-feed-two-columns .right-column {
  gap: 20px;
}

.news-feed-two-columns .right-column .news-feed-post {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 160px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-feed-two-columns .right-column .news-feed-post-thumbnail {
  width: 40%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-feed-two-columns .right-column .news-feed-post-thumbnail img,
.news-feed-two-columns .right-column .news-feed-post-default-logo {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.news-feed-two-columns .right-column .news-feed-post-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.news-feed-two-columns .left-column .news-feed-post-category {
  border-radius: 0 !important;
}

.news-feed-two-columns .left-column .news-feed-post-title {
  margin: 0;
  padding: 0 10px;
  font-size: clamp(18px, 4vw, 28px) !important;
}

.news-feed-two-columns .left-column .news-feed-post-meta,
.news-feed-two-columns .left-column .news-feed-post-read-more {
  margin: 0;
  padding: 10px;
}

.news-feed-two-columns .news-feed-post-excerpt {
  display: none !important;
}

.clubland-post__author {
  display: flex;
  font-weight: 600;
  align-items: center;
  margin-top: 0;
  margin-bottom: 10px;
}

.clubland-post__author-details {
  margin-left: 10px;
  position: relative;
}

.elementor-author-box {
  display: none !important;
}

.news-feed-post-content {
  flex: 1;
  padding: 5px;
}

.news-feed-post-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px;
  color: #000;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-feed-post-meta {
  font-size: 16px !important;
  color: #777;
  margin-bottom: 8px;
}

.news-feed-post-read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--ast-global-color-0);
  text-decoration: none;
}

.news-feed-post-read-more:hover {
  color: var(--ast-global-color-2);
  text-decoration: underline;
}

.news-feed-load-more {
  display: block;
  margin: 20px auto;
  text-align: center;
}

/* Ensure Load More button inherits Astra button styles */
.news-feed-load-more.ast-button {
  padding: 12px 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.news-feed-post-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-feed-post-category {
  width: 100%;
  text-align: center;
  font-weight: 700;
  padding: 5px;
  border-radius: 0 4px 0 0;
  margin-bottom: 10px;
  box-sizing: border-box;
  position: relative;
}

@media (max-width: 768px) {

  body,
  html {
    overflow-x: hidden !important;
    width: 100vw;
    position: relative;
  }

  .news-feed-two-columns {
    flex-direction: column;
  }

  .news-feed-two-columns .left-column,
  .news-feed-two-columns .right-column {
    flex: 1 1 auto;
    width: 100%;
    max-height: none !important;
  }

  .news-feed-two-columns .news-feed-post {
    flex-direction: row !important;
    align-items: stretch;
    height: 160px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 5px;
    background: #fff;
  }

  .news-feed-post-list > .news-feed-post .news-feed-post-thumbnail {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    height: auto !important;
    max-height: none !important;
    flex-shrink: 0;
    overflow: hidden !important;
    display: block;
  }

  .news-feed-post-list > .news-feed-post .news-feed-post-excerpt {
    display: none !important;
  }

  .news-feed-two-columns .news-feed-post-thumbnail img,
  .news-feed-two-columns .news-feed-post-default-logo {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
  }

  .news-feed-two-columns .news-feed-post-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .clubland-post__title {
    font-size: 1.5rem;
  }

  .clubland-post__content {
    font-size: 1rem;
  }

  .nav-title {
    display: none;
  }

  .clubland-post-navigation {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
  }

  .nav-previous,
  .nav-next {
    flex: 1 1 48%;
    max-width: 48%;
  }

  .clubland-post-navigation a {
    display: block;
    width: 100%;
    padding: 2px !important;
    font-size: 0.9rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    display: block;
  }

  .carousel-cell.swiper-slide {
    max-width: 120px !important;
  }

  .news-category-list.category-post.swiper-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 auto;
    padding: 0 10px;
  }

  .carousel-cell.swiper-slide > a {
    width: 110px;
  }

  .carousel-cell.swiper-slide > a .category-name {
    font-size: 0.8rem;
  }

  .news-feed-post-title,
  .news-feed-post-meta,
  .news-feed-post-read-more,
  .news-feed-two-columns .left-column .news-feed-post-title,
  .news-feed-two-columns .left-column .news-feed-post-meta,
  .news-feed-two-columns .left-column .news-feed-post-read-more {
    margin: 0;
    padding: 0;
    font-size: 12px !important;
  }

  .news-feed-post-title,
  .news-feed-two-columns .left-column .news-feed-post-title {
    font-size: 16px !important;
  }

  .news-feed-post-list > .news-feed-post {
    flex-direction: row !important;
    align-items: stretch;
    height: 160px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 5px;
    background: #fff;
  }

  .news-feed-post-list > .news-feed-post .news-feed-post-thumbnail img,
  .news-feed-post-list > .news-feed-post .news-feed-post-default-logo {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
  }

  .news-feed-post-list > .news-feed-post .news-feed-post-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .news-feed-two-columns .left-column .news-feed-post,
  .news-feed-two-columns .right-column .news-feed-post {
    flex-direction: row !important;
    align-items: stretch;
    height: 160px !important;
    border-radius: 8px;
    margin-bottom: 5px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .news-feed-two-columns .left-column .news-feed-post-thumbnail,
  .news-feed-two-columns .right-column .news-feed-post-thumbnail {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    height: auto !important;
    max-height: none !important;
    flex-shrink: 0;
    overflow: hidden !important;
    display: block;
  }

  .news-feed-two-columns .left-column .news-feed-post-title,
  .news-feed-two-columns .right-column .news-feed-post-title {
    font-size: 16px !important;
    padding: 0;
    margin: 0;
  }

  .news-feed-two-columns .left-column .news-feed-post-meta,
  .news-feed-two-columns .right-column .news-feed-post-meta {
    font-size: 12px !important;
    margin: 0;
    padding: 0;
  }

  .news-feed-two-columns .left-column .news-feed-post-read-more,
  .news-feed-two-columns .right-column .news-feed-post-read-more {
    font-size: 12px !important;
    margin: 0;
    padding: 0;
  }

  .news-feed-two-columns .left-column .news-feed-post-excerpt,
  .news-feed-two-columns .right-column .news-feed-post-excerpt {
    display: none !important;
  }

  .news-feed-two-columns .left-column .news-feed-post-wrapper,
  .news-feed-two-columns .right-column .news-feed-post-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 480px) {

  .news-feed-post {
    flex-direction: row;
  }

  .news-feed-post-content {
    padding: 5px;
  }

  .news-feed-post-meta {
    font-size: 10px;
  }

  .cl-subheader-container {
    padding: 5px 10px;
  }

}

@media (max-width: 320px) {

  .news-feed-post-read-more {
    font-size: 12px !important;
  }

  .news-feed-post-category,
  .news-feed-post-title,
  .news-feed-post-read-more {
    font-size: 12px;
    padding: 0;
    margin: 0;
  }
}

.category-page {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding-bottom: 50px;
}

.category-page .news-feed-post-list {
  width: 100% !important;
  margin: 0 auto;
  max-width: var(--wp--custom--ast-content-width-size);
}

.category-title-heading {
  text-align: center;
  margin: 20px 0;
}

.news-category-list.category-post.swiper-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  overflow: visible;
}

/* Ensure Swiper wrapper displays correctly */
.news-category-list.category-post .swiper-wrapper {
  display: flex;
  align-items: center;
  height: auto;
}

/* Ensure slides are visible */
.news-category-list.category-post .swiper-slide {
  width: auto;
  flex-shrink: 0;
}

.category-post {
  justify-content: left;
  text-align: center;
  flex-wrap: nowrap;
  min-height: 172px;
  overflow: visible;
}

.news-block-button {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.news-button {
  padding: 10px;
  border-radius: 5px;
}

.news-buttons-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.rep-news {
  background-color: var(--ast-global-color-0);
  color: #fff;
}

.club-news {
  background-color: var(--club-color-1);
  color: #fff;
}

.clubland-post-navigation {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  gap: 20px;
  margin: 30px 0;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
  margin-left: auto;
}

.nav-next a {
  margin-left: auto;
}

.nav-previous,
.nav-next {
  flex: 1 1 50%;
  max-width: 50%;
  margin: 0;
  padding: 0;
}

.clubland-post__title a {
  color: inherit;
  text-decoration: none;
}

.clubland-post__content a {
  color: var(--ast-global-color-2);
  text-decoration: underline;
  font-weight: 600;
}

.clubland-post-navigation a {
  display: inline-block;
  text-align: left;
  flex: 1 1 48%;
  max-width: 48%;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
  padding: 16px;
  background-color: #f9f9f9;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.nav-previous a,
.nav-next a {
  display: block;
  height: 100%;
  padding: 16px;
  background-color: #f9f9f9;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.clubland-post__tags-list a {
  display: inline-block;
  background-color: var(--ast-global-color-2);
  color: #fff;
  padding: 4px 16px;
  border-radius: 25px;
  text-decoration: none;
  margin: 2px;
}

.clubland-post__tags-list a:hover {
  color: #fff !important;
}

.nav-previous a:hover,
.nav-next a:hover {
  background-color: var(--ast-global-color-1);
  color: #fff;
  border-color: var(--ast-global-color-1);
}

.nav-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  display: block;
  margin-bottom: 4px;
}

.clubland-post__tags-heading {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 5px;
  display: inline;
  color: var(--ast-global-color-2);
}

.clubland-post__tags-list {
  font-size: 14px;
  display: inline;
}

.news-article {
  max-width: 1200px;
  margin: 0 auto;
}

.clubland-post__content p {
  display: block;
  margin: 0 auto 1.5em auto;
  line-height: 1.7;
}

.clubland-post__content p:last-child {
  margin-bottom: 0;
}

.clubland-post__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ast-global-color-0);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.clubland-post__title a:hover {
  color: var(--ast-global-color-2);
}

.clubland-post__content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  padding-bottom: 40px;
  animation: fadeInUp 0.4s ease-in-out;
}

.clubland-post__content a:hover {
  text-decoration: none;
}

.clubland-post-navigation a:hover {
  text-decoration: none;
  background-color: var(--ast-global-color-1);
  color: #fff;
  border-color: var(--ast-global-color-1);
}

.nav-title {
  transition: color 0.3s ease;
  font-size: 1.1rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.4;
  word-wrap: break-word;
}

.clubland-post__tags {
  font-size: 0.95rem;
  color: #666;
}

.clubland-separator {
  border: none;
  height: 1px;
  background: linear-gradient(to right, #eee, #ccc, #eee);
  margin: 30px 0;
}

.clubland-post__ad-unit {
  padding: 5px;
  text-align: center;
}

.carousel-cell.swiper-slide>a {
  display: block;
  width: 110px;
  text-align: center;
}

.carousel-cell.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px !important;
}

.carousel-cell.swiper-slide>a .category-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-cell.swiper-slide:last-child {
  margin-right: 0;
}

@keyframes fadeInUp {

  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {

  body,
  html {
    overflow-x: hidden !important;
    width: 100vw;
    position: relative;
  }
}

.cl-subheader-container {
    background: var(--ast-global-color-0);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    border-radius: 0 0 25px 25px;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
}

.cl-column-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.cl-subheader-container .cl-block-column {
    flex: 1 1 45%;
    text-align: center;
}

.cl-subheader-container .cl-block-heading {
    border-radius: 0;
    font-style: normal;
    font-weight: 700;
    margin: 0;
}

/* .cl-subheader-container .cl-block-heading a {
    color: #fff;

} */

@media (max-width: 768px) {

    .cl-subheader-container {
        padding: 8px 15px;
    }

    .cl-column-wrapper {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .cl-subheader-container .cl-block-column {
        flex: 1 1 auto;
        margin-bottom: 0;
    }

    .news-feed-heading-container a {
        font-size: 14px;
    }


    h3.news-feed-heading {
      font-size: 18px;
      margin: 0 !important;
    }
}