.pageblognew { 
  margin: 40px auto;
  padding: 0 20px;
}

.header-text {
  text-align: center;
  margin-bottom: 30px;
}

.header-text h1 {
  font-size: 36px;
  color: #2E7D32;
}

.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.search-bar input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.topics {
  text-align: center;
  margin-bottom: 30px;
}

.topics button {
  margin: 5px;
  padding: 8px 16px;
  background: #eee;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color:#000000 !important;
}

.topics .active {
  background: #4CAF50;
  color: #fff;
}

.featured-wrapper {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.featured-image {
  flex: 1 1 100%;
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-content {
  flex: 1 1 100%;
  background: #052C2D;
  color: #fff;
  padding: 30px;
}

.featured-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.badge {
  background: #4CAF50;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.date {
  font-size: 14px;
  color: #ccc;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.author-info img {
  border-radius: 50%;
}

.read-more-btn {
  background: #50D88A;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* lock 3 columns on desktop */
  }
}


.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  flex: 1 1 calc(33.33% - 20px);
  display: flex;
  flex-direction: column;
}

.card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-body h3 {
  margin: 10px 0;
  font-size: 18px;
  font-weight: 600;
}

.read-link {
  text-decoration: none;
  font-weight: 500;
  color: #222;
}

.pagination {
  text-align: center;
  margin-top: 30px;
}

.pagination a {
  margin: 0 5px;
  padding: 8px 12px;
  background: #eee;
  border-radius: 4px;
  text-decoration: none;
}

.pagination .current {
  background: #4CAF50;
  color: #fff;
}

@media (min-width: 768px) {
  .featured-wrapper {
    flex-wrap: nowrap;
  }
  .featured-image, .featured-content {
    flex: 1;
  }
}

.search-bar form {
    display: flex;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
    gap: 8px;        /* spacing between input and button */
}

.search-bar input[type="text"] {
    flex: 1;                  /* take available width */
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;         /* ensures input doesn’t shrink too much */
}

.search-bar button {
    background-image: linear-gradient(267.43deg, var(--e-global-color-accent) 4.95%, var(--e-global-color-accentsecondary) 97.92%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .search-bar form {
        flex-direction: column; /* stack input and button on small screens */
    }
    .search-bar button {
        width: 100%;           /* button takes full width */
    }
}
.bg-section{
	max-width: 1400px !important;
}
/* Pretty pager */
.coach-pager-wrap {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}
.coach-pager {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.coach-pager li {
  list-style: none;
  display: flex;
}
.coach-pager a.page-numbers,
.coach-pager span.page-numbers {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  min-width: 40px;
  justify-content: center;
  font-weight: 600;
  color: #0b1223;
  text-decoration: none;
  border-right: 1px solid #eef2f7;
}
.coach-pager li:last-child .page-numbers {
  border-right: 0;
}
/* arrows */
.coach-pager .prev .page-numbers,
.coach-pager .next .page-numbers {
  padding: .6rem 1rem;
}
/* current gradient */
.coach-pager .page-numbers.current {
  color: #fff;
  border-right: 1px solid transparent;
  background: linear-gradient(135deg, #0ea5a5, #65e572);
}
/* dots */
.coach-pager .page-numbers.dots {
  color: #8a97a8;
  background: #fafafa;
}
/* hover */
.coach-pager a.page-numbers:hover {
  background: #f5f8fb;
}
