/*
  Theme Name: Divi Child
  Theme URI: http://www.elegantthemes.com/gallery/divi/
  Version: 1.0.0
  Template: Divi
  Author: Elegant Themes
  Author URI: http://www.elegantthemes.com
  Description: A child theme for the Divi theme
  Text Domain: divi-child
  License: GNU General Public License v2
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

.pp_search_outer {
  padding: 80px 0;
  width: 100%;
}

.pp_search_form h1 {
  text-align: center;
  margin-bottom: 35px;
  font-size: 36px;
  font-weight: 600;
  font-family: 'Nunito',Helvetica,Arial,Lucida,sans-serif;
  text-transform: capitalize;
  line-height: 42px;
}

.pp_search_form > form {
  display: block;
  width: 65%;
  margin: 0 auto 50px;
}

/* Container for the grid */
.pp-search {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Adds spacing between items */
  margin: 0 -10px; /* Compensates for column padding */
}

/* Each article item - makes 3 columns */
.pp-article-item {
  flex: 0 0 calc(33.33% - 20px); /* 33.33% width minus gap */
  margin-bottom: 30px; /* Space between rows */
  padding: 0 10px; /* Inner spacing */
  box-sizing: border-box; /* Prevents overflow */
}

.pp-content-box {
  border: 1px solid #ddd;
  padding: 0 15px 30px 15px;
}

.pp-post-thumb {
  width: 325px;
  height: 200px;
}

.pp-post-thumb img {
  width: 100%;
  height: 100%;
}

.pp-search-post h3 {
  font-size: 20px;
  margin: 15px 0 0;
  font-weight: 600;
  line-height: 26px;
  color: #000;
}

.pp-meta {
  margin-bottom: 15px;
}
.pp-meta li {
  display: inline-block;
  text-transform: capitalize;
}

.pp-meta li a{
  color: #666;
}

.pp-meta li:after {
  content: '|';
  padding: 0 6px;

}

.pp-meta li:last-child:after {
  content: '';
}

.pp-pagination-box {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.pp-pagination li {
  display: inline-block;
  padding: 0 4px;
}

.pp-pagination li a {
  padding: 4px 12px;
  color: #000;
  border: 1px solid #999;
  display: inline-block;
  text-align: center;
}

.pp-pagination li a.current {
  color: #e02b20;
}

.pp-pagination li a.prev, .pp-pagination li a.next {
  background-color: #ddd;
  color: #000;
  font-weight: 500;
}

/* Responsive adjustments */
@media (min-width: 768px) and (max-width: 992px) {
    .pp-article-item {
        flex: 0 0 calc(50% - 20px);
    }
	.pp-post-thumb {
	  width: 100%;
	  height: 200px;
	}
}

@media (max-width: 767px) {
    .pp-article-item {
        flex: 0 0 100%; /* 1 column on mobile */
    }
	.pp-post-thumb {
	  width: 100%;
	  height: auto;
	}
	.pp_search_form > form{
		width: 100%;
	}
}