.rocket-news-feed {
    margin: 3rem 0;
    font-family: inherit;
}

/* Controls row */
.rocket-news-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rocket-news-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.rocket-news-filter-label {
    margin-top: 15px;
    font-size: 16px;
}

.rocket-news-controls .select2-selection {
  border: none !important;
}

.rocket-news-filters .fancy-select-wrap {
    margin-left: 40px;
}

.rocket-news-filters select {
    min-width: 120px;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #fff;
}

.original[data-form-style="default"] input[type="search"]:focus {
    background: transparent !important;
}

.rocket-news-search-form {
    margin-left: auto;
    width: calc(30% + 20px);
    position: relative;
}

.rocket-news-search-input {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
}

.rocket-news-search-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('../img/search-icon.svg');
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none; /* so clicks still focus the input */
    opacity: 0.7;
}


/* Grid */
.rocket-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .rocket-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rocket-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.rocket-news-item {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rocket-news-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 12px;
}

.rocket-news-thumb img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: block;
}

.rocket-news-item:hover .rocket-news-read-more {
    color: var(--bright-green) !important;
}

.rocket-news-content {
    padding: 1.25rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.rocket-news-date {
    font-size: 0.85rem;
    padding-bottom: .6rem !important;
}

.rocket-news-title {
    margin: 0 0 0.75rem !important;
}

.rocket-news-title a {
    text-decoration: none !important;
}

.rocket-news-excerpt {
    font-size: 0.95rem;
    flex-grow: 1;
}

.rocket-news-read-more {
    display: inline-block;
    align-self: flex-start;
    margin-top: 10px;
}

.rocket-news-no-posts {
    grid-column: 1 / -1;
}

/* Load more */
.rocket-news-load-more-wrapper {
    text-align: center;
    margin-top: 2.5rem;
}

.rocket-news-load-more {
    padding: 0.75rem 2.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

button.rocket-news-load-more {
  background: var(--bright-green);
  font-family: 'Mulish', sans-serif;
  font-size: 20px;
}
button.rocket-news-load-more:hover {
    background: #60884B;
    color: #EED8C5;
}

.rocket-news-load-more.loading {
    opacity: 0.6;
    cursor: default;
}

/* Related posts section */

.rocket-news-related-section {
    margin: 4rem 0 200px;
    text-align: center;
}

.rocket-news-related-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.rocket-news-carousel-wrapper {
    position: relative;
    overflow: visible;
}

.rocket-news-carousel {
    display: flex;
    flex-wrap: nowrap;       /* keep them in a single row for sliding */
    overflow-x: hidden;      /* or auto if you still want swipe */
    gap: 2rem;               /* spacing between cards */
}

.rocket-news-carousel::-webkit-scrollbar {
    display: none; /* hide scrollbar for a cleaner look */
}


.rocket-news-carousel-item {
    flex: 0 0 calc(33.333% - 1.333rem); /* 3 columns minus some gap */
    max-width: calc(33.333% - 1.333rem);
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .rocket-news-carousel-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }

}

@media (max-width: 767px) {
    #page-header-bg {
      min-height: 400px !important;
    }
    .blog-title .inner-wrap {
      display: none;
    }
    .rocket-news-carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .rocket-news-search-form {
        order: 1;
        width: 100%;
    }
    .rocket-news-filters {
        order: 2;
    }
}

.rocket-news-related-footer {
    margin-top: 2rem;
}

.rocket-news-view-all {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    background: var(--bright-green);
    font-family: Mulish;
    font-size: 22px;
    color: var(--black);
}
.rocket-news-view-all:hover {
    background: #60884B;
    color: #EED8C5;
}

/* Carousel dots */
.rocket-news-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
}

.rocket-news-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: currentColor;
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rocket-news-carousel-dot.is-active {
    opacity: 1;
    transform: scale(1.2);
}


