/* ----------------------------- */
/*          Base Styles         */
/* ----------------------------- */

#primary {
	position: relative;
  	z-index: 10;
  	display: flex;
  	justify-content: center;
  	box-sizing: content-box;
  	min-height: 100svh;
  	margin-bottom: -35px;
}

#main.site-main {
  	box-sizing: content-box;
  	max-width: 1280px;
 	width: 100%;
  	margin: 0 auto;
  	padding: 150px 20px 50px 20px;
}




.search-header .search-title .page-title {
	font-weight: 600;
}
/* ----------------------------- */
/*     Search Results Styles     */
/* ----------------------------- */

.search-results-container {
    background: transparent;
  	min-height: 550px;
  	width: 100%;
}

.search-result-source {
    font-family: roboto;
    font-size: 26px;
    background: #7891ad;
    color: #fff;
    padding: 10px 20px;
  	margin: 0;
  	text-align: center;
  	text-transform: uppercase;
  	font-weight: 900;

}

.results-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: transparent;
  	padding-bottom: 20px;
}

.page.hentry.search-result {
  display: flex;
}

.search-result {
    padding: 10px;
}

.search-result:nth-child(odd) {
    background-color: #e3e6e5;
}

.search-result:nth-child(even) {
    background-color: #c9d3de;
}

/* ----------------------------- */
/*  Single Search Result Styles  */
/* ----------------------------- */

.single-search-result {
    background-color: transparent;
  	display: flex;
  	flex-direction: column;
  	gap: 5px;
  	width: 100%;
}

.single-search-result__image {
	display: flex;
  	flex-direction: column;
  	flex-grow: 1;
  	justify-content: end;
}

.single-search-result__image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  	border-style: solid;
	border-width: 1px;
	border-color: #002F62;
	border-radius: 15px;
}




.single-search-result__image:empty {
    display: none;
}

.single-search-result__content {
	display: flex;
	flex-direction: column;
  	width: 100%;
  	flex-grow: 1;
}

.single-search-result__title {
    font-size: 24px;
    color: #002F62;
    margin: 0;
    font-family: roboto;
    font-weight: 500;
}

.single-search-result__title a {
    color: #002F62 !important;
}

.single-search-result__title a:hover {
    text-decoration: underline;
}

.single-search-result__summary {
    line-height: 18px;
}

.single-search-result__meta {
    display: flex;
  	flex-direction: column;
    flex-wrap: wrap;
    gap: 0 5px;
  	margin-bottom: 5px;
}

.single-search-result__summary .general-meta-label {
    color: #004181;
	font-family: roboto;
    font-size: 16px;
	font-weight: 500;
}

.single-search-result__summary .meta-value,
.single-search-result__summary .meta-value ul,
.single-search-result__summary .meta-value li,
.single-search-result__summary .meta-value a {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    font-family: roboto;
}

.single-search-result__summary .meta-value a:hover {
    color: #333333;
    text-decoration: underline;
}

.single-search-result__date .meta-label {
    display: none;
}

.single-search-result__description .meta-label {
    display: none;
}

.single-search-result__description .meta-value {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----------------------------- */
/*         Pagination Styles     */
/* ----------------------------- */

.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    background-color: transparent;
}

/* General text color for pagination links */
.navigation.pagination .page-numbers {
    color: #004181; /* Replace with your desired text color */
    text-decoration: none; /* Remove underline if any */
    padding: 5px 10px; /* Add some spacing */
    border-radius: 5px; /* Add rounded corners */
    transition: background-color 0.3s, color 0.3s; /* Smooth hover effects */
}

/* Hover effect for pagination links */
.navigation.pagination .page-numbers:hover {
    background-color: #F0D18C; /* Replace with your desired hover background color */
    color: #fff; /* Replace with your desired hover text color */
}

/* Style for the current page number */
.navigation.pagination .page-numbers.current {
    background-color: #004181; /* Replace with your desired background color */
    color: #fff; /* Replace with your desired text color */
    font-weight: bold; /* Make it bold */
    cursor: default; /* No pointer cursor for the current page */
}

/* Style for Previous and Next buttons */
.navigation.pagination .prev,
.navigation.pagination .next {
    color: #9496a3; /* Replace with your desired color */
    font-weight: bold; /* Optional: Make them bold */
}

/* Hover effect for Previous and Next buttons */
.navigation.pagination .prev:hover,
.navigation.pagination .next:hover {
    color: #fff; /* Replace with your desired hover color */
}

/* ----------------------------- */
/*         Media Queries         */
/* ----------------------------- */

/* Up to 1366px */
@media (max-width: 1366px) {
}

/* Up to 1024px */
@media (max-width: 1024px) {
    .results-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-header .search-title .page-title {
        font-size: 26px;
    }
}

/* Up to 767px */
@media (max-width: 767px) {
    .search-header .search-title .page-title {
        font-size: 22px;
    }

  	.search-form-container {
    	display: none;
	}

    .results-group {
        grid-template-columns: repeat(1, 1fr);
    }

    .single-search-result__content {
        margin-bottom: 10px;
    }
}

/* Up to 480px */
@media (max-width: 480px) {
    .search-result-source {
        margin: 5px 0 0;
    }

    .search-header .search-title .page-title {
        font-size: 16px;
    }


}
